|
MLIR-AIE 1.4.6.dev
|
#include "aie/Dialect/AIE/IR/AIETargetModel.h"
Public Types | |
| enum | TargetModelKind { TK_AIE1_VC1902 , TK_AIE1_Last , TK_AIE2_VE2302 , TK_AIE2_VE2802 , TK_AIE2_NPU1_1Col , TK_AIE2_NPU1_2Col , TK_AIE2_NPU1_3Col , TK_AIE2_NPU1_4Col , TK_AIE2_NPU1_Last , TK_AIE2_NPU2 = TK_AIE2_NPU1_Last , TK_AIE2_NPU2_1Col , TK_AIE2_NPU2_2Col , TK_AIE2_NPU2_3Col , TK_AIE2_NPU2_4Col , TK_AIE2_NPU2_5Col , TK_AIE2_NPU2_6Col , TK_AIE2_NPU2_7Col , TK_AIE2_NPU2_Last , TK_AIE2PS_VE3858 = TK_AIE2_NPU2_Last , TK_AIE2PS_Last , TK_AIE2_Last = TK_AIE2PS_Last , TK_AIE4_NPU3 , TK_AIE4_NPU3_1Col , TK_AIE4_NPU3_2Col , TK_AIE4_NPU3_Last , TK_AIE4_Last = TK_AIE4_NPU3_Last } |
| enum | ModelProperty { UsesSemaphoreLocks = 1U << 0 , IsNPU = 1U << 1 , IsVirtualized = 1U << 2 , UsesMultiDimensionalBDs = 1U << 3 , UsesBDIteration = 1U << 4 , SupportsOutOfOrderDMA = 1U << 5 , SupportsControlPackets = 1U << 6 } |
| enum class | SharedMemory { None , First , Second , Either } |
| Which of two tiles' memory modules both of them can address. More... | |
Public Member Functions | |
| TargetModelKind | getKind () const |
| AIETargetModel (TargetModelKind k) | |
| virtual | ~AIETargetModel () |
| virtual AIEArch | getTargetArch () const =0 |
| Return the target architecture. | |
| virtual uint32_t | getAddressGenGranularity () const =0 |
| Return the data bus width of the device. | |
| virtual int | columns () const =0 |
| Return the number of columns in the device. | |
| virtual int | physicalColumns () const |
| Width of the physical array this (possibly virtualized) device is carved from. | |
| virtual int | firstPlaceableColumn () const |
| First physical column at which a partition may be anchored. | |
| std::vector< int > | partitionStartColumns (int numCols) const |
| Every physical column offset at which a numCols-wide partition still fits. | |
| virtual int | rows () const =0 |
| Return the number of rows in the device. | |
| virtual uint32_t | getNumControllersPerColumn () const |
| Number of microcontrollers (uC) per column. | |
| virtual uint32_t | getNumControllers () const |
| Total number of microcontrollers (uC) in the device. | |
| virtual AIETileType | getTileType (int col, int row) const =0 |
| Return the tile type for the given tile coordinates. | |
| bool | isCoreTile (int col, int row) const |
| Return true if the given tile is a Core tile. | |
| bool | isMemTile (int col, int row) const |
| Return true if the given tile is a Mem tile. | |
| bool | isShimNOCTile (int col, int row) const |
| Return true if the given tile is a ShimNOC tile. | |
| bool | isShimPLTile (int col, int row) const |
| Return true if the given tile is a ShimPL tile. | |
| bool | isShimNOCorPLTile (int col, int row) const |
| Return true if the given tile is either a ShimNOC or ShimPL tile. | |
| virtual bool | isValidTile (TileID src) const |
| Return true if the given tile ID is valid. | |
| virtual std::optional< TileID > | getMemWest (TileID src) const =0 |
| Return the tile ID of the memory to the west of the given tile, if it exists. | |
| virtual std::optional< TileID > | getMemEast (TileID src) const =0 |
| Return the tile ID of the memory to the east of the given tile, if it exists. | |
| virtual std::optional< TileID > | getMemNorth (TileID src) const =0 |
| Return the tile ID of the memory to the north of the given tile, if it exists. | |
| virtual std::optional< TileID > | getMemSouth (TileID src) const =0 |
| Return the tile ID of the memory to the south of the given tile, if it exists. | |
| bool | isInternal (int srcCol, int srcRow, int dstCol, int dstRow) const |
| Return true if src is the internal memory of dst. | |
| bool | isWest (int srcCol, int srcRow, int dstCol, int dstRow) const |
| Return true if src is West of dst. | |
| bool | isEast (int srcCol, int srcRow, int dstCol, int dstRow) const |
| Return true if src is East of dst. | |
| bool | isNorth (int srcCol, int srcRow, int dstCol, int dstRow) const |
| Return true if src is North of dst. | |
| bool | isSouth (int srcCol, int srcRow, int dstCol, int dstRow) const |
| Return true if src is South of dst. | |
| virtual llvm::ArrayRef< std::pair< int, int > > | getCascadeSteps () const |
| The steps (destination column - source column, destination row - source row) from one core's cascade output to the next core's input. | |
| bool | isLegalCascade (int srcCol, int srcRow, int dstCol, int dstRow) const |
| Return true if a cascade can run from src to dst. | |
| virtual bool | isMemWest (int srcCol, int srcRow, int dstCol, int dstRow) const =0 |
| Return true if src has a memory tile which is West of dst. | |
| virtual bool | isMemEast (int srcCol, int srcRow, int dstCol, int dstRow) const =0 |
| Return true if src has a memory tile which is East of dst. | |
| virtual bool | isMemNorth (int srcCol, int srcRow, int dstCol, int dstRow) const =0 |
| Return true if src has a memory tile which is North of dst. | |
| virtual bool | isMemSouth (int srcCol, int srcRow, int dstCol, int dstRow) const =0 |
| Return true if src has a memory tile which is South of dst. | |
| virtual bool | isLegalMemAffinity (int coreCol, int coreRow, int memCol, int memRow) const =0 |
| Return true if core can access the memory in mem. | |
| SharedMemory | getSharedMemory (TileID a, TileID b) const |
| Return the memory module a and b can both reach, if any. | |
| virtual uint32_t | getMemInternalBaseAddress (TileID src) const =0 |
| Return the base address in the local address map for a core. | |
| virtual uint32_t | getMemSouthBaseAddress () const =0 |
| Return the base address in the local address map for a core. | |
| virtual uint32_t | getMemWestBaseAddress () const =0 |
| Return the base address in the local address map for a core. | |
| virtual uint32_t | getMemNorthBaseAddress () const =0 |
| Return the base address in the local address map for a core. | |
| virtual uint32_t | getMemEastBaseAddress () const =0 |
| Return the base address in the local address map for a core. | |
| virtual std::optional< uint32_t > | getLockLocalBaseIndex (int localCol, int localRow, int lockCol, int lockRow) const |
| Return the lock base index (or offset) in the local tile when accessing a neighbor's lock or an empty optional if an invalid neighbor is given Takes into account differences between Memory and Core tiles. | |
| virtual std::optional< uint32_t > | getMemLocalBaseAddress (int localCol, int localRow, int memCol, int memRow) const |
| Return the memory base address (or offset) in the local tile when accessing a neighbor's memory or an empty optional if an invalid neighbor is given Takes into account differences between Memory and Core tiles. | |
| virtual uint32_t | getLocalMemorySize () const =0 |
| Return the size (in bytes) of the local data memory of a core. | |
| virtual uint32_t | getProgramMemorySize () const =0 |
| Return the size (in bytes) of a core's program memory. | |
| virtual uint32_t | getCoreDataAddressSpaceSize () const =0 |
| Return the size (in bytes) of the address space a core can issue data accesses into. | |
| virtual uint32_t | getDefaultCoreStackSize () const |
| Return the default stack reservation (in bytes) for a core that does not state one. | |
| uint32_t | getCoreStackAlignment () const |
| Stack-pointer alignment in bytes, matching Peano's AIE frame lowering: AIE1/AIE2 require 32B; AIE2P/AIE2PS require 64B, not their 32B data bus. | |
| virtual uint32_t | getComputeTileLoadStoreBusWidth () const =0 |
| Return the data bus width (in bits) for load/store operations of a compute core. | |
| virtual uint32_t | getComputeTileMaxVectorAlignBits () const |
| Return the alignment (in bits) required by the widest vector load/store a compute core can issue. | |
| virtual uint32_t | getMemTileLoadStoreBusWidth () const |
| Return the data bus width (in bits) for load/store operations of a memory tile. | |
| virtual uint32_t | getAccumulatorCascadeSize () const =0 |
| Return the size (in bits) of the accumulator/cascade. | |
| virtual uint32_t | getNumLocks (AIETileType tileType) const =0 |
| Return the number of lock objects for a given tile type. | |
| uint32_t | getNumLocks (int col, int row) const |
| Return the number of lock objects for a tile at the given coordinates. | |
| virtual uint32_t | getMaxLockValue () const =0 |
| Return the maximum value that can be stored in a lock register. | |
| virtual std::optional< uint32_t > | getLocalLockAddress (uint32_t lockId, TileID tile) const =0 |
| virtual uint32_t | getNumBDs (AIETileType tileType) const =0 |
| Return the size of the BD id space of a tile type (see getTotalNumBDs()). | |
| virtual uint32_t | getBDMaxDims (AIETileType tileType) const =0 |
| Return the maximum number of addressing dimensions (wraps/strides) a single buffer descriptor supports for a given tile type. | |
| virtual uint64_t | getDmaBdMaxLen (AIETileType tileType) const =0 |
| Return the maximum transfer length, measured in address-generation granules (see getAddressGenGranularity(), 32-bit words on AIE2), that fits in the buffer_length field of a DMA buffer descriptor for the given tile type. | |
| virtual uint32_t | getDmaBdWrapBits (AIETileType tileType) const =0 |
| Return the bit width of the wrap (size) field in a DMA buffer descriptor for the given tile type. | |
| virtual uint32_t | getDmaBdStepBits (AIETileType tileType) const =0 |
| Return the bit width of the step (stride) field in a DMA buffer descriptor for the given tile type. | |
| virtual uint32_t | getDmaBdIterBits (AIETileType tileType) const =0 |
| Return the bit width of the iteration (repeat) wrap/stride fields in a DMA buffer descriptor for the given tile type. | |
| virtual std::optional< uint32_t > | getStreamSwitchPortIndex (int col, int row, WireBundle bundle, uint32_t channel, bool master) const =0 |
| Get stream switch port index for a given port specification Return port index for Stream_Switch_Event_Port_Selection register, or nullopt if invalid. | |
| uint32_t | getNumBDs (int col, int row) const |
| Return the number of buffer descriptors supported by the DMA in the given tile. | |
| uint32_t | getBDMaxDims (int col, int row) const |
| Return the maximum number of BD addressing dimensions for the tile at (col, row). | |
| uint64_t | getDmaBdMaxLen (int col, int row) const |
| uint32_t | getDmaBdWrapBits (int col, int row) const |
| uint32_t | getDmaBdStepBits (int col, int row) const |
| uint32_t | getDmaBdIterBits (int col, int row) const |
| virtual uint32_t | getBdPoolId (int col, int row, int channel, DMAChannelDir dir) const |
| Return the pool channel in direction dir draws its BDs from. | |
| virtual uint32_t | getBdPoolStartId (int col, int row, uint32_t poolId) const |
| virtual uint32_t | getNumBDsInPool (int col, int row, uint32_t poolId) const |
| virtual uint32_t | getTotalNumBDs (AIETileType tileType) const |
| Physical BDs over all pools; exceeds getNumBDs() where pools reuse ids. | |
| uint32_t | getTotalNumBDs (int col, int row) const |
| std::pair< uint32_t, uint32_t > | getBdIdRangeForChannel (int col, int row, int channel, DMAChannelDir dir) const |
| Return the half-open range of BD ids channel in dir can submit. | |
| uint32_t | getNumBDsForChannel (int col, int row, int channel, DMAChannelDir dir) const |
| bool | isBdInChannelPool (int col, int row, uint32_t bd_id, int channel, DMAChannelDir dir) const |
| True iff bd_id is in the channel's pool, whether or not it exists. | |
| bool | isBdChannelAccessible (int col, int row, uint32_t bd_id, int channel, DMAChannelDir dir) const |
| bool | isBdChannelAccessible (int col, int row, uint32_t bd_id, int channel) const |
| True iff the channel exists and can submit bd_id in every direction it has. | |
| uint32_t | getNumBDsForChannel (int col, int row, int channel) const |
| virtual const DmaBdLayout * | getDmaBdLayout (AIETileType tileType) const |
| Return the register layout of a buffer descriptor on the given tile type, or null if the target has none modeled for it. | |
| const DmaBdLayout * | getDmaBdLayout (int col, int row) const |
| virtual const DmaBdLayout * | getDmaBdLayout (AIETileType tileType, DMAChannelDir direction) const |
| Return the BD layout for direction; control and trace BDs may differ. | |
| const DmaBdLayout * | getDmaBdLayout (int col, int row, DMAChannelDir direction) const |
| uint32_t | getDmaBdStepBias (AIETileType tileType) const |
| DmaBdLayout::stepBias, or 1 without a layout. | |
| uint32_t | getDmaBdStepBias (int col, int row) const |
| virtual bool | hasChannelLocalBdIds (int col, int row) const |
| True if data BD ids are channel-local, so a BD's address depends on its channel and direction. | |
| bool | usesChannelLocalBdIds (int col, int row, DMAChannelDir direction) const |
| Control and trace channels always have private, channel-local pools. | |
| virtual uint64_t | getDmaBdAddress (int col, int row, uint32_t bd_id, int channel=-1, AIE::DMAChannelDir direction=AIE::DMAChannelDir::MM2S) const =0 |
| Return the array address of the dma buffer descriptor for the given col, row, buffer descriptor id, channel and direction. | |
| virtual uint32_t | getDmaBdAddressOffset (int col, int row) const =0 |
| Return the offset of the base address field within the shim dma buffer descriptor. | |
| virtual uint32_t | getDmaControlAddress (int col, int row, int channel, AIE::DMAChannelDir direction) const =0 |
| Return the array address of the dma task queue register for the given col, row, channel and direction. | |
| virtual std::optional< uint32_t > | getDmaStatusAddress (int, int, int, AIE::DMAChannelDir) const |
| Return the address of the DMA status register for a channel, or nullopt when this target's layout has not been verified. | |
| virtual uint32_t | getDmaTaskQueueSizeMask () const |
| Return the mask selecting the live task-queue occupancy field within the getDmaStatusAddress() register (0 when unsupported). | |
| virtual uint32_t | getDmaChannelIdleMask () const |
| Return the bits of the getDmaStatusAddress() register that are all clear exactly when the channel has finished every task pushed to it: nothing queued, nothing running, nothing stalled (0 when unsupported). | |
| uint32_t | getDmaQueueAddress (int col, int row, int channel, AIE::DMAChannelDir direction) const |
| Return the array address of the task queue register a push writes, the word after the channel's control register. | |
| uint32_t | getLocalDmaControlAddress (int col, int row, int channel, AIE::DMAChannelDir direction) const |
| Return the DMA task-queue register address relative to its tile. | |
| virtual uint32_t | getNumMemTileRows () const =0 |
| virtual uint32_t | getMemTileSize () const =0 |
| Return the size (in bytes) of a MemTile. | |
| virtual uint32_t | getNumBanks (int col, int row) const =0 |
| Return the number of memory banks of a given tile. | |
| virtual uint32_t | getMaxChannelNumForAdjacentMemTile (int col, int row) const =0 |
| virtual uint32_t | getNumDestSwitchboxConnections (int col, int row, WireBundle bundle) const =0 |
| Return the number of destinations of connections inside a switchbox. | |
| virtual uint32_t | getNumSourceSwitchboxConnections (int col, int row, WireBundle bundle) const =0 |
| Return the number of sources of connections inside a switchbox. | |
| virtual uint32_t | getNumDestShimMuxConnections (int col, int row, WireBundle bundle) const =0 |
| Return the number of destinations of connections inside a shimmux. | |
| virtual uint32_t | getNumSourceShimMuxConnections (int col, int row, WireBundle bundle) const =0 |
| Return the number of sources of connections inside a shimmux. | |
| virtual bool | hasShimMux (int col, int row) const |
| True if the tile's DMA/NOC/PLIO ports sit behind an aie.shim_mux; otherwise its DMA is routed in the switchbox like any other tile's. | |
| uint32_t | getNumDMAChannels (int col, int row, AIE::DMAChannelDir dir) const |
| Return the number of DMA channels a tile has in one direction. | |
| bool | isDmaChannelSupported (TileID tile, AIE::DMAChannelDir dir, int channel) const |
| virtual uint32_t | getNumSlaveSlots () const =0 |
| Return the number of packet-rule slots per stream-switch slave port. | |
| virtual uint32_t | getNumArbiters () const =0 |
| Return the number of arbiters per stream switch. | |
| virtual uint32_t | getNumMselsPerArbiter () const =0 |
| Return the number of master select values per stream-switch arbiter. | |
| virtual uint32_t | getMaxPacketId () const =0 |
| Return the largest packet id the stream switch can route. | |
| int | getPacketIdBits () const |
| Bits a packet id spans, and the mask a switch's id match uses. | |
| int | getPacketIdMask () const |
| virtual uint32_t | getMaxOutOfOrderId () const =0 |
| Return the largest out-of-order BD id (unsupported = 0). | |
| virtual uint32_t | getMaxRepeatCount () const =0 |
| Return the largest DMA task repeat count (unsupported = 0). | |
| virtual uint32_t | getDmaTaskQueueDepth () const =0 |
| Return how many DMA tasks a single channel's task queue holds (unsupported = 0). | |
| uint32_t | getDmaTaskQueueDepth (int, int, int, AIE::DMAChannelDir) const |
| Return the task-queue depth for one channel. | |
| virtual bool | isLegalTileConnection (int col, int row, WireBundle srcBundle, int srcChan, WireBundle dstBundle, int dstChan) const =0 |
| void | validate () const |
| uint32_t | getModelProperties () const |
| void | addModelProperty (uint32_t prop) |
| bool | hasProperty (ModelProperty Prop) const |
| virtual uint32_t | getColumnShift () const =0 |
| virtual uint32_t | getRowShift () const =0 |
| virtual uint32_t | getTileAddress (int col, int row) const |
| Return the base address of the tile's window. | |
| uint32_t | getRowFieldMask () const |
| uint32_t | getColumnFromAddress (uint32_t address) const |
| virtual uint32_t | getRowFromAddress (uint32_t address) const |
| Inverse of getTileAddress() for any address in the tile's window. | |
| virtual uint32_t | getDataMemoryOffset (int, int) const |
| Offset of data memory in the tile's window; buffer addresses are relative to it. | |
| virtual std::vector< std::pair< uint32_t, uint32_t > > | getShimBurstEncodingsAndLengths () const =0 |
| virtual uint32_t | getDefaultAxCache () const |
| virtual bool | isSupportedBlockFormat (std::string const &format) const |
| virtual bool | isMemTilePadValueSupported () const |
| const RegisterInfo * | lookupRegister (llvm::StringRef name, TileID tile, bool isMem=false) const |
| Register Database API - provides access to register and event information for trace configuration and low-level register access. | |
| bool | isOrdinaryWriteAddress (TileID tile, uint32_t offset) const |
| std::optional< uint32_t > | lookupEvent (llvm::StringRef name, TileID tile, bool isMem=false) const |
| Lookup event number by name and tile. | |
| std::optional< uint32_t > | encodeFieldValue (const BitFieldInfo &field, uint32_t value) const |
| Encode a field value with proper bit shifting. | |
| std::optional< uint32_t > | getFieldMask (const BitFieldInfo &field) const |
| Compute a 32-bit mask for a register field. | |
| llvm::DenseMap< TileID, int > | getTileToControllerIdMap (bool columnWiseUniqueIDs=true) const |
| Return a mapping from tile coordinates to controller IDs. | |
| std::optional< uint32_t > | resolvePortValue (llvm::StringRef value, TileID tile, bool master) const |
| Resolve stream switch port specification to port index. | |
Protected Member Functions | |
| virtual std::unique_ptr< RegisterDatabase > | loadRegisterDatabase () const |
| Subclasses override to provide architecture-specific database loading. | |
| const RegisterDatabase * | getRegisterDatabase () const |
| Get the register database, loading it lazily on first access. | |
Definition at line 108 of file AIETargetModel.h.
| Enumerator | |
|---|---|
| UsesSemaphoreLocks | |
| IsNPU | |
| IsVirtualized | |
| UsesMultiDimensionalBDs | |
| UsesBDIteration | |
| SupportsOutOfOrderDMA | |
| SupportsControlPackets | |
Definition at line 141 of file AIETargetModel.h.
|
strong |
Which of two tiles' memory modules both of them can address.
| Enumerator | |
|---|---|
| None | Neither tile can address the other's memory module. |
| First | Only the first tile's module. |
| Second | Only the second tile's module. |
| Either | Either will do. |
Definition at line 336 of file AIETargetModel.h.
Definition at line 111 of file AIETargetModel.h.
|
inline |
Definition at line 183 of file AIETargetModel.h.
Referenced by xilinx::AIE::AIE1TargetModel::AIE1TargetModel(), xilinx::AIE::AIE2TargetModel::AIE2TargetModel(), xilinx::AIE::AIE4TargetModel::AIE4TargetModel(), xilinx::AIE::AIE1TargetModel::classof(), xilinx::AIE::AIE2TargetModel::classof(), and xilinx::AIE::AIE4TargetModel::classof().
|
virtualdefault |
|
inline |
Definition at line 799 of file AIETargetModel.h.
Referenced by xilinx::AIE::AIE2PSTargetModel::AIE2PSTargetModel(), xilinx::AIE::AIE2TargetModel::AIE2TargetModel(), xilinx::AIE::AIE4TargetModel::AIE4TargetModel(), xilinx::AIE::BaseNPU1TargetModel::BaseNPU1TargetModel(), xilinx::AIE::BaseNPU2TargetModel::BaseNPU2TargetModel(), xilinx::AIE::BaseNPU3TargetModel::BaseNPU3TargetModel(), xilinx::AIE::VirtualizedNPU1TargetModel::VirtualizedNPU1TargetModel(), xilinx::AIE::VirtualizedNPU2TargetModel::VirtualizedNPU2TargetModel(), and xilinx::AIE::VirtualizedNPU3TargetModel::VirtualizedNPU3TargetModel().
|
pure virtual |
Return the number of columns in the device.
Implemented in xilinx::AIE::NPU2TargetModel, xilinx::AIE::NPU3TargetModel, xilinx::AIE::VC1902TargetModel, xilinx::AIE::VE2302TargetModel, xilinx::AIE::VE2802TargetModel, xilinx::AIE::VE3858TargetModel, xilinx::AIE::VirtualizedNPU1TargetModel, xilinx::AIE::VirtualizedNPU2TargetModel, and xilinx::AIE::VirtualizedNPU3TargetModel.
Referenced by xilinx::AIE::AIERTControl::AIERTControl(), xilinx::AIE::forEachMemAffinityNeighbor(), getNumControllers(), xilinx::AIE::AIE1TargetModel::getNumDestSwitchboxConnections(), xilinx::AIE::AIE2TargetModel::getNumDestSwitchboxConnections(), xilinx::AIE::AIE4TargetModel::getNumDestSwitchboxConnections(), xilinx::AIE::AIE1TargetModel::getNumSourceSwitchboxConnections(), xilinx::AIE::AIE2TargetModel::getNumSourceSwitchboxConnections(), xilinx::AIE::AIE4TargetModel::getNumSourceSwitchboxConnections(), getTileToControllerIdMap(), xilinx::AIE::Placer::initialize(), isValidTile(), xilinx::AIE::memTileSpillNeighbours(), physicalColumns(), xilinx::AIE::Placer::provenShimGates(), and validate().
| std::optional< uint32_t > xilinx::AIE::AIETargetModel::encodeFieldValue | ( | const BitFieldInfo & | field, |
| uint32_t | value ) const |
Encode a field value with proper bit shifting.
Return nullopt if value does not fit in the field's bit width.
Definition at line 122 of file AIETargetModel.cpp.
References getRegisterDatabase().
Referenced by AIEDMATasksToNPUPass::emitOutOfOrderChannelEnable().
|
inlinevirtual |
First physical column at which a partition may be anchored.
Definition at line 202 of file AIETargetModel.h.
Referenced by partitionStartColumns().
|
pure virtual |
Return the size (in bits) of the accumulator/cascade.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
|
pure virtual |
Return the data bus width of the device.
Implemented in xilinx::AIE::AIE2TargetModel, xilinx::AIE::AIE4TargetModel, and xilinx::AIE::VC1902TargetModel.
Referenced by aieDmaBdFits(), xilinx::AIEX::getBdAddressUnit(), xilinx::AIEX::getHardwareStridesWraps(), and AIEDMATasksToNPUPass::setAddressForSingleBD().
|
inline |
Return the half-open range of BD ids channel in dir can submit.
Definition at line 567 of file AIETargetModel.h.
References getBdPoolId(), getBdPoolStartId(), and getNumBDsInPool().
Referenced by xilinx::AIEX::getBdRegisterBase(), isBdInChannelPool(), and AIEDMATasksToNPUPass::setAddressForSingleBD().
|
pure virtual |
Return the maximum number of addressing dimensions (wraps/strides) a single buffer descriptor supports for a given tile type.
This is the hardware ND access-pattern limit; it does not count the separate shim iteration/repeat dimension that runtime-sequence BD tasks hoist the leading tap dimension into.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by getBDMaxDims().
|
inline |
Return the maximum number of BD addressing dimensions for the tile at (col, row).
Definition at line 518 of file AIETargetModel.h.
References getBDMaxDims(), and getTileType().
|
inlinevirtual |
Return the pool channel in direction dir draws its BDs from.
Reimplemented in xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Definition at line 543 of file AIETargetModel.h.
Referenced by xilinx::AIE::DMAChannelAnalysis::TakenBDs::at(), xilinx::AIE::DMAChannelAnalysis::bdGroups(), getBdIdRangeForChannel(), and getNumBDsForChannel().
|
inlinevirtual |
Reimplemented in xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Definition at line 548 of file AIETargetModel.h.
Referenced by getBdIdRangeForChannel().
|
inlinevirtual |
The steps (destination column - source column, destination row - source row) from one core's cascade output to the next core's input.
Reimplemented in xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Definition at line 308 of file AIETargetModel.h.
Referenced by isLegalCascade().
|
inline |
Definition at line 826 of file AIETargetModel.h.
References getColumnShift().
|
pure virtual |
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by getColumnFromAddress(), getRowFieldMask(), and getTileAddress().
|
pure virtual |
Return the data bus width (in bits) for load/store operations of a compute core.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by getComputeTileMaxVectorAlignBits(), and xilinx::AIE::tileMemoryLimits().
|
inlinevirtual |
Return the alignment (in bits) required by the widest vector load/store a compute core can issue.
This is NOT the load/store bus width. From AIE2P on, a full-width (512-bit) vector access requires 512-bit alignment even though the bus is 256 bits wide. Mirrors vector_ldst_align in aie_api (aie_api/detail/ld_st.hpp), which is the contract kernels compile against: AIE1 (AIE_ARCH 10): 16B AIE2 (AIE_ARCH 20): 32B AIE2P/AIE2PS (AIE_ARCH 21/22): 64B A buffer a core may access with a full-width vector must be aligned to this, or the access silently touches the wrong memory.
Reimplemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2PSTargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::BaseNPU2TargetModel.
Definition at line 439 of file AIETargetModel.h.
References getComputeTileLoadStoreBusWidth().
Referenced by xilinx::AIE::tileMemoryLimits().
|
pure virtual |
Return the size (in bytes) of the address space a core can issue data accesses into.
The neighbour memory windows sit at the bottom of it; the span above them reaches no memory and is reserved so nothing is placed there.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
|
inline |
Stack-pointer alignment in bytes, matching Peano's AIE frame lowering: AIE1/AIE2 require 32B; AIE2P/AIE2PS require 64B, not their 32B data bus.
Definition at line 418 of file AIETargetModel.h.
References getTargetArch().
|
inlinevirtual |
Offset of data memory in the tile's window; buffer addresses are relative to it.
Reimplemented in xilinx::AIE::AIE4TargetModel.
Definition at line 837 of file AIETargetModel.h.
|
inlinevirtual |
Reimplemented in xilinx::AIE::AIE4TargetModel.
Definition at line 849 of file AIETargetModel.h.
|
inlinevirtual |
Return the default stack reservation (in bytes) for a core that does not state one.
It is also the floor when aiecc sizes the stack from its measurement. The linker script places the stack directly below the objectFIFO buffers with no clearance, so a design whose frames exceed its reservation corrupts them instead of faulting.
Definition at line 414 of file AIETargetModel.h.
|
pure virtual |
Return the array address of the dma buffer descriptor for the given col, row, buffer descriptor id, channel and direction.
Not all architecture variants will use channel and direction so these have default values.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2PSTargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by xilinx::AIEX::emitUpdateBdLengthFromParameter(), xilinx::AIEX::getBdRegisterBase(), isOrdinaryWriteAddress(), and AIEDMATasksToNPUPass::setAddressForSingleBD().
|
pure virtual |
Return the offset of the base address field within the shim dma buffer descriptor.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by AIEDMATasksToNPUPass::setAddressForSingleBD().
|
pure virtual |
Return the bit width of the iteration (repeat) wrap/stride fields in a DMA buffer descriptor for the given tile type.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by getDmaBdIterBits(), and xilinx::AIE::verifyDMABDIteration().
|
inline |
Definition at line 534 of file AIETargetModel.h.
References getDmaBdIterBits(), and getTileType().
|
inlinevirtual |
Return the register layout of a buffer descriptor on the given tile type, or null if the target has none modeled for it.
Reimplemented in xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Definition at line 617 of file AIETargetModel.h.
Referenced by xilinx::AIEX::buildBdWords(), xilinx::AIEX::emitUpdateBdAddressFromOffsetParameter(), xilinx::AIEX::emitUpdateBdLengthFromParameter(), getDmaBdLayout(), getDmaBdLayout(), getDmaBdLayout(), getDmaBdStepBias(), isOrdinaryWriteAddress(), AIEDMATasksToNPUPass::setAddressForSingleBD(), and xilinx::AIEX::verifyBdPacketType().
|
inlinevirtual |
Return the BD layout for direction; control and trace BDs may differ.
Reimplemented in xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Definition at line 626 of file AIETargetModel.h.
References getDmaBdLayout(), and xilinx::AIE::getDMAChannelBundle().
|
inline |
Definition at line 621 of file AIETargetModel.h.
References getDmaBdLayout(), and getTileType().
|
inline |
Definition at line 633 of file AIETargetModel.h.
References getDmaBdLayout(), and getTileType().
|
pure virtual |
Return the maximum transfer length, measured in address-generation granules (see getAddressGenGranularity(), 32-bit words on AIE2), that fits in the buffer_length field of a DMA buffer descriptor for the given tile type.
The field width is tile-type specific (e.g. on AIE2 the shim field is 32 bits, the mem-tile field 17 bits and the core-tile field 14 bits).
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by aieDmaBdFits(), and getDmaBdMaxLen().
|
inline |
Definition at line 522 of file AIETargetModel.h.
References getDmaBdMaxLen(), and getTileType().
|
inline |
DmaBdLayout::stepBias, or 1 without a layout.
Definition at line 639 of file AIETargetModel.h.
References getDmaBdLayout(), and xilinx::AIE::DmaBdLayout::stepBias.
Referenced by getDmaBdStepBias(), xilinx::AIEX::getHardwareStridesWraps(), and xilinx::AIE::verifyDMABDIteration().
|
inline |
Definition at line 643 of file AIETargetModel.h.
References getDmaBdStepBias(), and getTileType().
|
pure virtual |
Return the bit width of the step (stride) field in a DMA buffer descriptor for the given tile type.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by getDmaBdStepBits(), and xilinx::AIE::verifyDMABDIteration().
|
inline |
Definition at line 530 of file AIETargetModel.h.
References getDmaBdStepBits(), and getTileType().
|
pure virtual |
Return the bit width of the wrap (size) field in a DMA buffer descriptor for the given tile type.
Used to compute the maximum legal wrap value per dimension.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by getDmaBdWrapBits().
|
inline |
Definition at line 526 of file AIETargetModel.h.
References getDmaBdWrapBits(), and getTileType().
|
inlinevirtual |
Return the bits of the getDmaStatusAddress() register that are all clear exactly when the channel has finished every task pushed to it: nothing queued, nothing running, nothing stalled (0 when unsupported).
Reimplemented in xilinx::AIE::AIE2TargetModel.
Definition at line 693 of file AIETargetModel.h.
Referenced by xilinx::AIEX::guardSequenceQueueDepth().
|
pure virtual |
Return the array address of the dma task queue register for the given col, row, channel and direction.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2PSTargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by getDmaQueueAddress(), and getLocalDmaControlAddress().
|
inline |
Return the array address of the task queue register a push writes, the word after the channel's control register.
Definition at line 697 of file AIETargetModel.h.
References getDmaControlAddress().
|
inlinevirtual |
Return the address of the DMA status register for a channel, or nullopt when this target's layout has not been verified.
The register carries the live task-queue occupancy in getDmaTaskQueueSizeMask(), which is the only way to observe queue space: the queue does not backpressure, so a push onto a full queue is dropped rather than stalled.
Reimplemented in xilinx::AIE::AIE2PSTargetModel, and xilinx::AIE::AIE2TargetModel.
Definition at line 680 of file AIETargetModel.h.
Referenced by xilinx::AIEX::guardSequenceQueueDepth(), and xilinx::AIEX::queueSpacePoll().
|
pure virtual |
Return how many DMA tasks a single channel's task queue holds (unsupported = 0).
Pushing to a full queue drops the push and sets the channel's sticky Task_Queue_Overflow bit, stranding whoever waits on that transfer. Flat rather than per-tile-type because aie-codegen's XAie_DmaGetMaxQueueSize (XAIE_DMA_MAX_QUEUE_SIZE) returns the same depth for every tile type and architecture.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by getDmaTaskQueueDepth(), and xilinx::AIEX::guardSequenceQueueDepth().
|
inline |
Return the task-queue depth for one channel.
The queue is a per-channel resource in hardware, but no shipping target gives channels different depths, so this forwards to the flat accessor; carrying the parameters spares call sites churn if one ever does.
Definition at line 785 of file AIETargetModel.h.
References getDmaTaskQueueDepth().
|
inlinevirtual |
Return the mask selecting the live task-queue occupancy field within the getDmaStatusAddress() register (0 when unsupported).
The field does not count the task the channel is running.
Reimplemented in xilinx::AIE::AIE2TargetModel.
Definition at line 688 of file AIETargetModel.h.
Referenced by xilinx::AIEX::guardSequenceQueueDepth(), and xilinx::AIEX::queueSpacePoll().
| std::optional< uint32_t > xilinx::AIE::AIETargetModel::getFieldMask | ( | const BitFieldInfo & | field | ) | const |
Compute a 32-bit mask for a register field.
Return nullopt if the field does not fit in a 32-bit register.
Definition at line 131 of file AIETargetModel.cpp.
References xilinx::AIE::BitFieldInfo::bit_end, xilinx::AIE::BitFieldInfo::bit_start, and xilinx::AIE::BitFieldInfo::getWidth().
Referenced by AIEDMATasksToNPUPass::emitOutOfOrderChannelEnable().
|
inline |
Definition at line 181 of file AIETargetModel.h.
Referenced by xilinx::AIE::AIE1TargetModel::classof(), xilinx::AIE::AIE2PSTargetModel::classof(), xilinx::AIE::AIE2TargetModel::classof(), xilinx::AIE::AIE4TargetModel::classof(), xilinx::AIE::BaseNPU1TargetModel::classof(), xilinx::AIE::BaseNPU2TargetModel::classof(), xilinx::AIE::BaseNPU3TargetModel::classof(), xilinx::AIE::NPU2TargetModel::classof(), xilinx::AIE::NPU3TargetModel::classof(), xilinx::AIE::VC1902TargetModel::classof(), xilinx::AIE::VE2302TargetModel::classof(), xilinx::AIE::VE2802TargetModel::classof(), xilinx::AIE::VE3858TargetModel::classof(), xilinx::AIE::VirtualizedNPU1TargetModel::classof(), xilinx::AIE::VirtualizedNPU2TargetModel::classof(), and xilinx::AIE::VirtualizedNPU3TargetModel::classof().
|
inline |
Return the DMA task-queue register address relative to its tile.
Definition at line 703 of file AIETargetModel.h.
References getDmaControlAddress(), and getTileAddress().
Referenced by AIEDMATasksToNPUPass::emitOutOfOrderChannelEnable(), and DmaChannelResetToMaskWrite32Pattern::matchAndRewrite().
|
pure virtual |
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by SetLockToWrite32Pattern::matchAndRewrite().
|
pure virtual |
Return the size (in bytes) of the local data memory of a core.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by isOrdinaryWriteAddress(), and xilinx::AIE::tileMemoryLimits().
|
virtual |
Return the lock base index (or offset) in the local tile when accessing a neighbor's lock or an empty optional if an invalid neighbor is given Takes into account differences between Memory and Core tiles.
Reimplemented in xilinx::AIE::AIE4TargetModel.
Definition at line 1731 of file AIETargetModel.cpp.
References getNumLocks(), isCoreTile(), isEast(), isInternal(), isMemEast(), isMemNorth(), isMemSouth(), isMemTile(), isMemWest(), and isWest().
Referenced by AIEDMATasksToNPUPass::gatherBdTemplateFields(), and xilinx::AIE::AIE4TargetModel::getLockLocalBaseIndex().
|
pure virtual |
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
|
pure virtual |
Return the maximum value that can be stored in a lock register.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by AIEDMATasksToNPUPass::gatherBdTemplateFields().
|
pure virtual |
Return the largest out-of-order BD id (unsupported = 0).
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by xilinx::AIE::verifyDMABDOutOfOrderId().
|
pure virtual |
Return the largest packet id the stream switch can route.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by getPacketIdBits().
|
pure virtual |
Return the largest DMA task repeat count (unsupported = 0).
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
|
pure virtual |
Return the tile ID of the memory to the east of the given tile, if it exists.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
|
pure virtual |
Return the base address in the local address map for a core.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by getMemLocalBaseAddress().
|
pure virtual |
Return the base address in the local address map for a core.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
|
virtual |
Return the memory base address (or offset) in the local tile when accessing a neighbor's memory or an empty optional if an invalid neighbor is given Takes into account differences between Memory and Core tiles.
Reimplemented in xilinx::AIE::AIE4TargetModel.
Definition at line 1757 of file AIETargetModel.cpp.
References getMemEastBaseAddress(), getMemNorthBaseAddress(), getMemSouthBaseAddress(), getMemTileSize(), getMemWestBaseAddress(), isCoreTile(), isEast(), isInternal(), isMemEast(), isMemNorth(), isMemSouth(), isMemTile(), isMemWest(), and isWest().
Referenced by xilinx::AIE::AIE4TargetModel::getMemLocalBaseAddress(), and AIEDMATasksToNPUPass::setAddressForSingleBD().
|
pure virtual |
Return the tile ID of the memory to the north of the given tile, if it exists.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
|
pure virtual |
Return the base address in the local address map for a core.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by getMemLocalBaseAddress().
|
pure virtual |
Return the tile ID of the memory to the south of the given tile, if it exists.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
|
pure virtual |
Return the base address in the local address map for a core.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by getMemLocalBaseAddress().
|
inlinevirtual |
Return the data bus width (in bits) for load/store operations of a memory tile.
Definition at line 447 of file AIETargetModel.h.
Referenced by xilinx::AIE::tileMemoryLimits().
|
pure virtual |
Return the size (in bytes) of a MemTile.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by getMemLocalBaseAddress(), isOrdinaryWriteAddress(), and xilinx::AIE::tileMemoryLimits().
|
pure virtual |
Return the tile ID of the memory to the west of the given tile, if it exists.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
|
pure virtual |
Return the base address in the local address map for a core.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by getMemLocalBaseAddress().
|
inline |
Definition at line 798 of file AIETargetModel.h.
Referenced by hasProperty().
|
pure virtual |
Return the number of arbiters per stream switch.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
|
pure virtual |
Return the number of memory banks of a given tile.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
|
pure virtual |
Return the size of the BD id space of a tile type (see getTotalNumBDs()).
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by getNumBDs(), getNumBDsForChannel(), getNumBDsInPool(), getTotalNumBDs(), isOrdinaryWriteAddress(), and AIEAssignBufferDescriptorIDsPass::runOnOperation().
|
inline |
Return the number of buffer descriptors supported by the DMA in the given tile.
Definition at line 512 of file AIETargetModel.h.
References getNumBDs(), and getTileType().
|
inline |
Definition at line 607 of file AIETargetModel.h.
References getNumBDs(), and isBdChannelAccessible().
|
inline |
Definition at line 574 of file AIETargetModel.h.
References getBdPoolId(), and getNumBDsInPool().
Referenced by AIEAssignBufferDescriptorIDsPass::runOnOperation().
|
inlinevirtual |
Reimplemented in xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Definition at line 552 of file AIETargetModel.h.
References getNumBDs().
Referenced by xilinx::AIE::DMAChannelAnalysis::bdGroups(), getBdIdRangeForChannel(), and getNumBDsForChannel().
|
inlinevirtual |
Total number of microcontrollers (uC) in the device.
Defaults to columns() * getNumControllersPerColumn(); architectures with a single device-level uC (e.g. AIE2/AIE2P NPUs) override this directly instead, since their controller count doesn't scale with column count.
Reimplemented in xilinx::AIE::BaseNPU1TargetModel, and xilinx::AIE::BaseNPU2TargetModel.
Definition at line 223 of file AIETargetModel.h.
References columns(), and getNumControllersPerColumn().
|
inlinevirtual |
Number of microcontrollers (uC) per column.
Reimplemented in xilinx::AIE::AIE2PSTargetModel, and xilinx::AIE::AIE4TargetModel.
Definition at line 216 of file AIETargetModel.h.
Referenced by getNumControllers().
|
pure virtual |
Return the number of destinations of connections inside a shimmux.
These are the targets of connect operations in the switchbox.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by getNumDMAChannels(), and xilinx::AIE::Pathfinder::initialize().
|
pure virtual |
Return the number of destinations of connections inside a switchbox.
These are the targets of connect operations in the switchbox.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2PSTargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by xilinx::AIE::DMAChannelAnalysis::TakenBDs::at(), getNumDMAChannels(), xilinx::AIE::Pathfinder::initialize(), xilinx::AIE::StreamCuts::StreamCuts(), and validate().
| uint32_t xilinx::AIE::AIETargetModel::getNumDMAChannels | ( | int | col, |
| int | row, | ||
| AIE::DMAChannelDir | dir ) const |
Return the number of DMA channels a tile has in one direction.
An MM2S channel feeds the stream switch, or the shim mux if the tile has one, so it is counted by that switch's DMA sources; an S2MM channel by its DMA destinations. Prefer this to the TileOp connection accessors, which are named from the switch's side and so read the other way round. Control and trace DMAs are counted on their own bundles.
Definition at line 1782 of file AIETargetModel.cpp.
References xilinx::AIE::getDMAChannelBundle(), getNumDestShimMuxConnections(), getNumDestSwitchboxConnections(), getNumSourceShimMuxConnections(), getNumSourceSwitchboxConnections(), hasShimMux(), xilinx::AIE::isMM2S(), and isValidTile().
Referenced by xilinx::AIE::DMAChannelAnalysis::bdGroups(), xilinx::AIE::AIE4TargetModel::getDmaBdAddress(), xilinx::AIE::getDMACapacity(), xilinx::AIE::AIE4TargetModel::getDmaControlAddress(), and isDmaChannelSupported().
|
pure virtual |
Return the number of lock objects for a given tile type.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by getLockLocalBaseIndex(), getNumLocks(), and AIEAssignLockIDsPass::runOnOperation().
|
inline |
Return the number of lock objects for a tile at the given coordinates.
Definition at line 461 of file AIETargetModel.h.
References getNumLocks(), and getTileType().
|
pure virtual |
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::BaseNPU1TargetModel, xilinx::AIE::BaseNPU2TargetModel, xilinx::AIE::BaseNPU3TargetModel, xilinx::AIE::VE2302TargetModel, xilinx::AIE::VE2802TargetModel, and xilinx::AIE::VE3858TargetModel.
Referenced by xilinx::AIE::AIE4TargetModel::getRowFromAddress(), xilinx::AIE::AIE4TargetModel::getTileAddress(), and validate().
|
pure virtual |
Return the number of master select values per stream-switch arbiter.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
|
pure virtual |
Return the number of packet-rule slots per stream-switch slave port.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
|
pure virtual |
Return the number of sources of connections inside a shimmux.
These are the origins of connect operations in the switchbox.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by getNumDMAChannels(), and xilinx::AIE::Pathfinder::initialize().
|
pure virtual |
Return the number of sources of connections inside a switchbox.
These are the origins of connect operations in the switchbox.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2PSTargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by xilinx::AIE::DMAChannelAnalysis::TakenBDs::at(), getNumDMAChannels(), xilinx::AIE::Pathfinder::initialize(), xilinx::AIE::StreamCuts::StreamCuts(), and validate().
|
inline |
Bits a packet id spans, and the mask a switch's id match uses.
Definition at line 764 of file AIETargetModel.h.
References getMaxPacketId().
Referenced by getPacketIdMask().
|
inline |
Definition at line 767 of file AIETargetModel.h.
References getPacketIdBits().
|
pure virtual |
Return the size (in bytes) of a core's program memory.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by isOrdinaryWriteAddress().
|
protected |
Get the register database, loading it lazily on first access.
Throws fatal error if database is required but unavailable.
Definition at line 57 of file AIETargetModel.cpp.
References loadRegisterDatabase().
Referenced by encodeFieldValue(), isOrdinaryWriteAddress(), lookupEvent(), and lookupRegister().
|
inline |
Definition at line 822 of file AIETargetModel.h.
References getColumnShift(), and getRowShift().
Referenced by xilinx::AIE::AIE4TargetModel::getRowFromAddress(), and getRowFromAddress().
|
inlinevirtual |
Inverse of getTileAddress() for any address in the tile's window.
Reimplemented in xilinx::AIE::AIE4TargetModel.
Definition at line 831 of file AIETargetModel.h.
References getRowFieldMask(), and getRowShift().
|
pure virtual |
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by getRowFieldMask(), getRowFromAddress(), getTileAddress(), and isOrdinaryWriteAddress().
|
inline |
Return the memory module a and b can both reach, if any.
Definition at line 348 of file AIETargetModel.h.
References Either, First, isLegalMemAffinity(), isMemTile(), isShimNOCorPLTile(), None, and Second.
Referenced by xilinx::AIE::memTileSpillNeighbours(), and xilinx::AIE::sharedMemory().
|
pure virtual |
|
pure virtual |
Get stream switch port index for a given port specification Return port index for Stream_Switch_Event_Port_Selection register, or nullopt if invalid.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2PSTargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by resolvePortValue().
|
pure virtual |
Return the target architecture.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2PSTargetModel, xilinx::AIE::AIE2TargetModel, xilinx::AIE::AIE4TargetModel, and xilinx::AIE::BaseNPU2TargetModel.
Referenced by xilinx::AIE::AIERTControl::AIERTControl(), getCoreStackAlignment(), and isOrdinaryWriteAddress().
|
inlinevirtual |
Return the base address of the tile's window.
Override together with getRowFromAddress() if tiles span more than one address row.
Reimplemented in xilinx::AIE::AIE4TargetModel.
Definition at line 817 of file AIETargetModel.h.
References getColumnShift(), and getRowShift().
Referenced by xilinx::AIE::AIE1TargetModel::getDmaBdAddress(), xilinx::AIE::AIE2PSTargetModel::getDmaBdAddress(), xilinx::AIE::AIE2TargetModel::getDmaBdAddress(), xilinx::AIE::AIE1TargetModel::getDmaControlAddress(), xilinx::AIE::AIE2PSTargetModel::getDmaControlAddress(), xilinx::AIE::AIE2TargetModel::getDmaControlAddress(), xilinx::AIE::AIE2TargetModel::getDmaStatusAddress(), and getLocalDmaControlAddress().
| DenseMap< TileID, int > xilinx::AIE::AIETargetModel::getTileToControllerIdMap | ( | bool | columnWiseUniqueIDs = true | ) | const |
Return a mapping from tile coordinates to controller IDs.
When columnWiseUniqueIDs is true (default), IDs are unique within each column. Otherwise they are globally unique across the device.
Definition at line 145 of file AIETargetModel.cpp.
|
pure virtual |
Return the tile type for the given tile coordinates.
Implemented in xilinx::AIE::BaseNPU2TargetModel, xilinx::AIE::BaseNPU3TargetModel, xilinx::AIE::VC1902TargetModel, xilinx::AIE::VE2302TargetModel, xilinx::AIE::VE2802TargetModel, xilinx::AIE::VE3858TargetModel, and xilinx::AIE::VirtualizedNPU1TargetModel.
Referenced by xilinx::AIE::forEachMemAffinityNeighbor(), getBDMaxDims(), getDmaBdIterBits(), getDmaBdLayout(), getDmaBdLayout(), getDmaBdMaxLen(), getDmaBdStepBias(), getDmaBdStepBits(), getDmaBdWrapBits(), xilinx::AIE::AIE2TargetModel::getNumBanks(), getNumBDs(), xilinx::AIE::AIE2TargetModel::getNumBDsInPool(), getNumLocks(), getTotalNumBDs(), xilinx::AIE::Placer::initialize(), isCoreTile(), isMemTile(), isShimNOCorPLTile(), isShimNOCTile(), isShimPLTile(), and xilinx::AIE::Placer::provenShimGates().
|
inlinevirtual |
Physical BDs over all pools; exceeds getNumBDs() where pools reuse ids.
Reimplemented in xilinx::AIE::AIE4TargetModel.
Definition at line 557 of file AIETargetModel.h.
References getNumBDs().
Referenced by getTotalNumBDs(), and xilinx::AIE::HasValidBDs< ConcreteType >::verifyTrait().
|
inline |
Definition at line 561 of file AIETargetModel.h.
References getTileType(), and getTotalNumBDs().
|
inlinevirtual |
True if data BD ids are channel-local, so a BD's address depends on its channel and direction.
Reimplemented in xilinx::AIE::AIE4TargetModel.
Definition at line 649 of file AIETargetModel.h.
Referenced by usesChannelLocalBdIds().
|
inline |
Definition at line 801 of file AIETargetModel.h.
References getModelProperties().
Referenced by xilinx::AIE::AIERTControl::AIERTControl(), xilinx::AIE::verifyDMABDIteration(), and xilinx::AIE::verifyDMABDOutOfOrderId().
|
inlinevirtual |
True if the tile's DMA/NOC/PLIO ports sit behind an aie.shim_mux; otherwise its DMA is routed in the switchbox like any other tile's.
Reimplemented in xilinx::AIE::AIE4TargetModel.
Definition at line 737 of file AIETargetModel.h.
References isShimNOCorPLTile().
Referenced by getNumDMAChannels(), and xilinx::AIE::Pathfinder::initialize().
|
inline |
True iff the channel exists and can submit bd_id in every direction it has.
Conservative on AIE4, where pools depend on direction.
Definition at line 594 of file AIETargetModel.h.
References isBdChannelAccessible(), and isDmaChannelSupported().
|
inline |
Definition at line 586 of file AIETargetModel.h.
References isBdInChannelPool(), and isDmaChannelSupported().
Referenced by xilinx::AIE::DMAChannelAnalysis::TakenBDs::at(), xilinx::AIE::AIE4TargetModel::getDmaBdAddress(), getNumBDsForChannel(), isBdChannelAccessible(), and AIEAssignBufferDescriptorIDsPass::runOnOperation().
|
inline |
True iff bd_id is in the channel's pool, whether or not it exists.
Definition at line 580 of file AIETargetModel.h.
References getBdIdRangeForChannel().
Referenced by isBdChannelAccessible().
|
inline |
Return true if the given tile is a Core tile.
Definition at line 237 of file AIETargetModel.h.
References getTileType().
Referenced by xilinx::AIE::AIE1TargetModel::getDmaBdAddress(), xilinx::AIE::AIE2TargetModel::getDmaBdAddress(), xilinx::AIE::AIE4TargetModel::getDmaBdAddress(), xilinx::AIE::AIE1TargetModel::getDmaBdAddressOffset(), xilinx::AIE::AIE2TargetModel::getDmaBdAddressOffset(), xilinx::AIE::AIE1TargetModel::getDmaControlAddress(), xilinx::AIE::AIE2TargetModel::getDmaControlAddress(), xilinx::AIE::AIE4TargetModel::getDmaControlAddress(), xilinx::AIE::AIE2TargetModel::getDmaStatusAddress(), xilinx::AIE::AIE2TargetModel::getLocalLockAddress(), xilinx::AIE::AIE4TargetModel::getLocalLockAddress(), getLockLocalBaseIndex(), getMemLocalBaseAddress(), xilinx::AIE::AIE1TargetModel::getStreamSwitchPortIndex(), xilinx::AIE::AIE2TargetModel::getStreamSwitchPortIndex(), xilinx::AIE::AIE4TargetModel::getTileAddress(), xilinx::AIE::AIE1TargetModel::isLegalTileConnection(), xilinx::AIE::AIE2TargetModel::isLegalTileConnection(), xilinx::AIE::AIE4TargetModel::isLegalTileConnection(), isOrdinaryWriteAddress(), and validate().
|
inline |
Definition at line 748 of file AIETargetModel.h.
References getNumDMAChannels().
Referenced by isBdChannelAccessible(), and isBdChannelAccessible().
|
inline |
Return true if src is East of dst.
Definition at line 292 of file AIETargetModel.h.
Referenced by getLockLocalBaseIndex(), getMemLocalBaseAddress(), xilinx::AIE::AIE1TargetModel::isLegalMemAffinity(), xilinx::AIE::AIE2TargetModel::isLegalMemAffinity(), xilinx::AIE::AIE4TargetModel::isLegalMemAffinity(), and xilinx::AIE::AIE1TargetModel::isMemEast().
|
inline |
Return true if src is the internal memory of dst.
Definition at line 282 of file AIETargetModel.h.
Referenced by getLockLocalBaseIndex(), getMemLocalBaseAddress(), xilinx::AIE::AIE1TargetModel::isLegalMemAffinity(), xilinx::AIE::AIE2TargetModel::isLegalMemAffinity(), xilinx::AIE::AIE4TargetModel::isLegalMemAffinity(), xilinx::AIE::AIE1TargetModel::isMemEast(), xilinx::AIE::AIE2TargetModel::isMemEast(), xilinx::AIE::AIE4TargetModel::isMemEast(), and xilinx::AIE::AIE1TargetModel::isMemWest().
|
inline |
Return true if a cascade can run from src to dst.
Definition at line 313 of file AIETargetModel.h.
References getCascadeSteps().
|
pure virtual |
Return true if core can access the memory in mem.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by getSharedMemory(), and xilinx::AIE::isSharedComputeMemory().
|
pure virtual |
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by xilinx::AIE::Pathfinder::initialize().
|
pure virtual |
Return true if src has a memory tile which is East of dst.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by getLockLocalBaseIndex(), and getMemLocalBaseAddress().
|
pure virtual |
Return true if src has a memory tile which is North of dst.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by getLockLocalBaseIndex(), and getMemLocalBaseAddress().
|
pure virtual |
Return true if src has a memory tile which is South of dst.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by getLockLocalBaseIndex(), and getMemLocalBaseAddress().
|
inline |
Return true if the given tile is a Mem tile.
Definition at line 242 of file AIETargetModel.h.
References getTileType().
Referenced by AIEDMATasksToNPUPass::gatherBdTemplateFields(), xilinx::AIE::AIE2TargetModel::getBdPoolId(), xilinx::AIE::AIE4TargetModel::getBdPoolId(), xilinx::AIE::AIE2TargetModel::getBdPoolStartId(), xilinx::AIE::AIE4TargetModel::getDataMemoryOffset(), xilinx::AIE::AIE2TargetModel::getDmaBdAddress(), xilinx::AIE::AIE4TargetModel::getDmaBdAddress(), xilinx::AIE::AIE2TargetModel::getDmaControlAddress(), xilinx::AIE::AIE4TargetModel::getDmaControlAddress(), xilinx::AIE::AIE2TargetModel::getDmaStatusAddress(), xilinx::AIE::AIE2TargetModel::getLocalLockAddress(), xilinx::AIE::AIE4TargetModel::getLocalLockAddress(), xilinx::AIE::AIE4TargetModel::getLockLocalBaseIndex(), getLockLocalBaseIndex(), xilinx::AIE::AIE4TargetModel::getMemLocalBaseAddress(), getMemLocalBaseAddress(), xilinx::AIE::AIE2TargetModel::getMemSouth(), xilinx::AIE::AIE4TargetModel::getNumBanks(), xilinx::AIE::AIE2TargetModel::getNumBDsInPool(), xilinx::AIE::AIE2TargetModel::getNumDestSwitchboxConnections(), xilinx::AIE::AIE4TargetModel::getNumDestSwitchboxConnections(), xilinx::AIE::AIE2TargetModel::getNumSourceSwitchboxConnections(), xilinx::AIE::AIE4TargetModel::getNumSourceSwitchboxConnections(), getSharedMemory(), xilinx::AIE::AIE2TargetModel::getStreamSwitchPortIndex(), xilinx::AIE::AIE4TargetModel::getTileAddress(), xilinx::AIE::AIE4TargetModel::hasChannelLocalBdIds(), xilinx::AIE::AIE2TargetModel::isLegalMemAffinity(), xilinx::AIE::AIE4TargetModel::isLegalMemAffinity(), xilinx::AIE::AIE1TargetModel::isLegalTileConnection(), xilinx::AIE::AIE2TargetModel::isLegalTileConnection(), xilinx::AIE::AIE4TargetModel::isLegalTileConnection(), isOrdinaryWriteAddress(), AIEDMATasksToNPUPass::setAddressForSingleBD(), and validate().
|
inlinevirtual |
Reimplemented in xilinx::AIE::BaseNPU2TargetModel.
Definition at line 856 of file AIETargetModel.h.
|
pure virtual |
Return true if src has a memory tile which is West of dst.
Implemented in xilinx::AIE::AIE1TargetModel, xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Referenced by getLockLocalBaseIndex(), and getMemLocalBaseAddress().
|
inline |
Return true if src is North of dst.
Definition at line 297 of file AIETargetModel.h.
Referenced by xilinx::AIE::AIE1TargetModel::isLegalMemAffinity(), xilinx::AIE::AIE1TargetModel::isMemNorth(), xilinx::AIE::AIE2TargetModel::isMemNorth(), and xilinx::AIE::AIE4TargetModel::isMemNorth().
| bool xilinx::AIE::AIETargetModel::isOrdinaryWriteAddress | ( | TileID | tile, |
| uint32_t | offset ) const |
Definition at line 71 of file AIETargetModel.cpp.
References getDmaBdAddress(), getDmaBdLayout(), getLocalMemorySize(), getMemTileSize(), getNumBDs(), getProgramMemorySize(), getRegisterDatabase(), getRowShift(), getTargetArch(), isCoreTile(), isMemTile(), isShimNOCorPLTile(), isShimNOCTile(), isValidTile(), xilinx::AIE::RegisterDatabase::lookupRegisterByOffset(), and xilinx::AIE::RegisterInfo::name.
|
inline |
Return true if the given tile is either a ShimNOC or ShimPL tile.
Definition at line 257 of file AIETargetModel.h.
References getTileType().
Referenced by xilinx::AIE::AIE2TargetModel::getLocalLockAddress(), xilinx::AIE::AIE1TargetModel::getNumDestShimMuxConnections(), xilinx::AIE::AIE2TargetModel::getNumDestShimMuxConnections(), xilinx::AIE::AIE1TargetModel::getNumSourceShimMuxConnections(), xilinx::AIE::AIE2TargetModel::getNumSourceShimMuxConnections(), getSharedMemory(), xilinx::AIE::AIE1TargetModel::getStreamSwitchPortIndex(), hasShimMux(), xilinx::AIE::AIE1TargetModel::isLegalTileConnection(), xilinx::AIE::AIE2TargetModel::isLegalTileConnection(), xilinx::AIE::AIE4TargetModel::isLegalTileConnection(), and isOrdinaryWriteAddress().
|
inline |
Return true if the given tile is a ShimNOC tile.
Definition at line 247 of file AIETargetModel.h.
References getTileType().
Referenced by xilinx::AIEX::getBdAddressUnit(), xilinx::AIE::AIE4TargetModel::getBdPoolId(), xilinx::AIE::AIE4TargetModel::getBdPoolStartId(), xilinx::AIE::AIE1TargetModel::getDmaBdAddress(), xilinx::AIE::AIE2PSTargetModel::getDmaBdAddress(), xilinx::AIE::AIE2TargetModel::getDmaBdAddress(), xilinx::AIE::AIE4TargetModel::getDmaBdAddress(), xilinx::AIE::AIE1TargetModel::getDmaBdAddressOffset(), xilinx::AIE::AIE4TargetModel::getDmaBdAddressOffset(), xilinx::AIE::AIE1TargetModel::getDmaControlAddress(), xilinx::AIE::AIE2PSTargetModel::getDmaControlAddress(), xilinx::AIE::AIE2TargetModel::getDmaControlAddress(), xilinx::AIE::AIE4TargetModel::getDmaControlAddress(), xilinx::AIE::AIE2PSTargetModel::getDmaStatusAddress(), xilinx::AIE::AIE2TargetModel::getDmaStatusAddress(), xilinx::AIE::AIE4TargetModel::getLocalLockAddress(), xilinx::AIE::AIE4TargetModel::getNumBDsInPool(), xilinx::AIE::AIE1TargetModel::getNumDestSwitchboxConnections(), xilinx::AIE::AIE2PSTargetModel::getNumDestSwitchboxConnections(), xilinx::AIE::AIE2TargetModel::getNumDestSwitchboxConnections(), xilinx::AIE::AIE4TargetModel::getNumDestSwitchboxConnections(), xilinx::AIE::AIE1TargetModel::getNumSourceSwitchboxConnections(), xilinx::AIE::AIE2PSTargetModel::getNumSourceSwitchboxConnections(), xilinx::AIE::AIE2TargetModel::getNumSourceSwitchboxConnections(), xilinx::AIE::AIE4TargetModel::getNumSourceSwitchboxConnections(), xilinx::AIE::AIE2PSTargetModel::getStreamSwitchPortIndex(), xilinx::AIE::AIE2TargetModel::getStreamSwitchPortIndex(), xilinx::AIEX::isLinearModeTransfer(), isOrdinaryWriteAddress(), AIEDMATasksToNPUPass::setAddressForSingleBD(), and validate().
|
inline |
Return true if the given tile is a ShimPL tile.
Definition at line 252 of file AIETargetModel.h.
References getTileType().
Referenced by xilinx::AIE::AIE1TargetModel::getNumDestSwitchboxConnections(), xilinx::AIE::AIE2TargetModel::getNumDestSwitchboxConnections(), xilinx::AIE::AIE1TargetModel::getNumSourceSwitchboxConnections(), xilinx::AIE::AIE2TargetModel::getNumSourceSwitchboxConnections(), and validate().
|
inline |
Return true if src is South of dst.
Definition at line 302 of file AIETargetModel.h.
Referenced by xilinx::AIE::AIE1TargetModel::isLegalMemAffinity(), xilinx::AIE::AIE1TargetModel::isMemSouth(), xilinx::AIE::AIE2TargetModel::isMemSouth(), and xilinx::AIE::AIE4TargetModel::isMemSouth().
|
virtual |
Reimplemented in xilinx::AIE::BaseNPU2TargetModel.
Definition at line 1797 of file AIETargetModel.cpp.
Referenced by BfpToIntegerConverter::BfpToIntegerConverter().
|
inlinevirtual |
Return true if the given tile ID is valid.
Definition at line 263 of file AIETargetModel.h.
References columns(), and rows().
Referenced by xilinx::AIE::getConnectingWireEndpoint(), xilinx::AIE::AIE1TargetModel::getMemEast(), xilinx::AIE::AIE2TargetModel::getMemEast(), xilinx::AIE::AIE4TargetModel::getMemEast(), xilinx::AIE::AIE1TargetModel::getMemNorth(), xilinx::AIE::AIE2TargetModel::getMemNorth(), xilinx::AIE::AIE1TargetModel::getMemSouth(), xilinx::AIE::AIE2TargetModel::getMemSouth(), xilinx::AIE::AIE1TargetModel::getMemWest(), xilinx::AIE::AIE2TargetModel::getMemWest(), getNumDMAChannels(), isOrdinaryWriteAddress(), and xilinx::AIE::memTileSpillNeighbours().
|
inline |
Return true if src is West of dst.
Definition at line 287 of file AIETargetModel.h.
Referenced by getLockLocalBaseIndex(), getMemLocalBaseAddress(), xilinx::AIE::AIE1TargetModel::isLegalMemAffinity(), xilinx::AIE::AIE2TargetModel::isLegalMemAffinity(), xilinx::AIE::AIE4TargetModel::isLegalMemAffinity(), xilinx::AIE::AIE1TargetModel::isMemWest(), xilinx::AIE::AIE2TargetModel::isMemWest(), and xilinx::AIE::AIE4TargetModel::isMemWest().
|
protectedvirtual |
Subclasses override to provide architecture-specific database loading.
Returns nullptr if register database is not available for this architecture.
Reimplemented in xilinx::AIE::AIE2TargetModel, and xilinx::AIE::AIE4TargetModel.
Definition at line 52 of file AIETargetModel.cpp.
Referenced by getRegisterDatabase().
| std::optional< uint32_t > xilinx::AIE::AIETargetModel::lookupEvent | ( | llvm::StringRef | name, |
| TileID | tile, | ||
| bool | isMem = false ) const |
Lookup event number by name and tile.
Return Event number if found, nullopt otherwise
Definition at line 112 of file AIETargetModel.cpp.
References getRegisterDatabase().
| const RegisterInfo * xilinx::AIE::AIETargetModel::lookupRegister | ( | llvm::StringRef | name, |
| TileID | tile, | ||
| bool | isMem = false ) const |
Register Database API - provides access to register and event information for trace configuration and low-level register access.
Lookup register information by name and tile. Return pointer to register info, or nullptr if not found
Definition at line 62 of file AIETargetModel.cpp.
References getRegisterDatabase().
Referenced by AIEDMATasksToNPUPass::emitOutOfOrderChannelEnable().
|
inline |
Every physical column offset at which a numCols-wide partition still fits.
Definition at line 205 of file AIETargetModel.h.
References firstPlaceableColumn(), and physicalColumns().
|
inlinevirtual |
Width of the physical array this (possibly virtualized) device is carved from.
This defaults to columns(), which is correct for devices that are the whole array.
Reimplemented in xilinx::AIE::BaseNPU1TargetModel, and xilinx::AIE::BaseNPU2TargetModel.
Definition at line 199 of file AIETargetModel.h.
References columns().
Referenced by partitionStartColumns().
| std::optional< uint32_t > xilinx::AIE::AIETargetModel::resolvePortValue | ( | llvm::StringRef | value, |
| TileID | tile, | ||
| bool | master ) const |
Resolve stream switch port specification to port index.
Return Port index for stream switch register, or nullopt if invalid
Definition at line 187 of file AIETargetModel.cpp.
References getStreamSwitchPortIndex().
|
pure virtual |
Return the number of rows in the device.
Implemented in xilinx::AIE::BaseNPU1TargetModel, xilinx::AIE::BaseNPU2TargetModel, xilinx::AIE::BaseNPU3TargetModel, xilinx::AIE::VC1902TargetModel, xilinx::AIE::VE2302TargetModel, xilinx::AIE::VE2802TargetModel, and xilinx::AIE::VE3858TargetModel.
Referenced by xilinx::AIE::AIERTControl::AIERTControl(), xilinx::AIE::forEachMemAffinityNeighbor(), xilinx::AIE::AIE1TargetModel::getNumDestSwitchboxConnections(), xilinx::AIE::AIE2TargetModel::getNumDestSwitchboxConnections(), xilinx::AIE::AIE4TargetModel::getNumDestSwitchboxConnections(), xilinx::AIE::AIE1TargetModel::getNumSourceSwitchboxConnections(), xilinx::AIE::AIE2TargetModel::getNumSourceSwitchboxConnections(), xilinx::AIE::AIE4TargetModel::getNumSourceSwitchboxConnections(), getTileToControllerIdMap(), xilinx::AIE::Placer::initialize(), isValidTile(), xilinx::AIE::Placer::provenShimGates(), xilinx::AIE::StreamCuts::StreamCuts(), and validate().
|
inline |
Control and trace channels always have private, channel-local pools.
Definition at line 652 of file AIETargetModel.h.
References xilinx::AIE::getDMAChannelBundle(), and hasChannelLocalBdIds().
Referenced by xilinx::AIEX::getBdRegisterBase(), and AIEDMATasksToNPUPass::setAddressForSingleBD().
| void xilinx::AIE::AIETargetModel::validate | ( | ) | const |
Definition at line 1672 of file AIETargetModel.cpp.
References columns(), getNumDestSwitchboxConnections(), getNumMemTileRows(), getNumSourceSwitchboxConnections(), isCoreTile(), isMemTile(), isShimNOCTile(), isShimPLTile(), and rows().