Power Modeling

Parent Previous Next

VisualSim                                                                                                                                    

Power Modeling

 

Function & Argument Type(s)

 

Description

 

Example

 

PowerTable supports the following Devices

  • System_Resouce_Extend
  • System_Resource
  • Server
  • Channel
  • Custom Device- Single
  • Custom Device-Multiple instances of same block
  • Processor
  • Cache
  • Bus Controller
  • RAM
  • HW-DRAM
  • AXI Bus
  • AHB/APB

powerManager

(String power_table_name)

Gets the complete power table. This will get the details for all devices that are associated with this PowerTable

powerManager ("ARM_Table_Manager ")

stateChange
(String power_manager_name, String Device Name String Operating State, String State name)

Changes the state of a device dynamically. See device list above.

stateChange("Manager_1", "ARM","Standby","Idle")

updatePowerN (“STR_ServerName”, New State, (_queue_number+1))

Change the state of a queue in the Server block

updatePowerN (“Bus”, Active_18,4)

powerUpdateN (StringToken power_table, StringToken block_ref_, StringToken new_power_state_, IntToken (_queue_number+1))

Change the state of a instance of this device.  This is a special function for a custom device that might have multiple sub-items.  A good example is a PCIe bus with multiple input ports and each port has a different number of lanes

powerUpdateN ("Manager_1", PCIe_Bus, ActiveLink_8, 4)

checkVirtualMemory

(String Device name)

returns Boolean

Checks to see whether the virtual device exists. The virtual device can be PowerTable, IN, DEMUX, Script, Scheduler & Smart_Controller.

Power_Manager_Flag  = checkVirtualMemory(Pwr_Table

    = true           

 

Reference RegEx Constant Model:     

$VS\doc\Training_Material\General\RegEx\RegEx_Power_Test.xml

 

 

Created with the Personal Edition of HelpNDoc: Free CHM Help documentation generator