-
Notifications
You must be signed in to change notification settings - Fork 505
[XDP] Initial NPU3 support #9130
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
35a4a75
3a7c006
c7b2339
d400d6e
12e73cd
746466b
725025d
80d6505
2cf7d14
601aaba
bcb6793
a71e363
fe23126
f478c11
2cb2dee
4a50e7d
edff177
2322ea2
7a66d8d
19cab21
80c9fc4
f7dfe70
f5d1797
5c64e44
adf79d2
b1f345f
eae4f9f
13bfdae
001bf67
c2eee67
7318ccc
7a149be
96f784b
480c9ab
7b90a30
7ea51e7
a758255
ff546d5
df8e388
4be5442
f04d3be
359be4a
9bba749
55dc1cb
41102be
5f6cdcc
19557d7
e8cc9bb
d149a14
678f287
7cae624
c743a57
6c46917
a49d96b
7b68b58
29a65bc
ebfad31
4e6fa95
7e61829
ee2c294
afe125c
1ce93a1
954e7d8
dce147d
3d9686d
7471e26
51a223f
cd0edab
59e1143
c7311f0
cb7374f
e1e83d7
87565ee
8cbd19c
f8caabc
47ad3bf
3163d98
94a2e52
e7310c7
acc6b4b
43f1301
70a0977
87147e6
52dc731
3a0d8ac
c4fe1b3
f14921b
26d4da3
d948b23
fc3d9c8
7450fb0
41b8474
510c578
0c0451f
b3e9fda
4b94161
b89c9da
4d8a50a
cd0b1b3
dc31897
036816c
6555670
006aeaa
98ad89c
e9a9bab
705475d
865fc0e
f81cc44
6784413
d561e3e
a5a0847
95a73b8
4a6efc4
86bffc7
f24677b
c387f9f
c5d26fd
ec88ad4
1206867
63d23c8
9bff0cc
2f96ef1
9b4dd94
304f91d
2e08d0c
b01e019
fd0a41a
0bc40af
ea32011
45210bd
46ab16c
8439875
c546995
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,11 @@ | |
#include <sstream> | ||
|
||
namespace xdp::aie { | ||
// Microblaze Debug Module (MDM) Counters | ||
// https://docs.amd.com/r/en-US/ug984-vivado-microblaze-ref/Performance-Monitoring) | ||
constexpr unsigned int NUM_UC_EVENT_COUNTERS = 5; | ||
constexpr unsigned int NUM_UC_LATENCY_COUNTERS = 1; | ||
|
||
struct aiecompiler_options | ||
{ | ||
bool broadcast_enable_core; | ||
|
@@ -51,7 +56,9 @@ namespace xdp { | |
|
||
enum io_type { | ||
PLIO = 0, | ||
GMIO | ||
GMIO, | ||
TRACE_DMA, | ||
CONTROL_DMA | ||
}; | ||
|
||
struct tile_type | ||
|
@@ -203,14 +210,16 @@ namespace xdp { | |
uint8_t channelNumber; | ||
uint8_t streamId; | ||
uint8_t burstLength; | ||
uint8_t type; | ||
|
||
TraceGMIO(uint32_t i, uint8_t col, uint8_t num, | ||
pgschuey marked this conversation as resolved.
Show resolved
Hide resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. warning: 6 adjacent parameters of 'TraceGMIO' of convertible types are easily swapped by mistake [bugprone-easily-swappable-parameters] TraceGMIO(uint32_t i, uint8_t col, uint8_t num,
^ Additional contextsrc/runtime_src/xdp/profile/database/static_info/aie_constructs.h:214: the first parameter in the range is 'i' TraceGMIO(uint32_t i, uint8_t col, uint8_t num,
^ src/runtime_src/xdp/profile/database/static_info/aie_constructs.h:215: the last parameter in the range is 't' uint8_t stream, uint8_t len, uint8_t t = 0)
^ src/runtime_src/xdp/profile/database/static_info/aie_constructs.h:214: TraceGMIO(uint32_t i, uint8_t col, uint8_t num,
^ src/runtime_src/xdp/profile/database/static_info/aie_constructs.h:214: 'uint32_t' and 'uint8_t' may be implicitly converted: 'uint32_t' (as 'unsigned int') -> 'uint8_t' (as 'unsigned char'), 'uint8_t' (as 'unsigned char') -> 'uint32_t' (as 'unsigned int') TraceGMIO(uint32_t i, uint8_t col, uint8_t num,
^ |
||
uint8_t stream, uint8_t len) | ||
uint8_t stream, uint8_t len, uint8_t t = 0) | ||
: id(i) | ||
, shimColumn(col) | ||
, channelNumber(num) | ||
, streamId(stream) | ||
, burstLength(len) | ||
, type(t) | ||
{} | ||
}; | ||
|
||
|
@@ -277,8 +286,8 @@ namespace xdp { | |
bool port_trace_is_master[NUM_SWITCH_MONITOR_PORTS]; | ||
int8_t port_trace_ids[NUM_SWITCH_MONITOR_PORTS]; | ||
std::string port_trace_names[NUM_SWITCH_MONITOR_PORTS]; | ||
int8_t s2mm_channels[NUM_CHANNEL_SELECTS] = {-1, -1}; | ||
int8_t mm2s_channels[NUM_CHANNEL_SELECTS] = {-1, -1}; | ||
int8_t s2mm_channels[NUM_CHANNEL_SELECTS_MAX] = {-1, -1, -1, -1}; | ||
pgschuey marked this conversation as resolved.
Show resolved
Hide resolved
|
||
int8_t mm2s_channels[NUM_CHANNEL_SELECTS_MAX] = {-1, -1, -1, -1}; | ||
pgschuey marked this conversation as resolved.
Show resolved
Hide resolved
|
||
std::string s2mm_names[NUM_MEM_CHANNELS]; | ||
std::string mm2s_names[NUM_MEM_CHANNELS]; | ||
std::vector<aie_cfg_counter> pc; | ||
|
Uh oh!
There was an error while loading. Please reload this page.