Logo SoCRocket

Transaction-Level Modeling Framework for Space Applications

Public Member Functions | Public Attributes | List of all members
usi.shell.console.Console Class Reference
Inheritance diagram for usi.shell.console.Console:
Collaboration diagram for usi.shell.console.Console:

Public Member Functions

def __init__
 
def interact
 
def stop
 

Public Attributes

 filename
 
 run
 

Detailed Description

Closely emulate the behavior of the interactive Python interpreter.

This class builds on InteractiveInterpreter and adds prompting
using the familiar sys.ps1 and sys.ps2, and input buffering.
As Code.InteractiveConsole but extend it with a stop function.

Constructor & Destructor Documentation

def usi.shell.console.Console.__init__ (   self,
  locals = None,
  filename = "<console>" 
)
Constructor.

The optional locals argument will be passed to the
InteractiveInterpreter base class.

The optional filename argument should specify the (file)name
of the input stream; it will show up in tracebacks.

Member Function Documentation

def usi.shell.console.Console.interact (   self,
  banner = None 
)
Closely emulate the interactive Python console.

The optional banner argument specify the banner to print
before the first interaction; by default it prints a banner
similar to the one printed by the real Python interpreter,
followed by the current class name in parentheses (so as not
to confuse this with the real interpreter -- since it's so
close!).

References usi.shell.console.Console.run, leon3_funclt_trap::PinTLM_out_32.run, core.waf.logger.Logger.write(), ArrayStorage.write(), MapStorage.write(), BaseMemory.write(), Storage.write(), sr_signal::signal_out< TYPE, MODULE >.write(), sr_signal::signal_out< bool, Irqmp >.write(), signal_out< INTYPE, MODULE >.write(), signal_out< TYPE, MODULE >.write(), sr_signal::signal_selector< TYPE, MODULE >.write(), sr_signal::signal_out_if< TYPE >.write(), sr_signal::signal_out_if< bool >.write(), signal_out_if< int >.write(), signal_out_if< TYPE >.write(), core.waf.cpplint.cpplint_wrapper.write(), dcache_in_type.write, sc_register_field_b< T >.write(), sc_register_field_b< unsigned int >.write(), sc_register_field_b< DATA_TYPE >.write(), sc_register_b< unsigned long long >.write(), sc_register_b< unsigned short >.write(), sc_register_b< DATA_TYPE >.write(), sc_register_b< unsigned int >.write(), sc_register_b< unsigned char >.write(), sc_register_b< T >.write(), and sr_register< DATA_TYPE >.write().

Here is the call graph for this function:

def usi.shell.console.Console.stop (   self)

Member Data Documentation

usi.shell.console.Console.filename
usi.shell.console.Console.run

The documentation for this class was generated from the following file: