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. The data 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 the data structure, the value set by the parameter dflt is returned. If dflt is unset, or equal to None, 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])