IRON 1a5eed49d3c0721a318ac369f725acc96b7c4584
Loading...
Searching...
No Matches
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
iron.device.device.Device Class Reference
Inheritance diagram for iron.device.device.Device:
Inheritance graph
[legend]
Collaboration diagram for iron.device.device.Device:
Collaboration graph
[legend]

Public Member Functions

None __init__ (self, AIEDevice device)
 
int cols (self)
 
int rows (self)
 
AIEArch arch (self)
 
AIETileType get_tile_type (self, col, row)
 
Generator[Tile, None, None] tile_iterator (self)
 
list[Tile] get_shim_tiles (self)
 
list[Tile] get_mem_tiles (self)
 
list[Tile] get_compute_tiles (self)
 
bool is_mem_accessible (self, Tile source_tile, list[Tile] tiles)
 
None resolve_tile (self, Tile tile, ir.Location|None loc=None, ir.InsertionPoint|None ip=None)
 
- Public Member Functions inherited from iron.resolvable.Resolvable
None resolve (self, ir.Location|None loc=None, ir.InsertionPoint|None ip=None)
 
list tiles (self)
 

Protected Member Functions

 _validate_coordinates (self, col, row)
 

Protected Attributes

 _device
 
 _tm
 

Detailed Description

A representation of a device of a specific type.

Provides device metadata (column/row counts) and emits
aie.logical_tile ops for Tile objects during resolve.

Constructor & Destructor Documentation

◆ __init__()

None iron.device.device.Device.__init__ (   self,
AIEDevice  device 
)

Member Function Documentation

◆ _validate_coordinates()

iron.device.device.Device._validate_coordinates (   self,
  col,
  row 
)
protected
Raise ValueError if coordinates are outside the device grid.

◆ arch()

AIEArch iron.device.device.Device.arch (   self)
AIE architecture of the device (AIE1, AIE2, or AIE2p).

◆ cols()

int iron.device.device.Device.cols (   self)
Number of columns in the device tile array.

◆ get_compute_tiles()

list[Tile] iron.device.device.Device.get_compute_tiles (   self)
Returns a list of all compute tiles on the device.

Returns:
    list[Tile]: A list of compute tiles.

◆ get_mem_tiles()

list[Tile] iron.device.device.Device.get_mem_tiles (   self)
Returns a list of all mem tiles on the device.

Returns:
    list[Tile]: A list of mem tiles.

◆ get_shim_tiles()

list[Tile] iron.device.device.Device.get_shim_tiles (   self)
Returns a list of all shim tiles on the device.

Returns:
    list[Tile]: A list of shim tiles.

◆ get_tile_type()

AIETileType iron.device.device.Device.get_tile_type (   self,
  col,
  row 
)
Return the AIETileType for the given device coordinates.

◆ is_mem_accessible()

bool iron.device.device.Device.is_mem_accessible (   self,
Tile  source_tile,
list[Tile]  tiles 
)
Returns whether there exists a memory region on source_tile which all destination tiles can access.
Returns:
    bool: True if the given source tile has a memory region accessible by all destination tiles.

◆ resolve_tile()

None iron.device.device.Device.resolve_tile (   self,
Tile  tile,
ir.Location | None   loc = None,
ir.InsertionPoint | None   ip = None 
)

◆ rows()

int iron.device.device.Device.rows (   self)
Number of rows in the device tile array.

◆ tile_iterator()

Generator[Tile, None, None] iron.device.device.Device.tile_iterator (   self)
Iterates over the device tiles deterministically

Member Data Documentation

◆ _device

iron.device.device.Device._device
protected

◆ _tm

iron.device.device.Device._tm
protected

The documentation for this class was generated from the following file: