SystemC  2.3.1
Accellera SystemC proof-of-concept library
Public Member Functions | Friends | List of all members
sc_core::sc_simcontext Class Reference

#include <sysc/kernel/sc_simcontext.h>

Public Member Functions

 sc_simcontext ()
 
 ~sc_simcontext ()
 
void initialize (bool=false)
 
void cycle (const sc_time &)
 
void simulate (const sc_time &duration)
 
void stop ()
 
void end ()
 
void reset ()
 
int sim_status () const
 
bool elaboration_done () const
 
std::vector< sc_thread_handle > & get_active_invokers ()
 
sc_object_managerget_object_manager ()
 
sc_status get_status () const
 
sc_objectactive_object ()
 
void hierarchy_push (sc_module *)
 
sc_modulehierarchy_pop ()
 
sc_modulehierarchy_curr () const
 
sc_objectfirst_object ()
 
sc_objectnext_object ()
 
sc_objectfind_object (const char *name)
 
sc_module_registryget_module_registry ()
 
sc_port_registryget_port_registry ()
 
sc_export_registryget_export_registry ()
 
sc_prim_channel_registryget_prim_channel_registry ()
 
const char * gen_unique_name (const char *basename_, bool preserve_first=false)
 
sc_process_handle create_cthread_process (const char *name_p, bool free_host, SC_ENTRY_FUNC method_p, sc_process_host *host_p, const sc_spawn_options *opt_p)
 
sc_process_handle create_method_process (const char *name_p, bool free_host, SC_ENTRY_FUNC method_p, sc_process_host *host_p, const sc_spawn_options *opt_p)
 
sc_process_handle create_thread_process (const char *name_p, bool free_host, SC_ENTRY_FUNC method_p, sc_process_host *host_p, const sc_spawn_options *opt_p)
 
sc_curr_proc_handle get_curr_proc_info ()
 
sc_objectget_current_writer () const
 
bool write_check () const
 
void set_curr_proc (sc_process_b *)
 
void reset_curr_proc ()
 
int next_proc_id ()
 
void add_trace_file (sc_trace_file *)
 
void remove_trace_file (sc_trace_file *)
 
const sc_timemax_time () const
 
const sc_timetime_stamp () const
 
sc_dt::uint64 change_stamp () const
 
sc_dt::uint64 delta_count () const
 
bool event_occurred (sc_dt::uint64 last_change_count) const
 
bool evaluation_phase () const
 
bool is_running () const
 
bool update_phase () const
 
bool notify_phase () const
 
bool get_error ()
 
void set_error (sc_report *)
 
sc_cor_pkgcor_pkg ()
 
sc_cornext_cor ()
 
const ::std::vector< sc_object * > & get_child_objects () const
 
void elaborate ()
 
void prepare_to_simulate ()
 
void initial_crunch (bool no_crunch)
 
bool next_time (sc_time &t) const
 
bool pending_activity_at_current_time () const
 

Friends

struct sc_invoke_method
 
class sc_event
 
class sc_module
 
class sc_object
 
class sc_time
 
class sc_clock
 
class sc_method_process
 
class sc_phase_callback_registry
 
class sc_process_b
 
class sc_process_handle
 
class sc_prim_channel
 
class sc_cthread_process
 
class sc_thread_process
 
sc_dt::uint64 sc_delta_count ()
 
const std::vector< sc_event * > & sc_get_top_level_events (const sc_simcontext *simc_p)
 
const std::vector< sc_object * > & sc_get_top_level_objects (const sc_simcontext *simc_p)
 
bool sc_is_running (const sc_simcontext *simc_p)
 
void sc_pause ()
 
bool sc_end_of_simulation_invoked ()
 
void sc_start (const sc_time &, sc_starvation_policy)
 
bool sc_start_of_simulation_invoked ()
 
void sc_thread_cor_fn (void *)
 
sc_time sc_time_to_pending_activity (const sc_simcontext *)
 
bool sc_pending_activity_at_current_time (const sc_simcontext *)
 
bool sc_pending_activity_at_future_time (const sc_simcontext *)
 
void sc_set_time_resolution (double, sc_time_unit)
 
sc_time sc_get_time_resolution ()
 
void sc_set_default_time_unit (double, sc_time_unit)
 
sc_time sc_get_default_time_unit ()
 

Detailed Description

Definition at line 135 of file sc_simcontext.h.

Constructor & Destructor Documentation

sc_core::sc_simcontext::sc_simcontext ( )
sc_core::sc_simcontext::~sc_simcontext ( )

