IRON
1.0
|
Public Member Functions | |
None | __init__ (self, int cols, int rows) |
list[Tile] | get_shim_tiles (self) |
list[Tile] | get_mem_tiles (self) |
list[Tile] | get_compute_tiles (self) |
Public Member Functions inherited from iron.device.device.Device | |
int | rows (self) |
int | cols (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) |
A base class which can be used to create other device specific classes. This class is abstract because it does not implement resolve() This class makes some assumptions: * The 0th tile in each column is a shim tile * The 1st tile in each column is a mem tile * The 2nd+ tiles in each column are compute tiles
None iron.device.device.NPUBase.__init__ | ( | self, | |
int | cols, | ||
int | rows | ||
) |
Initialize a device based on numbers of rows and columns. Args: cols (int): Number of columns rows (int): Number of rows
Reimplemented from iron.device.device.Device.
list[Tile] iron.device.device.NPUBase.get_compute_tiles | ( | self | ) |
Returns a list of all compute tiles on the device. Returns: list[Tile]: A list of compute tiles.
Reimplemented from iron.device.device.Device.
list[Tile] iron.device.device.NPUBase.get_mem_tiles | ( | self | ) |
Returns a list of all mem tiles on the device. Returns: list[Tile]: A list of mem tiles.
Reimplemented from iron.device.device.Device.
list[Tile] iron.device.device.NPUBase.get_shim_tiles | ( | self | ) |
Returns a list of all shim tiles on the device. Returns: list[Tile]: A list of shim tiles.
Reimplemented from iron.device.device.Device.