IRON  1.0
Classes | Public Member Functions | Private 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]

Classes

class  __DeviceTile
 

Public Member Functions

None __init__ (self, int cols, int rows)
 
int rows (self)
 
int cols (self)
 
list[Tileget_shim_tiles (self)
 
list[Tileget_mem_tiles (self)
 
list[Tileget_compute_tiles (self)
 
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 (cls, ir.Location|None loc=None, ir.InsertionPoint|None ip=None)
 

Private Attributes

 _cols
 
 _rows
 

Detailed Description

A base class for representations of a device of a specific type.

Note: this class is abstract because it does not implement Resolve

Constructor & Destructor Documentation

◆ __init__()

None iron.device.device.Device.__init__ (   self,
int  cols,
int  rows 
)
Initialize a representation of a device.

Args:
    cols (int): Number of columns on the device
    rows (int): Number of rows on the device.

Reimplemented in iron.device.device.NPUBase.

Member Function Documentation

◆ cols()

int iron.device.device.Device.cols (   self)

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

Reimplemented in iron.device.device.NPUBase.

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

Reimplemented in iron.device.device.NPUBase.

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

Reimplemented in iron.device.device.NPUBase.

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

Member Data Documentation

◆ _cols

iron.device.device.Device._cols
private

◆ _rows

iron.device.device.Device._rows
private

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