MLIR-AIE 1.4.5.dev
xilinx::AIE::AIERTControl Struct Reference

#include "aie/Targets/AIERT.h"

Classes

struct  AIERtImpl

Public Member Functions

 AIERTControl (const xilinx::AIE::AIETargetModel &tm)
 ~AIERTControl ()
mlir::LogicalResult setIOBackend (bool aieSim, bool xaieDebug)
mlir::LogicalResult pushToBdQueueAndEnable (mlir::Operation &op, int col, int row, int chNum, const DMAChannelDir &channelDir, int bdId, int repeatCount, uint32_t padValue=0, bool outOfOrder=false)
mlir::LogicalResult configureLocksAndBd (mlir::Block &block, int col, int row, bool outOfOrder=false)
mlir::LogicalResult initLocks (DeviceOp &targetOp)
mlir::LogicalResult initBuffers (DeviceOp &targetOp)
mlir::LogicalResult configureSwitches (DeviceOp &targetOp, bool skipCtrlPktOverlay=false)
mlir::LogicalResult addInitConfig (DeviceOp &targetOp, bool skipCtrlPktOverlay=false)
mlir::LogicalResult teardownSwitches (DeviceOp &targetOp)
mlir::LogicalResult disableCores (DeviceOp &targetOp)
mlir::LogicalResult resetDmaChannels (DeviceOp &targetOp)
mlir::LogicalResult addCoreEnable (DeviceOp &targetOp)
mlir::LogicalResult addAieElf (uint8_t col, uint8_t row, const mlir::StringRef elfPath, bool aieSim)
mlir::LogicalResult addAieElfs (DeviceOp &targetOp, const mlir::StringRef elfPath, bool aieSim)
void startTransaction ()
void dmaUpdateBdAddr (int col, int row, size_t addr, size_t bdId)
std::vector< uint8_t > exportSerializedTransaction ()
const std::vector< mlir::Location > & getTxnOpLocs () const
uint32_t getCurrentTxnNumCmds () const
void recordTxnLocRange (uint32_t startCmds, uint32_t endCmds, mlir::Location loc)
mlir::LogicalResult resetPartition ()
mlir::LogicalResult resetDMA (int col, int row, bool on)
mlir::LogicalResult resetCore (int col, int row)
mlir::LogicalResult resetCoreUnreset (int col, int row)
mlir::LogicalResult resetSwitch (int col, int row)
mlir::LogicalResult resetLock (int col, int row, int lockId)
mlir::LogicalResult resetSwitchConnection (int col, int row, WireBundle sourceBundle, int sourceChannel, WireBundle destBundle, int destChannel)
mlir::LogicalResult resetPerfCounters (int col, int row)

Detailed Description

Definition at line 46 of file AIERT.h.

Constructor & Destructor Documentation

◆ AIERTControl()

◆ ~AIERTControl()

xilinx::AIE::AIERTControl::~AIERTControl ( )

Definition at line 248 of file AIERT.cpp.

Member Function Documentation

◆ addAieElf()

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

Definition at line 1054 of file AIERT.cpp.

References TRY_XAIE_API_LOGICAL_RESULT.

Referenced by addAieElfs().

◆ addAieElfs()

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

Definition at line 1207 of file AIERT.cpp.

References addAieElf().

◆ addCoreEnable()

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

Definition at line 1041 of file AIERT.cpp.

References TRY_XAIE_API_EMIT_ERROR.

◆ addInitConfig()

LogicalResult xilinx::AIE::AIERTControl::addInitConfig ( DeviceOp & targetOp,
bool skipCtrlPktOverlay = false )

◆ configureLocksAndBd()

LogicalResult xilinx::AIE::AIERTControl::configureLocksAndBd ( mlir::Block & block,
int col,
int row,
bool outOfOrder = false )

Definition at line 641 of file AIERT.cpp.

References TRY_XAIE_API_EMIT_ERROR.

Referenced by addInitConfig().

◆ configureSwitches()

LogicalResult xilinx::AIE::AIERTControl::configureSwitches ( DeviceOp & targetOp,
bool skipCtrlPktOverlay = false )

Definition at line 731 of file AIERT.cpp.

References xilinx::AIE::AIETargetModel::IsNPU, and TRY_XAIE_API_EMIT_ERROR.

Referenced by addInitConfig().

◆ disableCores()

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

Definition at line 901 of file AIERT.cpp.

