The sample-device device is a dummy device that compiles and that can be loaded into Simics. Using it as a starting point when writing own devices for Simics is encouraged. Several device specific functions are included. The source is included in simics/src/devices/sample-device-c.
conf_object, log_object, sample, transaction
- cell-change
- Notifier that is triggered after the object's cell was changed.
- object-delete
- Notifier that is triggered just before Simics object is deleted.
- queue-change
- Notifier that is triggered after the object's clock was changed. New clock can be obtained with the SIM_object_clock function.
-
info
– print information about the object
-
simple-method
– simple example method
-
status
– print status of the object
-
wait-for-get
– issue an inquiry read transaction and wait for it to complete
-
wait-for-read
– issue a read transaction and wait for it to complete
-
wait-for-set
– issue an inquiry write transaction and wait for it to complete
-
wait-for-write
– issue a write transaction and wait for it to complete
-
value
-
Optional attribute;
read/write access; type:
i
The value field.
sample-device-c