The sample-memhier class is an example of how to write memory hierarchies for Simics. It will print memory usage traces to a log file when its trace-file attribute is assigned a file name.
conf_object, log_object, timing_model
- 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.
-
trace_file
-
Optional attribute;
read/write access; type:
s
Name of output file the trace is written to.
-
count
-
Optional attribute;
read/write access; type:
i
Number of memory operations traced so far.
sample-memhier