References TRY_XAIE_API_EMIT_ERROR.

◆ dmaUpdateBdAddr()

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

Definition at line 1242 of file AIERT.cpp.

References TRY_XAIE_API_FATAL_ERROR.

Referenced by aieRtDmaUpdateBdAddr().

◆ exportSerializedTransaction()

std::vector< uint8_t > xilinx::AIE::AIERTControl::exportSerializedTransaction ( )

Definition at line 1308 of file AIERT.cpp.

Referenced by aieRtExportSerializedTransaction().

◆ getCurrentTxnNumCmds()

uint32_t xilinx::AIE::AIERTControl::getCurrentTxnNumCmds ( ) const

Definition at line 1331 of file AIERT.cpp.

◆ getTxnOpLocs()

const std::vector< mlir::Location > & xilinx::AIE::AIERTControl::getTxnOpLocs ( ) const

Definition at line 1327 of file AIERT.cpp.

◆ initBuffers()

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

Definition at line 704 of file AIERT.cpp.

References xilinx::AIE::denseAttrToBytes(), and TRY_XAIE_API_FATAL_ERROR.

Referenced by addInitConfig().

◆ initLocks()

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

Definition at line 671 of file AIERT.cpp.

References 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,
int col,
int row,
int chNum,
const DMAChannelDir & channelDir,
int bdId,
int repeatCount,
uint32_t padValue = 0,
bool outOfOrder = false )

Definition at line 598 of file AIERT.cpp.

References TRY_XAIE_API_EMIT_ERROR.

Referenced by addInitConfig().

◆ recordTxnLocRange()

void xilinx::AIE::AIERTControl::recordTxnLocRange ( uint32_t startCmds,
uint32_t endCmds,
mlir::Location loc )

Definition at line 1335 of file AIERT.cpp.

◆ resetCore()

LogicalResult xilinx::AIE::AIERTControl::resetCore ( int col,
int row )

Definition at line 1093 of file AIERT.cpp.

References TRY_XAIE_API_LOGICAL_RESULT.

◆ resetCoreUnreset()

LogicalResult xilinx::AIE::AIERTControl::resetCoreUnreset ( int col,
int row )

Definition at line 1127 of file AIERT.cpp.

References TRY_XAIE_API_LOGICAL_RESULT.

◆ resetDMA()

LogicalResult xilinx::AIE::AIERTControl::resetDMA ( int col,
int row,
bool on )

Definition at line 1081 of file AIERT.cpp.

References TRY_XAIE_API_LOGICAL_RESULT.

◆ resetDmaChannels()

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

Definition at line 911 of file AIERT.cpp.

References xilinx::AIE::getOrderedChainOfBlocks(), and TRY_XAIE_API_EMIT_ERROR.

◆ resetLock()

LogicalResult xilinx::AIE::AIERTControl::resetLock ( int col,
int row,
int lockId )

Definition at line 1133 of file AIERT.cpp.

References TRY_XAIE_API_LOGICAL_RESULT.

◆ resetPartition()

LogicalResult xilinx::AIE::AIERTControl::resetPartition ( )

Definition at line 1076 of file AIERT.cpp.

References TRY_XAIE_API_LOGICAL_RESULT.

◆ resetPerfCounters()

LogicalResult xilinx::AIE::AIERTControl::resetPerfCounters ( int col,
int row )

Definition at line 1185 of file AIERT.cpp.

◆ resetSwitch()

LogicalResult xilinx::AIE::AIERTControl::resetSwitch ( int col,
int row )

Definition at line 1099 of file AIERT.cpp.

References TRY_XAIE_API_FATAL_ERROR.

◆ resetSwitchConnection()

LogicalResult xilinx::AIE::AIERTControl::resetSwitchConnection ( int col,
int row,
WireBundle sourceBundle,
int sourceChannel,
WireBundle destBundle,
int destChannel )

Definition at line 1145 of file AIERT.cpp.

References TRY_XAIE_API_LOGICAL_RESULT.

◆ setIOBackend()

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

Definition at line 307 of file AIERT.cpp.

References TRY_XAIE_API_FATAL_ERROR.

◆ startTransaction()

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

Definition at line 1249 of file AIERT.cpp.

References TRY_XAIE_API_FATAL_ERROR.

Referenced by aieRtStartTransaction().

◆ teardownSwitches()

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

Definition at line 860 of file AIERT.cpp.

References TRY_XAIE_API_EMIT_ERROR.


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