Memory_Monitor

VisualSim Block Documentation ›› Full Library ›› Model ›› Utility ›› Checkers ››
Parent Previous Next

Full Library / Model / Utility / Checkers / Variable_Monitor
Block Name: Variable_Monitor

Code File Location: VisualSim/actor/lib/gui/Memory_Monitor

Description

This block monitors the local and global variable names listed in the Memory_Trace_Name parameter. The block will list the accessing block name, current value and variable name.  The field called Read_Memory_Name and Write_Memory_Name indicate whether a read or Write occured.  

For a Read, the block name shows only the window where the read occured.  For a Write, the specific block name is listed.

When the Memory_Trace_Mode = ON:

Every time any of the listed variables are accessed anywhere in the model, the variable name, the windows where it is accessed and current value is sent on the 'trace_memory_output' port. 

When the 'input' port is triggered:

The current values of all the Memory_Trace_Names locations is output on the trigger_memory_output port.  The input trigger can be of any type.  

For more details on the usage of this block, view the demo model.

The same functionality is available from the RegEx function using Result_A = readAllMemory().


Parameter

Explanation

Type

 Example 

Memory_Trace_Names

Comma separated list of Variable Names to trace.

String

"Memory_Name1, Memory_Name2, Memory_Name3"

Memory_Start_Time

This is a comma separated list of Memory Start Times (double value, default= 0.0) which correspond to Memory_Trace_Names on a one-to-one.

String

0.0

Memory_Stop_Time

This is a comma separated list of Memory Stop Times (double value, default= 1.0) which correspond to Memory_Trace_Names on a one-to-one.  If an individual stop time is set to -1.0, then this corresponds to collecting traces, till the simulation stops, assuming the Memory_Start_Time has passed.  This parameter can also accept TSTOP as end of the simulation.

String in case of "Tstop" and Double if it is Value or Parameter name

"TStop"

Memory_Trace_Mode

The memory trace mode. This is a string-valued attribute that defaults to "OFF". If set to "ON", then all the locations in the Memory_Trace_Names are printed on the trace_memory_output port each time a read or write access occurs.

-

OFF



Port

Explanation

 Type 

trigger

Input port used to trigger the block at any time during the simulation to output the current value of the Memory_Name list.

General

trace_memory_output

When Trace_Mode is ON, changes in all the Memory_Trace_Names locations are output on this port.

General

trigger_memory_output

Memory output port outputs current values of all memory values, when 'input' port is triggered.

General




 

Created with the Personal Edition of HelpNDoc: What is a Help Authoring tool?