MLIR-AIE
Public Member Functions | Public Attributes | List of all members
xilinx::AIE::AIERTControl Struct Reference

#include "aie/Targets/AIERT.h"

+ Collaboration diagram for xilinx::AIE::AIERTControl:

Public Member Functions

 AIERTControl (const xilinx::AIE::BaseNPUTargetModel &tm)
 
mlir::LogicalResult setIOBackend (bool aieSim, bool xaieDebug)
 
mlir::LogicalResult configureBdInBlock (XAie_DmaDesc &dmaTileBd, mlir::Block &block, XAie_LocType &tileLoc, int bdId, std::optional< int > nextBdId)
 
mlir::LogicalResult pushToBdQueueAndEnable (mlir::Operation &op, XAie_LocType &tileLoc, int chNum, const DMAChannelDir &channelDir, int bdId, int repeatCount)
 
mlir::LogicalResult configureLocksAndBd (mlir::Block &block, XAie_LocType tileLoc)
 
mlir::LogicalResult initLocks (DeviceOp &targetOp)
 
mlir::LogicalResult initBuffers (DeviceOp &targetOp)
 
mlir::LogicalResult configureSwitches (DeviceOp &targetOp)
 
mlir::LogicalResult addInitConfig (DeviceOp &targetOp)
 
mlir::LogicalResult addCoreEnable (DeviceOp &targetOp)
 
mlir::LogicalResult configureLocksInBdBlock (XAie_DmaDesc &dmaTileBd, mlir::Block &block, XAie_LocType &tileLoc)
 
mlir::LogicalResult addAieElf (uint8_t col, uint8_t row, const mlir::StringRef elfPath, bool aieSim)
 
mlir::LogicalResult addAieElfs (DeviceOp &targetOp, const mlir::StringRef workDirPath, bool aieSim)
 
void startTransaction ()
 
void dmaUpdateBdAddr (int col, int row, size_t addr, size_t bdId)
 
void exportSerializedTransaction ()
 

Public Attributes

XAie_Config configPtr
 
XAie_DevInst devInst
 
const BaseNPUTargetModeltargetModel
 

Detailed Description

Definition at line 187 of file AIERT.h.

Constructor & Destructor Documentation

◆ AIERTControl()

xilinx::AIE::AIERTControl::AIERTControl ( const xilinx::AIE::BaseNPUTargetModel tm)

Member Function Documentation

◆ addAieElf()

LogicalResult xilinx::AIE::AIERTControl::addAieElf ( uint8_t  col,
uint8_t  row,
const mlir::StringRef  elfPath,
bool  aieSim 
)

Definition at line 665 of file AIERT.cpp.

References xilinx::AIE::col, devInst, xilinx::AIE::row, and TRY_XAIE_API_LOGICAL_RESULT.

Referenced by addAieElfs().

◆ addAieElfs()

LogicalResult xilinx::AIE::AIERTControl::addAieElfs ( DeviceOp &  targetOp,
const mlir::StringRef  workDirPath,
bool  aieSim 
)

Definition at line 685 of file AIERT.cpp.

References addAieElf(), xilinx::AIE::col, and xilinx::AIE::row.

◆ addCoreEnable()

LogicalResult xilinx::AIE::AIERTControl::addCoreEnable ( DeviceOp &  targetOp)

Definition at line 655 of file AIERT.cpp.

References devInst, and TRY_XAIE_API_EMIT_ERROR.

◆ addInitConfig()

LogicalResult xilinx::AIE::AIERTControl::addInitConfig ( DeviceOp &  targetOp)

◆ configureBdInBlock()

LogicalResult xilinx::AIE::AIERTControl::configureBdInBlock ( XAie_DmaDesc &  dmaTileBd,
mlir::Block &  block,
XAie_LocType &  tileLoc,
int  bdId,
std::optional< int >  nextBdId 
)

◆ configureLocksAndBd()

LogicalResult xilinx::AIE::AIERTControl::configureLocksAndBd ( mlir::Block &  block,
XAie_LocType  tileLoc 
)

Definition at line 358 of file AIERT.cpp.

References configureBdInBlock(), configureLocksInBdBlock(), devInst, and TRY_XAIE_API_EMIT_ERROR.

Referenced by addInitConfig().

◆ configureLocksInBdBlock()

LogicalResult xilinx::AIE::AIERTControl::configureLocksInBdBlock ( XAie_DmaDesc &  dmaTileBd,
mlir::Block &  block,
XAie_LocType &  tileLoc 
)

◆ configureSwitches()

LogicalResult xilinx::AIE::AIERTControl::configureSwitches ( DeviceOp &  targetOp)

◆ dmaUpdateBdAddr()

void xilinx::AIE::AIERTControl::dmaUpdateBdAddr ( int  col,
int  row,
size_t  addr,
size_t  bdId 
)

Definition at line 712 of file AIERT.cpp.

References xilinx::AIE::col, devInst, xilinx::AIE::row, and TRY_XAIE_API_FATAL_ERROR.

Referenced by aieRtDmaUpdateBdAddr().

◆ exportSerializedTransaction()

void xilinx::AIE::AIERTControl::exportSerializedTransaction ( )

Definition at line 722 of file AIERT.cpp.

References devInst.

Referenced by aieRtExportSerializedTransaction().

◆ initBuffers()

LogicalResult xilinx::AIE::AIERTControl::initBuffers ( DeviceOp &  targetOp)

Definition at line 405 of file AIERT.cpp.

References devInst, and TRY_XAIE_API_FATAL_ERROR.

Referenced by addInitConfig().

◆ initLocks()

LogicalResult xilinx::AIE::AIERTControl::initLocks ( DeviceOp &  targetOp)

Definition at line 376 of file AIERT.cpp.

References devInst, NUM_LOCKS, TRY_XAIE_API_EMIT_ERROR, and TRY_XAIE_API_FATAL_ERROR.

Referenced by addInitConfig().

◆ pushToBdQueueAndEnable()

LogicalResult xilinx::AIE::AIERTControl::pushToBdQueueAndEnable ( mlir::Operation &  op,
XAie_LocType &  tileLoc,
int  chNum,
const DMAChannelDir &  channelDir,
int  bdId,
int  repeatCount 
)

Definition at line 342 of file AIERT.cpp.

References devInst, and TRY_XAIE_API_EMIT_ERROR.

Referenced by addInitConfig().

◆ setIOBackend()

LogicalResult xilinx::AIE::AIERTControl::setIOBackend ( bool  aieSim,
bool  xaieDebug 
)

Definition at line 109 of file AIERT.cpp.

References devInst, and TRY_XAIE_API_FATAL_ERROR.

◆ startTransaction()

void xilinx::AIE::AIERTControl::startTransaction ( )

Definition at line 717 of file AIERT.cpp.

References devInst, and TRY_XAIE_API_FATAL_ERROR.

Referenced by aieRtStartTransaction().

Member Data Documentation

◆ configPtr

XAie_Config xilinx::AIE::AIERTControl::configPtr

Definition at line 188 of file AIERT.h.

Referenced by AIERTControl().

◆ devInst

XAie_DevInst xilinx::AIE::AIERTControl::devInst

◆ targetModel

const BaseNPUTargetModel& xilinx::AIE::AIERTControl::targetModel

Definition at line 190 of file AIERT.h.

Referenced by configureBdInBlock(), configureLocksInBdBlock(), and configureSwitches().


The documentation for this struct was generated from the following files: