General
eth0: error fetching interface information: Device not found
The above mentioned error message appears when you do not have network interface by name "eth0". One can rename the available network interface as "eth0" and obtain MAC address for VisualSim Architect license. Open a terminal window. Type the ...
How to obtain DMA block channel queue length?
Using the getBlockStatus() RegEx: SEND (output, getBlockStatus("DMA", "stats", 1)) Where “DMA” is the name of the DMA block, and 1 is the first channel, one based. If there are more channels, then increase the index to 2,3,.. Example is attached
How to merge two Datastructures in VisualSim?
Syntax for merging two data-structures in VisualSim is shown below; My_DS = merge(newToken ("Header"),input) Where, newToken("Header") is the syntax for defining new DS "input" provides the Data structure available in ...
Port type mismatch issue while connecting IN/OUT blocks to SystemC Cosim block
Make IN/OUT block port types and block connected to OUT block port types as same type. For example, if you are sending Boolean type, make port types as Boolean.
RegEx expression to create a new array
VisualSim allows the modeler to create new arrays of String, Integer, Double, etc using a RegEx function newArray(array length, Type) Create a new integer array with 10 items array1 = newArray(10,0) // Here 10 is the number of items, 0 is the array ...
How to capture power consumption of all devices at current time stamp?
VisualSim modeler can utilize the RegEx function powerCurrent(Power Manager Name, "total") to capture the total power consumption of system Ex: PowerValue = powerCurrent("Manager_1","total") //Here we are assuming that Manager_1 is the name of the ...
How to get list of Power States of Devices in VisualSim Power Analysis Model?
PowerValue = powerManager("Manager_1") List = (PowerValue.getLabelArray()).sort() States = PowerValue.get(List(0)) List_States = ...