rom¶
-
rom(addr: Uint, *, data, dtype, dflt=0) → dtype¶ Read-only memory (ROM). The
dtypeparameter represents the type of the data stored in ROM. Thedataparameter can either be a list of values, or a dictionary mapping the addresses to data. For the addresses that are out of range of thedatastructure, the value set by the parameterdfltis returned. Ifdfltis 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])