bloqade.lanes.dialects.arch.loc
← Module overview
function
source
functionloc¶source
bloqade.lanes.dialects.arch.loc
def loc(zone: int, row: int, col: int) -> LocationAddressConstruct a LocationAddress from a (zone, row, col) grid coordinate.
col is the grid x-index and row the grid y-index within zone;
the coordinate is resolved to a physical LocationAddress (word_id +
site_id) against the architecture’s addressing scheme
(ArchSpec.location_at) at compile time. All three must be
compile-time-constant integers.
Parameters
| Name | Type | Description |
|---|---|---|
zone | int | |
row | int | |
col | int |
Returns
LocationAddress