ovm_component Class Reference

Inheritance diagram for ovm_component:

Inheritance graph
[legend]
Collaboration diagram for ovm_component:

Collaboration graph
[legend]

List of all members.

Public Member Functions

virtual string get_full_name ()
virtual ovm_component get_parent ()
int get_num_children ()
ovm_component get_child (int index)
virtual void set_parent (ovm_component parent)
virtual protected void add_child (ovm_component child)
bit is_removed ()
void remove ()
virtual void do_remove ()
virtual protected void remove_child (ovm_component child)
virtual protected void remove_children ()
virtual local void set_full_name ()
virtual void set_name (string name)
virtual void set_config_int (string inst_name, string field_name, ovm_bitstream_t value)
virtual void set_config_object (string inst_name, string field_name, ovm_object value, bit clone=1)
virtual void set_config_string (string inst_name, string field_name, string value)
virtual bit get_config_int (string field_name, inout ovm_bitstream_t value)
virtual bit get_config_object (string field_name, inout ovm_object value, input bit clone=1)
virtual bit get_config_string (string field_name, inout string value)
virtual void apply_config_settings (bit verbose=0)
void print_config_settings (string field=" ", ovm_component comp=null, bit recurse=0)
virtual void do_print (ovm_printer printer)
virtual void set_int_local (string field_name, ovm_bitstream_t value, bit recurse=1)
virtual void post_new ()
virtual void export_connections ()
virtual void connect ()
virtual void import_connections ()
virtual void end_of_elaboration ()
virtual void configure ()
virtual void extract ()
virtual void check ()
virtual void report ()
virtual void build ()
string get_current_phase ()
void do_phase (string ph_name, bit no_error=0)
virtual void check_connection_size ()
virtual void execute ()
virtual void resolve_bindings ()
void do_resolve_bindings ()
void stop_request (ovm_stop_enum who=OVM_STOP_ALL)
void trigger_stop_event ()
virtual void stop (string ph_name)
virtual void do_kill_all ()
virtual void kill ()
 new (string name, ovm_component parent)
virtual ovm_object create (string name=" ")
virtual ovm_object clone ()
void print_override_info (string type_name, string inst_name=" ")
ovm_component create_component (string type_name, string inst_name)
ovm_object create_object (string type_name, string name=" ")
void set_inst_override (string inst_path, string override_type, string type_name)
ovm_component absolute_lookup (string name)
ovm_component relative_lookup (string name)
virtual void flush ()
void do_flush ()
void do_set_env (ovm_env e)
virtual void do_display (int max_level=-1, int level=0, bit display_connectors=0)
void set_report_severity_action_hier (ovm_severity s, ovm_action a)
void set_report_id_action_hier (string id, ovm_action a)
void set_report_severity_id_action_hier (ovm_severity s, string id, ovm_action a)
void set_report_severity_file_hier (ovm_severity s, OVM_FILE f)
void set_report_default_file_hier (OVM_FILE f)
void set_report_id_file_hier (string id, OVM_FILE f)
void set_report_severity_id_file_hier (ovm_severity s, string id, OVM_FILE f)
void set_report_verbosity_level_hier (int v)
protected integer m_begin_tr (ovm_transaction tr, integer parent_handle=0, bit has_parent=0, string stream_name="main", string label=" ", string desc=" ", time begin_time=0)
void accept_tr (ovm_transaction tr, time accept_time=0)
integer begin_tr (ovm_transaction tr, string stream_name="main", string label=" ", string desc=" ", time begin_time=0)
integer begin_child_tr (ovm_transaction tr, integer parent_handle=0, string stream_name="main", string label=" ", string desc=" ", time begin_time=0)
void end_tr (ovm_transaction tr, time end_time=0, bit free_handle=1)
integer record_error_tr (string stream_name="main", ovm_object info=null, string label="error_tr", string desc=" ", time error_time=0, bit keep_active=0)
integer record_event_tr (string stream_name="main", ovm_object info=null, string label="event_tr", string desc=" ", time event_time=0, bit keep_active=0)
virtual protected void do_accept_tr (ovm_transaction tr)
virtual protected void do_begin_tr (ovm_transaction tr, string stream_name, integer tr_handle)
virtual protected void do_end_tr (ovm_transaction tr, integer tr_handle)

Static Public Member Functions

static protected void add_component (ovm_component comp)
static ovm_component find_component (string comp_match)
static void find_components (string comp_match, ref ovm_component comps[$])
static ovm_component get_component (int ele)
static int get_num_components ()
static void remove_component_by_name (string name)
static void remove_component (ovm_component comp)
static void set_global_timeout (time timeout)
static string get_current_global_phase ()
static void resolve_all_bindings ()
static void do_exit_action (ovm_report_object object)
static void global_stop_request ()
static void set_global_stop_timeout (time timeout)
static void set_type_override (string override_type, string type_name, bit replace=1)
static void print_unit_list ()
static void print_unit (string name, ovm_printer printer=null)
static void print_units (ovm_printer printer=null)

