rom¶
-
rom
(addr: Uint, *, data, dtype, dflt=0) → dtype¶ Read-only memory (ROM). The
dtype
parameter represents the type of the data stored in ROM. Thedata
parameter can either be a list of values, or a dictionary mapping the addresses to data. For the addresses that are out of range of thedata
structure, the value set by the parameterdflt
is returned. Ifdflt
is unset, or equal toNone
, the out-of-range data is left missing/uninitialized.drv(t=Uint[3], seq=[0, 1, 2, 3, 4, 5]) \ | rom(data={1: 11, 3: 13, 5: 15}, dflt=10, dtype=Uint[4]) \ | check(ref=[10, 11, 10, 13, 10, 15])