Logo SoCRocket

Transaction-Level Modeling Framework for Space Applications

Namespaces | Classes | Functions | Variables
usi Namespace Reference

Namespaces

 api
 
 cci
 
 gdb
 
 log
 
 sc_object
 
 shell
 
 systemc
 
 tools
 
 usage
 

Classes

class  ThreadKill
 
class  ThreadReset
 
class  DuplicateThreadHandle
 
class  REPEAT_SPAWN
 
class  PromptStr
 
class  DebugWrapper
 
class  SCCallback
 
class  SCCommand
 

Functions

def find
 
def refind
 
def add_to_reporting_list
 
def remove_from_reporting_list
 
def get_current_callback
 
def interpreter_name
 
def on
 
def onCommandFrom
 

Variables

list __all__ = ["systemc", "api.delegate", "api.registry", "api.report"]
 
 __standalone__ = True
 
string __interpreter_name__ = ""
 
 sc_callback_debug_wrapper = DebugWrapper
 
dictionary PHASE
 
tuple waf_out_dir = waf.get_lockfile_attr("out_dir")
 
tuple fullname = os.path.normpath(os.path.join(waf_out_dir, filename))
 
tuple pypath = os.path.splitext(fullname)
 
tuple pymodule = os.path.basename(os.path.splitext(fullname)[0])
 

Function Documentation

def usi.add_to_reporting_list (   name,
  severity,
  verbosity 
)

References find().

Here is the call graph for this function:

def usi.find (   name)
  Finds SystemC sc_objects and returns USIDelegates to each matching object

  Simply provide the name: find('mctrl') -> [USIDelegate('mctrl')]
  Use dots to seperate in hierachy like in SystemC: find('top.leon3_0.mmu.tlb')
  The function can handle wildcards: find('mctrl') -> [USIDelegate('mctrl'), USIDelegate('mctrl.generics'), ...]
  To simplify the function always returns a list of USIDelegate objects.

References usi.systemc.get_top_level_objects, and pysc::api::cci.list().

Referenced by add_to_reporting_list(), refind(), remove_from_reporting_list(), and usi.tools.elf.start_of_simulation().

Here is the call graph for this function:

def usi.get_current_callback ( )
May be a spawned thread or a call-in from C++, or in elaboration

Referenced by interpreter_name().

def usi.interpreter_name ( )
Return the interpreter name

References get_current_callback().

Referenced by usi.SCCallback.call(), usi.SCCallback.register(), and usi.SCCommand.register().

Here is the call graph for this function:

def usi.on (   phase,
  obj = None,
  debug = False,
  time_unit = NS,
  keyargs = {} 
)
def usi.onCommandFrom (   obj,
  debug = False,
  time_unit = NS,
  keyargs = {} 
)

References on().

Here is the call graph for this function:

def usi.refind (   regex)

References find().

Here is the call graph for this function:

def usi.remove_from_reporting_list (   name)

References find().

Here is the call graph for this function:

Variable Documentation

list usi.__all__ = ["systemc", "api.delegate", "api.registry", "api.report"]
string usi.__interpreter_name__ = ""
usi.__standalone__ = True
tuple usi.fullname = os.path.normpath(os.path.join(waf_out_dir, filename))
dictionary usi.PHASE
Initial value:
1 = {
2  "start_of_initialization": SCCallback("start_of_initialization"),
3  "end_of_initialization": SCCallback("end_of_initialization"),
4  "start_of_elaboration": SCCallback("start_of_elaboration"),
5  "end_of_elaboration": SCCallback("end_of_elaboration"),
6  "start_of_simulation": SCCallback("start_of_simulation"),
7  "end_of_simulation": SCCallback("end_of_simulation"),
8  "start_of_evaluation": SCCallback("start_of_evaluation"),
9  "end_of_evaluation": SCCallback("end_of_evaluation"),
10  "pause_of_simulation": SCCallback("pause_of_simulation"),
11  "report": SCCallback("report"),
12  "command": SCCommand()
13 }
Definition: __init__.py:178
Definition: __init__.py:153
tuple usi.pymodule = os.path.basename(os.path.splitext(fullname)[0])
tuple usi.pypath = os.path.splitext(fullname)
usi.sc_callback_debug_wrapper = DebugWrapper
tuple usi.waf_out_dir = waf.get_lockfile_attr("out_dir")