Member Function Documentation

sc_object* sc_core::sc_simcontext::active_object ( )
void sc_core::sc_simcontext::add_trace_file ( sc_trace_file )
sc_dt::uint64 sc_core::sc_simcontext::change_stamp ( ) const
inline

Definition at line 493 of file sc_simcontext.h.

sc_cor_pkg* sc_core::sc_simcontext::cor_pkg ( )
inline

Definition at line 251 of file sc_simcontext.h.

sc_process_handle sc_core::sc_simcontext::create_cthread_process ( const char *  name_p,
bool  free_host,
SC_ENTRY_FUNC  method_p,
sc_process_host host_p,
const sc_spawn_options opt_p 
)
sc_process_handle sc_core::sc_simcontext::create_method_process ( const char *  name_p,
bool  free_host,
SC_ENTRY_FUNC  method_p,
sc_process_host host_p,
const sc_spawn_options opt_p 
)
sc_process_handle sc_core::sc_simcontext::create_thread_process ( const char *  name_p,
bool  free_host,
SC_ENTRY_FUNC  method_p,
sc_process_host host_p,
const sc_spawn_options opt_p 
)
void sc_core::sc_simcontext::cycle ( const sc_time )
sc_dt::uint64 sc_core::sc_simcontext::delta_count ( ) const
void sc_core::sc_simcontext::elaborate ( )
bool sc_core::sc_simcontext::elaboration_done ( ) const
inline

Definition at line 401 of file sc_simcontext.h.

void sc_core::sc_simcontext::end ( )
bool sc_core::sc_simcontext::evaluation_phase ( ) const
inline

Definition at line 515 of file sc_simcontext.h.

bool sc_core::sc_simcontext::event_occurred ( sc_dt::uint64  last_change_count) const
inline

Definition at line 508 of file sc_simcontext.h.

sc_object* sc_core::sc_simcontext::find_object ( const char *  name)
sc_object* sc_core::sc_simcontext::first_object ( )
const char* sc_core::sc_simcontext::gen_unique_name ( const char *  basename_,
bool  preserve_first = false 
)
std::vector< sc_thread_handle > & sc_core::sc_simcontext::get_active_invokers ( )
inline

Definition at line 283 of file sc_simcontext_int.h.

const ::std::vector<sc_object*>& sc_core::sc_simcontext::get_child_objects ( ) const
sc_curr_proc_handle sc_core::sc_simcontext::get_curr_proc_info ( )
inline

Definition at line 466 of file sc_simcontext.h.

sc_object * sc_core::sc_simcontext::get_current_writer ( ) const
inline

Definition at line 567 of file sc_simcontext.h.

bool sc_core::sc_simcontext::get_error ( )
inline

Definition at line 546 of file sc_simcontext.h.

sc_export_registry * sc_core::sc_simcontext::get_export_registry ( )
inline

Definition at line 451 of file sc_simcontext.h.

sc_module_registry * sc_core::sc_simcontext::get_module_registry ( )
inline

Definition at line 437 of file sc_simcontext.h.

sc_object_manager * sc_core::sc_simcontext::get_object_manager ( )
inline

Definition at line 430 of file sc_simcontext.h.

sc_port_registry * sc_core::sc_simcontext::get_port_registry ( )
inline

Definition at line 444 of file sc_simcontext.h.

sc_prim_channel_registry * sc_core::sc_simcontext::get_prim_channel_registry ( )
inline

Definition at line 458 of file sc_simcontext.h.

sc_status sc_core::sc_simcontext::get_status ( ) const
inline

Definition at line 407 of file sc_simcontext.h.

sc_module* sc_core::sc_simcontext::hierarchy_curr ( ) const
sc_module* sc_core::sc_simcontext::hierarchy_pop ( )
void sc_core::sc_simcontext::hierarchy_push ( sc_module )
void sc_core::sc_simcontext::initial_crunch ( bool  no_crunch)
inline
void sc_core::sc_simcontext::initialize ( bool  = false)
bool sc_core::sc_simcontext::is_running ( ) const
const sc_time & sc_core::sc_simcontext::max_time ( ) const
inline

Definition at line 482 of file sc_simcontext.h.

sc_cor* sc_core::sc_simcontext::next_cor ( )
sc_object* sc_core::sc_simcontext::next_object ( )
int sc_core::sc_simcontext::next_proc_id ( )
inline

Definition at line 474 of file sc_simcontext.h.

bool sc_core::sc_simcontext::next_time ( sc_time t) const
bool sc_core::sc_simcontext::notify_phase ( ) const
inline

Definition at line 530 of file sc_simcontext.h.

bool sc_core::sc_simcontext::pending_activity_at_current_time ( ) const
void sc_core::sc_simcontext::prepare_to_simulate ( )
void sc_core::sc_simcontext::remove_trace_file ( sc_trace_file )
void sc_core::sc_simcontext::reset ( )
void sc_core::sc_simcontext::reset_curr_proc ( )
inline

Definition at line 93 of file sc_simcontext_int.h.

void sc_core::sc_simcontext::set_curr_proc ( sc_process_b process_h)
inline

Definition at line 84 of file sc_simcontext_int.h.

void sc_core::sc_simcontext::set_error ( sc_report err)
inline

Definition at line 537 of file sc_simcontext.h.

int sc_core::sc_simcontext::sim_status ( ) const
inline

Definition at line 416 of file sc_simcontext.h.

void sc_core::sc_simcontext::simulate ( const sc_time duration)
void sc_core::sc_simcontext::stop ( )
const sc_time & sc_core::sc_simcontext::time_stamp ( ) const
inline

Definition at line 500 of file sc_simcontext.h.

bool sc_core::sc_simcontext::update_phase ( ) const
inline

Definition at line 523 of file sc_simcontext.h.

bool sc_core::sc_simcontext::write_check ( ) const
inline

Definition at line 573 of file sc_simcontext.h.

Friends And Related Function Documentation

friend class sc_clock
friend

Definition at line 142 of file sc_simcontext.h.

friend class sc_cthread_process
friend

Definition at line 148 of file sc_simcontext.h.

sc_dt::uint64 sc_delta_count ( )
friend

Definition at line 656 of file sc_simcontext.h.

bool sc_end_of_simulation_invoked ( )
friend

Definition at line 708 of file sc_simcontext.h.

friend class sc_event
friend

Definition at line 138 of file sc_simcontext.h.

sc_time sc_get_default_time_unit ( )
friend
sc_time sc_get_time_resolution ( )
friend
const std::vector<sc_event*>& sc_get_top_level_events ( const sc_simcontext simc_p = sc_get_curr_simcontext())
friend

Definition at line 638 of file sc_simcontext.h.

const std::vector<sc_object*>& sc_get_top_level_objects ( const sc_simcontext simc_p = sc_get_curr_simcontext())
friend

Definition at line 645 of file sc_simcontext.h.

friend struct sc_invoke_method
friend

Definition at line 137 of file sc_simcontext.h.

bool sc_is_running ( const sc_simcontext simc_p = sc_get_curr_simcontext())
friend

Definition at line 662 of file sc_simcontext.h.

friend class sc_method_process
friend

Definition at line 143 of file sc_simcontext.h.

friend class sc_module
friend

Definition at line 139 of file sc_simcontext.h.

friend class sc_object
friend

Definition at line 140 of file sc_simcontext.h.

void sc_pause ( )
friend

Definition at line 669 of file sc_simcontext.h.

bool sc_pending_activity_at_current_time ( const sc_simcontext simc_p = sc_get_curr_simcontext())
friend

Definition at line 677 of file sc_simcontext.h.

bool sc_pending_activity_at_future_time ( const sc_simcontext simc_p = sc_get_curr_simcontext())
friend

Definition at line 685 of file sc_simcontext.h.

friend class sc_phase_callback_registry
friend

Definition at line 144 of file sc_simcontext.h.

friend class sc_prim_channel
friend

Definition at line 147 of file sc_simcontext.h.

friend class sc_process_b
friend

Definition at line 145 of file sc_simcontext.h.

friend class sc_process_handle
friend

Definition at line 146 of file sc_simcontext.h.

void sc_set_default_time_unit ( double  ,
sc_time_unit   
)
friend
void sc_set_time_resolution ( double  ,
sc_time_unit   
)
friend
void sc_start ( const sc_time ,
sc_starvation_policy   
)
friend
bool sc_start_of_simulation_invoked ( )
friend

Definition at line 720 of file sc_simcontext.h.

void sc_thread_cor_fn ( void *  )
friend
friend class sc_thread_process
friend

Definition at line 149 of file sc_simcontext.h.

friend class sc_time
friend

Definition at line 141 of file sc_simcontext.h.

sc_time sc_time_to_pending_activity ( const sc_simcontext )
friend

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