textcon top-component
Simics Reference Manual  /  5 Classes  / 

time-server

Description

The time-server class provides virtual time services to programs running outside of Simics. It provides those services through a text protocol on a user defined TCP port.

Interfaces Implemented

conf_object, log_object

Notifiers

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.

Attributes

port
Required attribute; read/write access; type: i|n
TCP port for server. Use 0 for any port (the actual port can be read back from this attribute). Set to Nil to disable the server.
poll_interval
Optional attribute; read/write access; type: f
Time server resolution in simulated seconds. Only valid in poll mode.
virtual_time_delta
Optional attribute; read/write access; type: f
The value in this attribute is added to the queue time to get the time that is returned in virtualtime queries. Only used in poll mode.
poll_mode_enabled
Optional attribute; read/write access; type: b
When set, the time-server will operate in poll mode, meaning it will periodically poll the time and return the polled value in queries. If not set, the time server will always return the current time in queries. Polled mode offers better performance when the time server is queried at a high frequency, but does not support events

Provided By

time-server-c
textcon top-component