Public Attributes

ovm_env m_env
bit top_dog
string m_full_name
ovm_component m_parent
bit print_enabled = 1

Static Public Attributes

static bit print_config_matches = 0
static bit m_do_test_mode = 0

Protected Member Functions

void push_back_phase (ovm_phase phase)
void insert_phase (string exist_ph_name, ovm_phase phase)
virtual void m_do_task_phase (ovm_phase phase)
int m_get_phase_num (string ph_name)
virtual void add_to_debug_list ()

Static Protected Member Functions

static int m_get_global_phase_num (string ph_name)
static void m_global_stop_process ()

Protected Attributes

ovm_component m_children [string]
ovm_config_setting m_configuration_table [$]
ovm_component m_components [string]
ovm_component m_ports [string]
ovm_component m_exports [string]
ovm_component m_implementations [string]
bit m_build_done = 0
ovm_phase m_phase_q [$]
int m_curr_phase = -1
int enable_stop_interrupt = 0
process m_phase_process
event m_phase_process_done
ovm_event_pool event_pool

Static Protected Attributes

static ovm_component m_comp_list [$]
static ovm_env s_current_env
static ovm_phase m_global_phase_q [$]
static int m_global_phase_names [string]
static string m_global_curr_phase_name = "none"
static int m_global_curr_phase = -1
static time m_global_timeout = 0
static ovm_event_pool m_global_epool

Private Member Functions

void m_do_current_phase (ovm_phase phase)
void m_phase_children (ovm_phase phase)
void m_stop_req (string ph_name, ovm_stop_enum who)
void extract_name (input string name, output string leaf, output string remainder)
void build_debug_lists ()

Private Attributes

bit m_is_removed
event m_stop_event
integer m_stream_handle [string]
integer m_tr_h [ovm_transaction]

Static Private Attributes

static time m_global_stop_timeout = 10000


Detailed Description

Definition at line 61 of file ovm_component.svh.


Member Function Documentation

virtual string ovm_component::get_full_name (  )  [virtual]

Reimplemented from ovm_object.

virtual ovm_component ovm_component::get_parent (  )  [virtual]

int ovm_component::get_num_children (  ) 

ovm_component ovm_component::get_child ( int  index  ) 

virtual void ovm_component::set_parent ( ovm_component  parent  )  [virtual]

static protected void ovm_component::add_component ( ovm_component  comp  )  [static]

static ovm_component ovm_component::find_component ( string  comp_match  )  [static]

static void ovm_component::find_components ( string  comp_match,
ref ovm_component  comps[$] 
) [static]

static ovm_component ovm_component::get_component ( int  ele  )  [static]

static int ovm_component::get_num_components (  )  [static]

static void ovm_component::remove_component_by_name ( string  name  )  [static]

static void ovm_component::remove_component ( ovm_component  comp  )  [static]

virtual protected void ovm_component::add_child ( ovm_component  child  )  [virtual]

bit ovm_component::is_removed (  ) 

void ovm_component::remove (  ) 

virtual void ovm_component::do_remove (  )  [virtual]

virtual protected void ovm_component::remove_child ( ovm_component  child  )  [virtual]

virtual protected void ovm_component::remove_children (  )  [virtual]

virtual local void ovm_component::set_full_name (  )  [virtual]

virtual void ovm_component::set_name ( string  name  )  [virtual]

Reimplemented from ovm_object.

virtual void ovm_component::set_config_int ( string  inst_name,
string  field_name,
ovm_bitstream_t  value 
) [virtual]

virtual void ovm_component::set_config_object ( string  inst_name,
string  field_name,
ovm_object  value,
bit  clone = 1 
) [virtual]

virtual void ovm_component::set_config_string ( string  inst_name,
string  field_name,
string  value 
) [virtual]

virtual bit ovm_component::get_config_int ( string  field_name,
inout ovm_bitstream_t  value 
) [virtual]

virtual bit ovm_component::get_config_object ( string  field_name,
inout ovm_object  value,
input bit  clone = 1 
) [virtual]

virtual bit ovm_component::get_config_string ( string  field_name,
inout string  value 
) [virtual]

virtual void ovm_component::apply_config_settings ( bit  verbose = 0  )  [virtual]

void ovm_component::print_config_settings ( string  field = " ",
ovm_component  comp = null,
bit  recurse = 0 
)

virtual void ovm_component::do_print ( ovm_printer  printer  )  [virtual]

virtual void ovm_component::set_int_local ( string  field_name,
ovm_bitstream_t  value,
bit  recurse = 1 
) [virtual]

Reimplemented from ovm_object.

