|
MLIR-AIE 1.4.6.dev
|
#include "aie/Dialect/AIE/IR/AIETargetModel.h"
Public Member Functions | |
| AIE2TargetModel (TargetModelKind k) | |
| AIEArch | getTargetArch () const override |
| Return the target architecture. | |
| llvm::ArrayRef< std::pair< int, int > > | getCascadeSteps () const override |
| The steps (destination column - source column, destination row - source row) from one core's cascade output to the next core's input. | |
| uint32_t | getAddressGenGranularity () const override |
| Return the data bus width of the device. | |
| uint32_t | getNumSlaveSlots () const override |
| Return the number of packet-rule slots per stream-switch slave port. | |
| uint32_t | getNumArbiters () const override |
| Return the number of arbiters per stream switch. | |
| uint32_t | getNumMselsPerArbiter () const override |
| Return the number of master select values per stream-switch arbiter. | |
| uint32_t | getMaxPacketId () const override |
| Return the largest packet id the stream switch can route. | |
| uint32_t | getMaxOutOfOrderId () const override |
| Return the largest out-of-order BD id (unsupported = 0). | |
| uint32_t | getMaxRepeatCount () const override |
| Return the largest DMA task repeat count (unsupported = 0). | |
| uint32_t | getDmaTaskQueueDepth () const override |
| Return how many DMA tasks a single channel's task queue holds (unsupported = 0). | |
| std::optional< TileID > | getMemWest (TileID src) const override |
| Return the tile ID of the memory to the west of the given tile, if it exists. | |
| std::optional< TileID > | getMemEast (TileID src) const override |
| Return the tile ID of the memory to the east of the given tile, if it exists. | |
| std::optional< TileID > | getMemNorth (TileID src) const override |
| Return the tile ID of the memory to the north of the given tile, if it exists. | |
| std::optional< TileID > | getMemSouth (TileID src) const override |
| Return the tile ID of the memory to the south of the given tile, if it exists. | |
| bool | isMemWest (int srcCol, int srcRow, int dstCol, int dstRow) const override |
| Return true if src has a memory tile which is West of dst. | |
| bool | isMemEast (int srcCol, int srcRow, int dstCol, int dstRow) const override |
| Return true if src has a memory tile which is East of dst. | |
| bool | isMemNorth (int srcCol, int srcRow, int dstCol, int dstRow) const override |
| Return true if src has a memory tile which is North of dst. | |
| bool | isMemSouth (int srcCol, int srcRow, int dstCol, int dstRow) const override |
| Return true if src has a memory tile which is South of dst. | |
| bool | isLegalMemAffinity (int coreCol, int coreRow, int memCol, int memRow) const override |
| Return true if core can access the memory in mem. | |
| uint32_t | getMemInternalBaseAddress (TileID src) const override |
| Return the base address in the local address map for a core. | |
| uint32_t | getMemSouthBaseAddress () const override |
| Return the base address in the local address map for a core. | |
| uint32_t | getMemWestBaseAddress () const override |
| Return the base address in the local address map for a core. | |
| uint32_t | getMemNorthBaseAddress () const override |
| Return the base address in the local address map for a core. | |
| uint32_t | getMemEastBaseAddress () const override |
| Return the base address in the local address map for a core. | |
| uint32_t | getLocalMemorySize () const override |
| Return the size (in bytes) of the local data memory of a core. | |
| uint32_t | getProgramMemorySize () const override |
| Return the size (in bytes) of a core's program memory. | |
| uint32_t | getCoreDataAddressSpaceSize () const override |
| Return the size (in bytes) of the address space a core can issue data accesses into. | |
| uint32_t | getAccumulatorCascadeSize () const override |
| Return the size (in bits) of the accumulator/cascade. | |
| uint32_t | getComputeTileLoadStoreBusWidth () const override |
| Return the data bus width (in bits) for load/store operations of a compute core. | |
| uint32_t | getComputeTileMaxVectorAlignBits () const override |
| Return the alignment (in bits) required by the widest vector load/store a compute core can issue. | |
| uint32_t | getNumLocks (AIETileType tileType) const override |
| Return the number of lock objects for a given tile type. | |
| uint32_t | getMaxLockValue () const override |
| Return the maximum value that can be stored in a lock register. | |
| std::optional< uint32_t > | getLocalLockAddress (uint32_t lockId, TileID tile) const override |
| uint32_t | getNumBDs (AIETileType tileType) const override |
| Return the size of the BD id space of a tile type (see getTotalNumBDs()). | |
| uint32_t | getBDMaxDims (AIETileType tileType) const override |
| Return the maximum number of addressing dimensions (wraps/strides) a single buffer descriptor supports for a given tile type. | |
| const DmaBdLayout & | getDmaBdLimits (AIETileType tileType) const |
| uint64_t | getDmaBdMaxLen (AIETileType tileType) const override |
| 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. | |
| uint32_t | getDmaBdWrapBits (AIETileType tileType) const override |
| Return the bit width of the wrap (size) field in a DMA buffer descriptor for the given tile type. | |
| uint32_t | getDmaBdStepBits (AIETileType tileType) const override |
| Return the bit width of the step (stride) field in a DMA buffer descriptor for the given tile type. | |
| uint32_t | getDmaBdIterBits (AIETileType tileType) const override |
| Return the bit width of the iteration (repeat) wrap/stride fields in a DMA buffer descriptor for the given tile type. | |
| uint32_t | getBdPoolId (int col, int row, int channel, DMAChannelDir dir) const override |
| Memtile: even channels use BDs 0-23, odd channels 24-47. | |
| uint32_t | getBdPoolStartId (int col, int row, uint32_t poolId) const override |
| uint32_t | getNumBDsInPool (int col, int row, uint32_t poolId) const override |
| const DmaBdLayout * | getDmaBdLayout (AIETileType tileType) const override |
| Return the register layout of a buffer descriptor on the given tile type, or null if the target has none modeled for it. | |
| uint64_t | getDmaBdAddress (int col, int row, uint32_t bd_id, int channel, AIE::DMAChannelDir direction) const override |
| Return the array address of the dma buffer descriptor for the given col, row, buffer descriptor id, channel and direction. | |
| uint32_t | getDmaBdAddressOffset (int col, int row) const override |
| Return the offset of the base address field within the shim dma buffer descriptor. | |
| uint32_t | getDmaControlAddress (int col, int row, int channel, AIE::DMAChannelDir direction) const override |
| Return the array address of the dma task queue register for the given col, row, channel and direction. | |
| std::optional< uint32_t > | getDmaStatusAddress (int col, int row, int channel, AIE::DMAChannelDir direction) const override |
| Return the address of the DMA status register for a channel, or nullopt when this target's layout has not been verified. | |
| uint32_t | getDmaTaskQueueSizeMask () const override |
| Return the mask selecting the live task-queue occupancy field within the getDmaStatusAddress() register (0 when unsupported). | |
| uint32_t | getDmaChannelIdleMask () const override |
| 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 | getMemTileSize () const override |
| Return the size (in bytes) of a MemTile. | |
| uint32_t | getNumBanks (int col, int row) const override |
| Return the number of memory banks of a given tile. | |
| uint32_t | getMaxChannelNumForAdjacentMemTile (int col, int row) const override |
| uint32_t | getNumDestSwitchboxConnections (int col, int row, WireBundle bundle) const override |
| Return the number of destinations of connections inside a switchbox. | |
| uint32_t | getNumSourceSwitchboxConnections (int col, int row, WireBundle bundle) const override |
| Return the number of sources of connections inside a switchbox. | |
| uint32_t | getNumDestShimMuxConnections (int col, int row, WireBundle bundle) const override |
| Return the number of destinations of connections inside a shimmux. | |
| uint32_t | getNumSourceShimMuxConnections (int col, int row, WireBundle bundle) const override |
| Return the number of sources of connections inside a shimmux. | |
| bool | isLegalTileConnection (int col, int row, WireBundle srcBundle, int srcChan, WireBundle dstBundle, int dstChan) const override |
| std::optional< uint32_t > | getStreamSwitchPortIndex (int col, int row, WireBundle bundle, uint32_t port_num, bool master) const override |
| 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 | getColumnShift () const override |
| uint32_t | getRowShift () const override |
| std::vector< std::pair< uint32_t, uint32_t > > | getShimBurstEncodingsAndLengths () const override |
| uint32_t | getNumLocks (int col, int row) const |
| Return the number of lock objects for a tile at the given coordinates. | |
| 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 |
| Public Member Functions inherited from xilinx::AIE::AIETargetModel | |
| TargetModelKind | getKind () const |
| AIETargetModel (TargetModelKind k) | |
| virtual | ~AIETargetModel () |
| 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. | |
| 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. | |
| bool | isLegalCascade (int srcCol, int srcRow, int dstCol, int dstRow) const |
| Return true if a cascade can run from src to dst. | |
| SharedMemory | getSharedMemory (TileID a, TileID b) const |
| Return the memory module a and b can both reach, if any. | |
| 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 | 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 | getMemTileLoadStoreBusWidth () const |
| Return the data bus width (in bits) for load/store operations of a memory tile. | |
| uint32_t | getNumLocks (int col, int row) const |
| Return the number of lock objects for a tile at the given coordinates. | |
| 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 | 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 |
| const DmaBdLayout * | getDmaBdLayout (int col, int row) const |
| 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. | |
| 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 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 |
| int | getPacketIdBits () const |
| Bits a packet id spans, and the mask a switch's id match uses. | |
| int | getPacketIdMask () const |
| uint32_t | getDmaTaskQueueDepth (int, int, int, AIE::DMAChannelDir) const |
| Return the task-queue depth for one channel. | |
| void | validate () const |
| uint32_t | getModelProperties () const |
| void | addModelProperty (uint32_t prop) |
| bool | hasProperty (ModelProperty Prop) const |
| 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 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. | |
Static Public Member Functions | |
| static bool | classof (const AIETargetModel *model) |
Protected Member Functions | |
| std::unique_ptr< RegisterDatabase > | loadRegisterDatabase () const override |
| AIE2 TargetModel. | |
| Protected Member Functions inherited from xilinx::AIE::AIETargetModel | |
| const RegisterDatabase * | getRegisterDatabase () const |
| Get the register database, loading it lazily on first access. | |
Definition at line 1023 of file AIETargetModel.h.
|
inline |
Definition at line 1028 of file AIETargetModel.h.
References xilinx::AIE::AIETargetModel::addModelProperty(), xilinx::AIE::AIETargetModel::AIETargetModel(), xilinx::AIE::AIETargetModel::SupportsControlPackets, xilinx::AIE::AIETargetModel::SupportsOutOfOrderDMA, xilinx::AIE::AIETargetModel::UsesBDIteration, xilinx::AIE::AIETargetModel::UsesMultiDimensionalBDs, and xilinx::AIE::AIETargetModel::UsesSemaphoreLocks.
Referenced by xilinx::AIE::AIE2PSTargetModel::AIE2PSTargetModel(), xilinx::AIE::BaseNPU1TargetModel::BaseNPU1TargetModel(), xilinx::AIE::BaseNPU2TargetModel::BaseNPU2TargetModel(), xilinx::AIE::VE2302TargetModel::VE2302TargetModel(), and xilinx::AIE::VE2802TargetModel::VE2802TargetModel().
|
inlinestatic |
Definition at line 1186 of file AIETargetModel.h.
References xilinx::AIE::AIETargetModel::AIETargetModel(), xilinx::AIE::AIETargetModel::getKind(), xilinx::AIE::AIETargetModel::TK_AIE2_Last, and xilinx::AIE::AIETargetModel::TK_AIE2_VE2302.
|
inlineoverridevirtual |
Return the size (in bits) of the accumulator/cascade.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1081 of file AIETargetModel.h.
|
inlineoverridevirtual |
Return the data bus width of the device.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1045 of file AIETargetModel.h.
|
inlineoverridevirtual |
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.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1098 of file AIETargetModel.h.
|
inlineoverridevirtual |
Memtile: even channels use BDs 0-23, odd channels 24-47.
Reimplemented from xilinx::AIE::AIETargetModel.
Definition at line 1122 of file AIETargetModel.h.
References xilinx::AIE::AIETargetModel::isMemTile().
|
inlineoverridevirtual |
Reimplemented from xilinx::AIE::AIETargetModel.
Definition at line 1126 of file AIETargetModel.h.
References xilinx::AIE::AIETargetModel::isMemTile().
|
inlineoverridevirtual |
The steps (destination column - source column, destination row - source row) from one core's cascade output to the next core's input.
Reimplemented from xilinx::AIE::AIETargetModel.
Definition at line 1040 of file AIETargetModel.h.
|
inlineoverridevirtual |
Implements xilinx::AIE::AIETargetModel.
Definition at line 1183 of file AIETargetModel.h.
|
inlineoverridevirtual |
Return the data bus width (in bits) for load/store operations of a compute core.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1082 of file AIETargetModel.h.
|
inlineoverridevirtual |
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 from xilinx::AIE::AIETargetModel.
Reimplemented in xilinx::AIE::BaseNPU2TargetModel.
Definition at line 1083 of file AIETargetModel.h.
|
inlineoverridevirtual |
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.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1080 of file AIETargetModel.h.
|
overridevirtual |
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.
Implements xilinx::AIE::AIETargetModel.
Definition at line 869 of file AIETargetModel.cpp.
References xilinx::AIE::AIETargetModel::getTileAddress(), xilinx::AIE::AIETargetModel::isCoreTile(), xilinx::AIE::AIETargetModel::isMemTile(), and xilinx::AIE::AIETargetModel::isShimNOCTile().
Referenced by xilinx::AIE::AIE2PSTargetModel::getDmaBdAddress().
|
overridevirtual |
Return the offset of the base address field within the shim dma buffer descriptor.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1003 of file AIETargetModel.cpp.
References xilinx::AIE::AIETargetModel::isCoreTile().
|
inlineoverridevirtual |
Return the bit width of the iteration (repeat) wrap/stride fields in a DMA buffer descriptor for the given tile type.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1117 of file AIETargetModel.h.
References getDmaBdLimits(), xilinx::AIE::DmaBdLayout::iterationSize, and xilinx::AIE::DmaBdField::width.
|
overridevirtual |
Return the register layout of a buffer descriptor on the given tile type, or null if the target has none modeled for it.
Reimplemented from xilinx::AIE::AIETargetModel.
Definition at line 987 of file AIETargetModel.cpp.
Referenced by getDmaBdLimits().
|
inlinevirtual |
Return the BD layout for direction; control and trace BDs may differ.
Reimplemented from xilinx::AIE::AIETargetModel.
Definition at line 626 of file AIETargetModel.h.
|
inline |
Definition at line 621 of file AIETargetModel.h.
|
inline |
Definition at line 633 of file AIETargetModel.h.
|
inline |
Definition at line 1104 of file AIETargetModel.h.
References getDmaBdLayout().
Referenced by getDmaBdIterBits(), getDmaBdMaxLen(), getDmaBdStepBits(), and getDmaBdWrapBits().
|
inlineoverridevirtual |
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).
Implements xilinx::AIE::AIETargetModel.
Definition at line 1108 of file AIETargetModel.h.
References xilinx::AIE::DmaBdLayout::bufferLength, getDmaBdLimits(), and xilinx::AIE::DmaBdField::mask().
|
inlineoverridevirtual |
Return the bit width of the step (stride) field in a DMA buffer descriptor for the given tile type.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1114 of file AIETargetModel.h.
References xilinx::AIE::DmaBdLayout::d0Stride, getDmaBdLimits(), and xilinx::AIE::DmaBdField::width.
|
inlineoverridevirtual |
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.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1111 of file AIETargetModel.h.
References xilinx::AIE::DmaBdLayout::d0Size, getDmaBdLimits(), and xilinx::AIE::DmaBdField::width.
|
inlineoverridevirtual |
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 from xilinx::AIE::AIETargetModel.
Definition at line 1152 of file AIETargetModel.h.
References getDmaTaskQueueSizeMask().
|
overridevirtual |
Return the array address of the dma task queue register for the given col, row, channel and direction.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1010 of file AIETargetModel.cpp.
References xilinx::AIE::AIETargetModel::getTileAddress(), xilinx::AIE::AIETargetModel::isCoreTile(), xilinx::AIE::AIETargetModel::isMemTile(), and xilinx::AIE::AIETargetModel::isShimNOCTile().
Referenced by xilinx::AIE::AIE2PSTargetModel::getDmaControlAddress().
|
overridevirtual |
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 from xilinx::AIE::AIETargetModel.
Definition at line 1034 of file AIETargetModel.cpp.
References xilinx::AIE::AIETargetModel::getTileAddress(), xilinx::AIE::AIETargetModel::isCoreTile(), xilinx::AIE::AIETargetModel::isMemTile(), and xilinx::AIE::AIETargetModel::isShimNOCTile().
Referenced by xilinx::AIE::AIE2PSTargetModel::getDmaStatusAddress().
|
inlineoverridevirtual |
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.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1053 of file AIETargetModel.h.
|
inlineoverridevirtual |
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 from xilinx::AIE::AIETargetModel.
Definition at line 1147 of file AIETargetModel.h.
Referenced by getDmaChannelIdleMask().
|
overridevirtual |
Implements xilinx::AIE::AIETargetModel.
Definition at line 1347 of file AIETargetModel.cpp.
References getNumLocks(), xilinx::AIE::AIETargetModel::isCoreTile(), xilinx::AIE::AIETargetModel::isMemTile(), and xilinx::AIE::AIETargetModel::isShimNOCorPLTile().
|
inlineoverridevirtual |
Return the size (in bytes) of the local data memory of a core.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1078 of file AIETargetModel.h.
|
inlineoverridevirtual |
Implements xilinx::AIE::AIETargetModel.
Definition at line 1162 of file AIETargetModel.h.
|
inlineoverridevirtual |
Return the maximum value that can be stored in a lock register.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1090 of file AIETargetModel.h.
|
inlineoverridevirtual |
Return the largest out-of-order BD id (unsupported = 0).
Implements xilinx::AIE::AIETargetModel.
Definition at line 1051 of file AIETargetModel.h.
|
inlineoverridevirtual |
Return the largest packet id the stream switch can route.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1050 of file AIETargetModel.h.
|
inlineoverridevirtual |
Return the largest DMA task repeat count (unsupported = 0).
Implements xilinx::AIE::AIETargetModel.
Definition at line 1052 of file AIETargetModel.h.
|
overridevirtual |
Return the tile ID of the memory to the east of the given tile, if it exists.
Implements xilinx::AIE::AIETargetModel.
Definition at line 808 of file AIETargetModel.cpp.
References xilinx::AIE::AIETargetModel::isValidTile().
|
inlineoverridevirtual |
Return the base address in the local address map for a core.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1077 of file AIETargetModel.h.
Referenced by getMemInternalBaseAddress().
|
inlineoverridevirtual |
Return the base address in the local address map for a core.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1070 of file AIETargetModel.h.
References getMemEastBaseAddress().
|
overridevirtual |
Return the tile ID of the memory to the north of the given tile, if it exists.
Implements xilinx::AIE::AIETargetModel.
Definition at line 817 of file AIETargetModel.cpp.
References xilinx::AIE::AIETargetModel::isValidTile().
|
inlineoverridevirtual |
Return the base address in the local address map for a core.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1076 of file AIETargetModel.h.
|
overridevirtual |
Return the tile ID of the memory to the south of the given tile, if it exists.
Implements xilinx::AIE::AIETargetModel.
Definition at line 824 of file AIETargetModel.cpp.
References xilinx::AIE::AIETargetModel::isMemTile(), and xilinx::AIE::AIETargetModel::isValidTile().
|
inlineoverridevirtual |
Return the base address in the local address map for a core.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1074 of file AIETargetModel.h.
|
inlineoverridevirtual |
Return the size (in bytes) of a MemTile.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1156 of file AIETargetModel.h.
|
overridevirtual |
Return the tile ID of the memory to the west of the given tile, if it exists.
Implements xilinx::AIE::AIETargetModel.
Definition at line 799 of file AIETargetModel.cpp.
References xilinx::AIE::AIETargetModel::isValidTile().
|
inlineoverridevirtual |
Return the base address in the local address map for a core.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1075 of file AIETargetModel.h.
|
inlineoverridevirtual |
Return the number of arbiters per stream switch.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1048 of file AIETargetModel.h.
|
inlineoverridevirtual |
Return the number of memory banks of a given tile.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1158 of file AIETargetModel.h.
References xilinx::AIE::AIETargetModel::getTileType().
|
inlineoverridevirtual |
Return the size of the BD id space of a tile type (see getTotalNumBDs()).
Implements xilinx::AIE::AIETargetModel.
Definition at line 1095 of file AIETargetModel.h.
Referenced by getNumBDsInPool().
|
inlineoverridevirtual |
Reimplemented from xilinx::AIE::AIETargetModel.
Definition at line 1129 of file AIETargetModel.h.
References getNumBDs(), xilinx::AIE::AIETargetModel::getTileType(), and xilinx::AIE::AIETargetModel::isMemTile().
|
overridevirtual |
Return the number of destinations of connections inside a shimmux.
These are the targets of connect operations in the switchbox.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1209 of file AIETargetModel.cpp.
References xilinx::AIE::AIETargetModel::isShimNOCorPLTile().
|
overridevirtual |
Return the number of destinations of connections inside a switchbox.
These are the targets of connect operations in the switchbox.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1059 of file AIETargetModel.cpp.
References xilinx::AIE::AIETargetModel::columns(), xilinx::AIE::AIETargetModel::isMemTile(), xilinx::AIE::AIETargetModel::isShimNOCTile(), xilinx::AIE::AIETargetModel::isShimPLTile(), and xilinx::AIE::AIETargetModel::rows().
Referenced by xilinx::AIE::AIE2PSTargetModel::getNumDestSwitchboxConnections(), and isLegalTileConnection().
|
inlineoverridevirtual |
Return the number of lock objects for a given tile type.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1086 of file AIETargetModel.h.
Referenced by getLocalLockAddress().
|
inline |
Return the number of lock objects for a tile at the given coordinates.
Definition at line 461 of file AIETargetModel.h.
|
inlineoverridevirtual |
Return the number of master select values per stream-switch arbiter.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1049 of file AIETargetModel.h.
|
inlineoverridevirtual |
Return the number of packet-rule slots per stream-switch slave port.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1047 of file AIETargetModel.h.
|
overridevirtual |
Return the number of sources of connections inside a shimmux.
These are the origins of connect operations in the switchbox.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1229 of file AIETargetModel.cpp.
References xilinx::AIE::AIETargetModel::isShimNOCorPLTile().
|
overridevirtual |
Return the number of sources of connections inside a switchbox.
These are the origins of connect operations in the switchbox.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1130 of file AIETargetModel.cpp.
References xilinx::AIE::AIETargetModel::columns(), xilinx::AIE::AIETargetModel::isMemTile(), xilinx::AIE::AIETargetModel::isShimNOCTile(), xilinx::AIE::AIETargetModel::isShimPLTile(), and xilinx::AIE::AIETargetModel::rows().
Referenced by xilinx::AIE::AIE2PSTargetModel::getNumSourceSwitchboxConnections(), and isLegalTileConnection().
|
inlineoverridevirtual |
Return the size (in bytes) of a core's program memory.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1079 of file AIETargetModel.h.
|
inlineoverridevirtual |
Implements xilinx::AIE::AIETargetModel.
Definition at line 1184 of file AIETargetModel.h.
|
overridevirtual |
Implements xilinx::AIE::AIETargetModel.
Reimplemented in xilinx::AIE::BaseNPU2TargetModel.
Definition at line 1342 of file AIETargetModel.cpp.
|
overridevirtual |
Get stream switch port index for a given port specification Return port index for Stream_Switch_Event_Port_Selection register, or nullopt if invalid.
Implements xilinx::AIE::AIETargetModel.
Definition at line 1473 of file AIETargetModel.cpp.
References xilinx::AIE::AIETargetModel::isCoreTile(), xilinx::AIE::AIETargetModel::isMemTile(), and xilinx::AIE::AIETargetModel::isShimNOCTile().
Referenced by xilinx::AIE::AIE2PSTargetModel::getStreamSwitchPortIndex().
|
overridevirtual |
Return the target architecture.
Implements xilinx::AIE::AIETargetModel.
Reimplemented in xilinx::AIE::BaseNPU2TargetModel.
Definition at line 796 of file AIETargetModel.cpp.
|
overridevirtual |
Return true if core can access the memory in mem.
Implements xilinx::AIE::AIETargetModel.
Definition at line 853 of file AIETargetModel.cpp.
References xilinx::AIE::AIETargetModel::isEast(), xilinx::AIE::AIETargetModel::isInternal(), isMemEast(), isMemNorth(), isMemSouth(), xilinx::AIE::AIETargetModel::isMemTile(), isMemWest(), and xilinx::AIE::AIETargetModel::isWest().
|
overridevirtual |
Implements xilinx::AIE::AIETargetModel.
Definition at line 1248 of file AIETargetModel.cpp.
References getNumDestSwitchboxConnections(), getNumSourceSwitchboxConnections(), xilinx::AIE::AIETargetModel::isCoreTile(), xilinx::AIE::AIETargetModel::isMemTile(), and xilinx::AIE::AIETargetModel::isShimNOCorPLTile().
|
overridevirtual |
Return true if src has a memory tile which is East of dst.
Implements xilinx::AIE::AIETargetModel.
Definition at line 838 of file AIETargetModel.cpp.
References xilinx::AIE::AIETargetModel::isInternal().
Referenced by isLegalMemAffinity().
|
overridevirtual |
Return true if src has a memory tile which is North of dst.
Implements xilinx::AIE::AIETargetModel.
Definition at line 843 of file AIETargetModel.cpp.
References xilinx::AIE::AIETargetModel::isNorth().
Referenced by isLegalMemAffinity().
|
overridevirtual |
Return true if src has a memory tile which is South of dst.
Implements xilinx::AIE::AIETargetModel.
Definition at line 848 of file AIETargetModel.cpp.
References xilinx::AIE::AIETargetModel::isSouth().
Referenced by isLegalMemAffinity().
|
overridevirtual |
Return true if src has a memory tile which is West of dst.
Implements xilinx::AIE::AIETargetModel.
Definition at line 833 of file AIETargetModel.cpp.
References xilinx::AIE::AIETargetModel::isWest().
Referenced by isLegalMemAffinity().
|
overrideprotectedvirtual |
AIE2 TargetModel.
Reimplemented from xilinx::AIE::AIETargetModel.
Definition at line 792 of file AIETargetModel.cpp.
References xilinx::AIE::RegisterDatabase::loadAIE2().