|Home > Fast Models components > Peripheral components > DummyAPB|
DummyAPB. This model is written in LISA+.
DummyAPB contains the following CADI targets:
DummyAPB contains the following MTI components:
Use this dummy RAZ/WI APB device component to ensure that software does not receive aborts for accesses to devices that should be part of the system, but are not modeled.
For validation purposes it is useful to have dummy devices that are mostly RAZ/WI but return the correct value when you read ID registers. You can do that with this component in the following ways:
periphid_24 for peripherals that follow the ARM
pattern of having 12 ID registers at the top of an APB frame. For
You need also to set
periph_framesize to 4 or 64, depending
on whether the peripheral has its registers in a 4KB or 64KB frame.
Give a space-separated list of offset:value pairs in the
periphid_generic parameter to define read-only values
from particular offsets. For example:
The number of hex digits used to specify the address is used to define the
width of the address mask used. For example,
02468ace at reads from any address ending
ram_genericparameter to construct RAM. That is, the register at the relevant offset returns the default-value, but if changed, it returns the value that it is changed to.
Table 3-222 Ports
||Slave||Bus slave interface.|
Table 3-223 Parameters for DummyAPB
||Abort all accesses|
||""||String to print when 'fail'=true and access occured|
||Size of frame (4/64, indicating if ID is at xFD0 or xFFD0)|
||""||24 hex digits for the 12 bytes of peripheral ID|
||""||Set of space-separated offset:value pairs for dwords of ID|
||""||Set of space-seperated offset:default pairs for writable dwords|
||Warn once for the invalid read and write access.|