virtual void ovm_component::post_new (  )  [virtual]

virtual void ovm_component::export_connections (  )  [virtual]

virtual void ovm_component::connect (  )  [virtual]

virtual void ovm_component::import_connections (  )  [virtual]

virtual void ovm_component::end_of_elaboration (  )  [virtual]

Reimplemented in urm_command_line_processor_c.

virtual void ovm_component::configure (  )  [virtual]

virtual void ovm_component::extract (  )  [virtual]

virtual void ovm_component::check (  )  [virtual]

virtual void ovm_component::report (  )  [virtual]

virtual void ovm_component::build (  )  [virtual]

static void ovm_component::set_global_timeout ( time  timeout  )  [static]

static string ovm_component::get_current_global_phase (  )  [static]

string ovm_component::get_current_phase (  ) 

void ovm_component::do_phase ( string  ph_name,
bit  no_error = 0 
)

void ovm_component::push_back_phase ( ovm_phase  phase  )  [protected]

void ovm_component::insert_phase ( string  exist_ph_name,
ovm_phase  phase 
) [protected]

virtual void ovm_component::check_connection_size (  )  [virtual]

virtual void ovm_component::m_do_task_phase ( ovm_phase  phase  )  [protected, virtual]

Reimplemented in ovm_env.

void ovm_component::m_do_current_phase ( ovm_phase  phase  )  [private]

void ovm_component::m_phase_children ( ovm_phase  phase  )  [private]

static int ovm_component::m_get_global_phase_num ( string  ph_name  )  [static, protected]

int ovm_component::m_get_phase_num ( string  ph_name  )  [protected]

virtual void ovm_component::execute (  )  [virtual]

Reimplemented in ovm_threaded_component.

virtual void ovm_component::resolve_bindings (  )  [virtual]

Reimplemented in ovm_connector_base.

void ovm_component::do_resolve_bindings (  ) 

static void ovm_component::resolve_all_bindings (  )  [static]

static void ovm_component::do_exit_action ( ovm_report_object  object  )  [static]

static void ovm_component::global_stop_request (  )  [static]

void ovm_component::stop_request ( ovm_stop_enum  who = OVM_STOP_ALL  ) 

static void ovm_component::set_global_stop_timeout ( time  timeout  )  [static]

void ovm_component::trigger_stop_event (  ) 

virtual void ovm_component::stop ( string  ph_name  )  [virtual]

virtual void ovm_component::do_kill_all (  )  [virtual]

virtual void ovm_component::kill (  )  [virtual]

Reimplemented in ovm_threaded_component.

static void ovm_component::m_global_stop_process (  )  [static, protected]

void ovm_component::m_stop_req ( string  ph_name,
ovm_stop_enum  who 
) [private]

ovm_component::new ( string  name,
ovm_component  parent 
)

virtual ovm_object ovm_component::create ( string  name = " "  )  [virtual]

virtual ovm_object ovm_component::clone (  )  [virtual]

Reimplemented from ovm_object.

void ovm_component::print_override_info ( string  type_name,
string  inst_name = " " 
)

ovm_component ovm_component::create_component ( string  type_name,
string  inst_name 
)

ovm_object ovm_component::create_object ( string  type_name,
string  name = " " 
)

static void ovm_component::set_type_override ( string  override_type,
string  type_name,
bit  replace = 1 
) [static]

void ovm_component::set_inst_override ( string  inst_path,
string  override_type,
string  type_name 
)

ovm_component ovm_component::absolute_lookup ( string  name  ) 

ovm_component ovm_component::relative_lookup ( string  name  ) 

void ovm_component::extract_name ( input string  name,
output string  leaf,
output string  remainder 
) [private]

void ovm_component::build_debug_lists (  )  [private]

virtual void ovm_component::add_to_debug_list (  )  [protected, virtual]

virtual void ovm_component::flush (  )  [virtual]

void ovm_component::do_flush (  ) 

void ovm_component::do_set_env ( ovm_env  e  ) 

virtual void ovm_component::do_display ( int  max_level = -1,
int  level = 0,
bit  display_connectors = 0 
) [virtual]

void ovm_component::set_report_severity_action_hier ( ovm_severity  s,
ovm_action  a 
)

void ovm_component::set_report_id_action_hier ( string  id,
ovm_action  a 
)

void ovm_component::set_report_severity_id_action_hier ( ovm_severity  s,
string  id,
ovm_action  a 
)

void ovm_component::set_report_severity_file_hier ( ovm_severity  s,
OVM_FILE  f 
)

void ovm_component::set_report_default_file_hier ( OVM_FILE  f  ) 

void ovm_component::set_report_id_file_hier ( string  id,
OVM_FILE  f 
)

void ovm_component::set_report_severity_id_file_hier ( ovm_severity  s,
string  id,
OVM_FILE  f 
)