Skip to content

Commit

Permalink
Updated user_event_0 to combo_event_0
Browse files Browse the repository at this point in the history
Signed-off-by: parthash0804 <[email protected]>
  • Loading branch information
parthash0804 committed Feb 11, 2025
1 parent 4cd40f5 commit e842cf2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -524,7 +524,7 @@ namespace xdp::aie::trace {
uint8_t broadcastId2 = traceStartBroadcastCh2->getBc();

//build broadcast network
aie::trace::build2ChannelBroadcastNetwork(aieDevInst, metadata, broadcastId1, broadcastId2, XAIE_EVENT_USER_EVENT_0_PL, startCol, numCols);
aie::trace::build2ChannelBroadcastNetwork(aieDevInst, metadata, broadcastId1, broadcastId2, XAIE_EVENT_COMBO_EVENT_0_PL, startCol, numCols);

//set timer control register
for (auto& tileMetric : metadata->getConfigMetrics()) {
Expand All @@ -538,7 +538,7 @@ namespace xdp::aie::trace {
XAie_Events resetEvent = (XAie_Events)(XAIE_EVENT_BROADCAST_A_0_PL + broadcastId2);
if(col == startCol)
{
resetEvent = XAIE_EVENT_USER_EVENT_0_PL;
resetEvent = XAIE_EVENT_COMBO_EVENT_0_PL;
}

XAie_SetTimerResetEvent(aieDevInst, loc, XAIE_PL_MOD, resetEvent, XAIE_RESETDISABLE);
Expand All @@ -556,7 +556,7 @@ namespace xdp::aie::trace {
}

//Generate the event to trigger broadcast network to reset timer
XAie_EventGenerate(aieDevInst, XAie_TileLoc(startCol, 0), XAIE_PL_MOD, XAIE_EVENT_USER_EVENT_0_PL);
XAie_EventGenerate(aieDevInst, XAie_TileLoc(startCol, 0), XAIE_PL_MOD, XAIE_EVENT_COMBO_EVENT_0_PL);

//reset timer control register so that timer are not reset after this point
for (auto& tileMetric : metadata->getConfigMetrics()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ namespace xdp {
traceStartBroadcastCh1->reserve();
traceStartBroadcastCh2 = aieDevice->broadcast(vL, XAIE_PL_MOD, XAIE_CORE_MOD);
traceStartBroadcastCh2->reserve();
aie::trace::build2ChannelBroadcastNetwork(aieDevInst, metadata, traceStartBroadcastCh1->getBc(), traceStartBroadcastCh2->getBc(), XAIE_EVENT_USER_EVENT_0_PL, startCol, numCols);
aie::trace::build2ChannelBroadcastNetwork(aieDevInst, metadata, traceStartBroadcastCh1->getBc(), traceStartBroadcastCh2->getBc(), XAIE_EVENT_COMBO_EVENT_0_PL, startCol, numCols);

coreTraceStartEvent = (XAie_Events) (XAIE_EVENT_BROADCAST_0_CORE + traceStartBroadcastCh1->getBc());
memoryTileTraceStartEvent = (XAie_Events) (XAIE_EVENT_BROADCAST_0_MEM_TILE + traceStartBroadcastCh1->getBc());
Expand Down Expand Up @@ -869,7 +869,7 @@ namespace xdp {

if(col == startCol && compilerOptions.enable_multi_layer && xrt_core::config::get_aie_trace_settings_trace_start_broadcast())
{
if (shimTrace->setCntrEvent(XAIE_EVENT_USER_EVENT_0_PL, interfaceTileTraceEndEvent) != XAIE_OK)
if (shimTrace->setCntrEvent(XAIE_EVENT_COMBO_EVENT_0_PL, interfaceTileTraceEndEvent) != XAIE_OK)
break;
}
else
Expand Down

0 comments on commit e842cf2

Please sign in to comment.