SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
simics::systemc::Simulation Class Reference

Provides the interface to the SystemC kernel. More...

#include <simulation.h>

Inheritance diagram for simics::systemc::Simulation:
simics::systemc::iface::SimulationInterface simics::systemc::iface::EventDeltaInterface simics::systemc::iface::ExecuteInterface simics::systemc::iface::FrequencyInterface simics::systemc::iface::ConcurrencyGroupInterface simics::systemc::iface::ConcurrencyModeInterface simics::systemc::iface::ExecuteControlInterface simics::systemc::Adapter

Public Member Functions

 Simulation (ConfObjectRef o, InternalInterface *internal)
 
virtual ~Simulation ()
 
virtual void run ()
 
virtual void stop ()
 
virtual void switch_in ()
 
virtual void switch_out ()
 
virtual uint64 set_delta (conf_object_t *NOTNULL event_handler_obj, const event_class_t *next_event_ec, uint64 delta)
 
virtual uint64 get_delta (conf_object_t *NOTNULL event_handler_obj)
 
virtual double get () const
 
virtual std::vector< conf_object_t * > serialized_memory_group (unsigned group_index)
 
virtual std::vector< conf_object_t * > execution_group (unsigned group_index)
 
virtual concurrency_mode_t supported_modes ()
 
virtual concurrency_mode_t current_mode ()
 
virtual void switch_mode (concurrency_mode_t mode)
 
virtual void message_pending ()
 
virtual void yield_request ()
 
int runDeltaPhase (int count)
 
bool runSimulation (sc_core::sc_time t)
 
void stopSimulation ()
 
sc_core::sc_simcontext * context () const
 
ConfObjectRef simics_object () const
 
void set_run_next_delta (const int &count)
 
- Public Member Functions inherited from simics::systemc::iface::SimulationInterface
virtual ~SimulationInterface ()
 
virtual int runDeltaPhase (int count)=0
 
virtual bool runSimulation (sc_core::sc_time t)=0
 
virtual void stopSimulation ()=0
 
virtual sc_core::sc_simcontext * context () const =0
 
virtual ConfObjectRef simics_object () const =0
 
- Public Member Functions inherited from simics::systemc::iface::EventDeltaInterface
virtual ~EventDeltaInterface ()
 
virtual uint64 set_delta (conf_object_t *NOTNULL event_handler_obj, const event_class_t *next_event_ec, uint64 delta)=0
 
virtual uint64 get_delta (conf_object_t *NOTNULL event_handler_obj)=0
 
- Public Member Functions inherited from simics::systemc::iface::ExecuteInterface
virtual ~ExecuteInterface ()
 
virtual void run ()=0
 
virtual void stop ()=0
 
virtual void switch_in ()=0
 
virtual void switch_out ()=0
 
- Public Member Functions inherited from simics::systemc::iface::FrequencyInterface
virtual double get () const =0
 
virtual ~FrequencyInterface ()
 
- Public Member Functions inherited from simics::systemc::iface::ConcurrencyGroupInterface
virtual std::vector< conf_object_t * > serialized_memory_group (unsigned group_index)=0
 
virtual std::vector< conf_object_t * > execution_group (unsigned group_index)=0
 
virtual ~ConcurrencyGroupInterface ()
 
- Public Member Functions inherited from simics::systemc::iface::ConcurrencyModeInterface
virtual concurrency_mode_t supported_modes ()=0
 
virtual concurrency_mode_t current_mode ()=0
 
virtual void switch_mode (concurrency_mode_t mode)=0
 
virtual ~ConcurrencyModeInterface ()
 
- Public Member Functions inherited from simics::systemc::iface::ExecuteControlInterface
virtual void message_pending ()=0
 
virtual void yield_request ()=0
 
virtual ~ExecuteControlInterface ()
 

Protected Member Functions

void finalize ()
 
virtual void callHandleEvent ()
 
const std::vector< conf_object_t * > & instances () const
 

Detailed Description

Provides the interface to the SystemC kernel.

Handles running the SystemC scheduler on entry from Simics. The class also maintains the simulation context, making it possible to create multiple instances of the same module.

Constructor & Destructor Documentation

◆ Simulation()

simics::systemc::Simulation::Simulation ( ConfObjectRef  o,
InternalInterface internal 
)

◆ ~Simulation()

virtual simics::systemc::Simulation::~Simulation ( )
virtual

Member Function Documentation

◆ callHandleEvent()

virtual void simics::systemc::Simulation::callHandleEvent ( )
protectedvirtual

◆ context()

sc_core::sc_simcontext * simics::systemc::Simulation::context ( ) const
virtual

◆ current_mode()

virtual concurrency_mode_t simics::systemc::Simulation::current_mode ( )
virtual

◆ execution_group()

virtual std::vector< conf_object_t * > simics::systemc::Simulation::execution_group ( unsigned  group_index)
virtual

◆ finalize()

void simics::systemc::Simulation::finalize ( )
protected

◆ get()

virtual double simics::systemc::Simulation::get ( ) const
virtual

◆ get_delta()

virtual uint64 simics::systemc::Simulation::get_delta ( conf_object_t *NOTNULL  event_handler_obj)
virtual

◆ instances()

const std::vector< conf_object_t * > & simics::systemc::Simulation::instances ( ) const
protected

◆ message_pending()

virtual void simics::systemc::Simulation::message_pending ( )
virtual

◆ run()

virtual void simics::systemc::Simulation::run ( )
virtual

◆ runDeltaPhase()

int simics::systemc::Simulation::runDeltaPhase ( int  count)
virtual

◆ runSimulation()

bool simics::systemc::Simulation::runSimulation ( sc_core::sc_time  t)
virtual

◆ serialized_memory_group()

virtual std::vector< conf_object_t * > simics::systemc::Simulation::serialized_memory_group ( unsigned  group_index)
virtual

◆ set_delta()

virtual uint64 simics::systemc::Simulation::set_delta ( conf_object_t *NOTNULL  event_handler_obj,
const event_class_t *  next_event_ec,
uint64  delta 
)
virtual

◆ set_run_next_delta()

void simics::systemc::Simulation::set_run_next_delta ( const int &  count)

◆ simics_object()

ConfObjectRef simics::systemc::Simulation::simics_object ( ) const
virtual

◆ stop()

virtual void simics::systemc::Simulation::stop ( )
virtual

◆ stopSimulation()

void simics::systemc::Simulation::stopSimulation ( )
virtual

◆ supported_modes()

virtual concurrency_mode_t simics::systemc::Simulation::supported_modes ( )
virtual

◆ switch_in()

virtual void simics::systemc::Simulation::switch_in ( )
virtual

◆ switch_mode()

virtual void simics::systemc::Simulation::switch_mode ( concurrency_mode_t  mode)
virtual

◆ switch_out()

virtual void simics::systemc::Simulation::switch_out ( )
virtual

◆ yield_request()

virtual void simics::systemc::Simulation::yield_request ( )
virtual

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