Skip to content

Commit

Permalink
DCE AIETargetCDODirect (Xilinx#1067)
Browse files Browse the repository at this point in the history
  • Loading branch information
makslevental committed Feb 28, 2024
1 parent 9fb02d7 commit 45f80d7
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions lib/Targets/AIETargetCDODirect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -603,24 +603,6 @@ struct AIEControl {
auto mstrPortNum = 0;
TRY_XAIE_API_EMIT_ERROR(switchboxOp, XAie_StrmConnCctEnable, &devInst,
tileLoc, CTRL, slvPortNum, SOUTH, mstrPortNum);
// configure DMA_<S2MM/MM2S>_<chNum>_Ctrl register
assert(targetOp.getDevice() == AIEDevice::ipu &&
"Only IPU currently supported");
if (col != 0)
for (int chNum = 0; chNum <= 1; ++chNum) {
XAie_DmaChannelDesc dmaChannelDescInst;
TRY_XAIE_API_EMIT_ERROR(switchboxOp, XAie_DmaChannelDescInit,
&devInst, &dmaChannelDescInst, tileLoc);
auto controllerId = 0;
TRY_XAIE_API_EMIT_ERROR(switchboxOp, XAie_DmaChannelSetControllerId,
&dmaChannelDescInst, controllerId);
TRY_XAIE_API_EMIT_ERROR(switchboxOp, XAie_DmaWriteChannel, &devInst,
&dmaChannelDescInst, tileLoc, chNum,
DMA_S2MM);
}

TRY_XAIE_API_EMIT_ERROR(switchboxOp, XAie_AieToPlIntfEnable, &devInst,
tileLoc, /*PortNum*/ 0, PLIF_WIDTH_32);
}

Block &b = switchboxOp.getConnections().front();
Expand Down

0 comments on commit 45f80d7

Please sign in to comment.