IRON 0d9d245f13ac73bfe91a5cd530f8af84b35caa61
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)
 
AIETileType get_tile_type (self, col, row)
 
Generator[Tile, None, None] tile_iterator (self)
 
list[Tileget_shim_tiles (self)
 
list[Tileget_mem_tiles (self)
 
list[Tileget_compute_tiles (self)
 
int get_num_source_switchbox_connections (self, Tile t)
 
int get_num_dest_switchbox_connections (self, Tile t)
 
int get_num_source_shim_mux_connections (self, Tile t)
 
int get_num_dest_shim_mux_connections (self, Tile t)
 
int get_num_connections (self, Tile tile, bool output)
 
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)
 

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.

◆ 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_num_connections()

int iron.device.device.Device.get_num_connections (   self,
Tile  tile,
bool  output 
)
Returns number of DMA input or output "channels" available on the tile.
Returns:
    int: Number of connections (channels) available on the tile.

◆ get_num_dest_shim_mux_connections()

int iron.device.device.Device.get_num_dest_shim_mux_connections (   self,
Tile  t 
)
Returns number of DMA dest ports in the shim mux for the given tile on the device.

Args:
    t (Tile): The tile to query.

Returns:
    int: Number of DMA dest ports.

◆ get_num_dest_switchbox_connections()

int iron.device.device.Device.get_num_dest_switchbox_connections (   self,
Tile  t 
)
Returns number of DMA dest ports in the switchbox for the given tile on the device.

Args:
    t (Tile): The tile to query.

Returns:
    int: Number of DMA dest ports.

◆ get_num_source_shim_mux_connections()

int iron.device.device.Device.get_num_source_shim_mux_connections (   self,
Tile  t 
)
Returns number of DMA source ports in the shim mux for the given tile on the device.

Args:
    t (Tile): The tile to query.

Returns:
    int: Number of DMA source ports.

◆ get_num_source_switchbox_connections()

int iron.device.device.Device.get_num_source_switchbox_connections (   self,
Tile  t 
)
Returns number of DMA source ports in the switchbox for the given tile on the device.

Args:
    t (Tile): The tile to query.

Returns:
    int: Number of DMA source ports.

◆ 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: