get_noc_addr_from_bank_id
-
template<bool DRAM>
uint64_t get_noc_addr_from_bank_id(uint32_t bank_id, uint32_t bank_address_offset, uint8_t noc = noc_index)
-
Get an encoding for a noc address using DRAM/L1 bank id. Uses addrgen tables to convert bank_ids to physical NOC coordinates
Return value: uint64_t
Argument
Description
Data type
Valid range
required
bank_id
DRAM/L1 bank id
uint32_t
Refer to relevant yaml in “tt_metal/soc_descriptors”
True
bank_address_offset
DRAM/L1 bank address offset
uint32_t
0..1MB
True
noc
Which NOC to use for the transaction
uint8_t
0 or 1
False
DRAM (template argument)
Signifies if address is from DRAM or L1
bool
True or False
True