The is the sample_generic_message_device class which is an example of how generic message devices can be written inSimics.
conf_object, log_object, generic_message_device
- 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
-
status
– print status of the object
-
address
-
Optional attribute;
read/write access; type:
i
Address of device itself on the link.
-
delay
-
Optional attribute;
read/write access; type:
i
Delay between each message in cycles.
-
dest_address
-
Optional attribute;
read/write access; type:
i
Destination address of the message.
-
frame_delay
-
Optional attribute;
read/write access; type:
i
Delay to send the message in ns.
-
length
-
Optional attribute;
read/write access; type:
i
Length of the message to send.
-
received_value
-
Optional attribute;
read/write access; type:
i
Last byte received from the link.
-
send_value
-
Optional attribute;
read/write access; type:
i
Value to send to the link.
sample-generic-message-device