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

 new (string name, ovm_component parent)
virtual ovm_component get_parent ()
virtual string get_full_name ()
ovm_component get_child (string name)
int get_first_child (ref string name)
int get_next_child (ref string name)
int get_num_children ()
int has_child (string name)
virtual void set_name (string name)
ovm_component lookup (string name)
virtual void build ()
virtual void connect ()
virtual void end_of_elaboration ()
virtual void start_of_simulation ()
virtual task run ()
virtual void extract ()
virtual void check ()
virtual void report ()
virtual task suspend ()
virtual task resume ()
virtual task restart ()
string status ()
virtual void kill ()
virtual void resolve_bindings ()
virtual void flush ()
virtual task stop (string ph_name)
virtual void do_func_phase (ovm_phase phase)
virtual task do_task_phase (ovm_phase phase)
virtual void do_kill_all ()
void do_resolve_bindings ()
void do_flush ()
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)
ovm_component create_component (string requested_type_name, string name)
ovm_object create_object (string requested_type_name, string name="")
void set_inst_override_by_type (string relative_inst_path, ovm_object_wrapper original_type, ovm_object_wrapper override_type)
void set_inst_override (string relative_inst_path, string original_type_name, string override_type_name)
void print_override_info (string requested_type_name, string name="")
virtual ovm_object create (string name="")
virtual ovm_object clone ()
void set_report_severity_action_hier (ovm_severity severity, ovm_action action)
void set_report_id_action_hier (string id, ovm_action action)
void set_report_severity_id_action_hier (ovm_severity severity, string id, ovm_action action)
void set_report_default_file_hier (OVM_FILE file)
void set_report_severity_file_hier (ovm_severity severity, OVM_FILE file)
void set_report_id_file_hier (string id, OVM_FILE file)
void set_report_severity_id_file_hier (ovm_severity severity, string id, OVM_FILE file)
void set_report_verbosity_level_hier (int verbosity)
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)
virtual bit m_add_child (ovm_component child)
virtual void post_new ()
virtual void import_connections ()
virtual void configure ()
virtual void export_connections ()
virtual void pre_run ()
ovm_component create_unit (string type_name, string inst_name)
void do_print (ovm_printer printer)
void set_int_local (string field_name, ovm_bitstream_t value, bit recurse=1)

Static Public Member Functions

static void set_type_override_by_type (ovm_object_wrapper original_type, ovm_object_wrapper override_type, bit replace=1)
static void set_type_override (string original_type_name, string override_type_name, bit replace=1)
static void global_stop_request ()
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 ()

Public Attributes

ovm_component m_parent
ovm_phase m_curr_phase = null
string m_name
bit print_enabled = 1
int unsigned recording_detail = OVM_NONE

Static Public Attributes

static bit print_config_matches = 0

Protected Attributes

ovm_component m_children [string]
int enable_stop_interrupt = 0
bit m_build_done = 0
ovm_config_setting m_configuration_table [$]
ovm_event_pool event_pool
process m_phase_process
event m_kill_request

Private Member Functions

virtual void m_set_full_name ()
void m_extract_name (string name, output string leaf, output string remainder)

Private Attributes

integer m_stream_handle [string]
integer m_tr_h [ovm_transaction]

Static Private Attributes

static bit m_phases_loaded = 0

Detailed Description

Definition at line 42 of file ovm_component.svh.


Member Function Documentation

void ovm_component::accept_tr ( ovm_transaction  tr,
time  accept_time = 0 
)

Definition at line 804 of file ovm_component.sv.

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

Definition at line 1225 of file ovm_component.sv.

integer ovm_component::begin_child_tr ( ovm_transaction  tr,
integer  parent_handle = 0,
string  stream_name = "main",
string  label = "",
string  desc = "",
time  begin_time = 0 
)

Definition at line 828 of file ovm_component.sv.

integer ovm_component::begin_tr ( ovm_transaction  tr,
string  stream_name = "main",
string  label = "",
string  desc = "",
time  begin_time = 0 
)

Definition at line 817 of file ovm_component.sv.

void ovm_component::build (  )  [virtual]
void ovm_component::check (  )  [virtual]

Definition at line 755 of file ovm_component.sv.

ovm_object ovm_component::clone (  )  [virtual]

Reimplemented from ovm_object.

Definition at line 383 of file ovm_component.sv.

void ovm_component::configure (  )  [virtual]

Definition at line 1379 of file ovm_component.sv.

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

Reimplemented from ovm_object.

Reimplemented in urm_command_line_processor_c, ovm_seq_prod_if, ovm_seq_cons_if, and tlm_req_rsp_channel< REQ, RSP >.

Definition at line 373 of file ovm_component.sv.

ovm_component ovm_component::create_component ( string  requested_type_name,
string  name 
)

Definition at line 401 of file ovm_component.sv.

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

Definition at line 411 of file ovm_component.sv.

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

Definition at line 32 of file ovm_component.svh.

void ovm_component::do_accept_tr ( ovm_transaction  tr  )  [virtual]

Definition at line 1029 of file ovm_component.sv.

void ovm_component::do_begin_tr ( ovm_transaction  tr,
string  stream_name,
integer  tr_handle 
) [virtual]

Definition at line 1037 of file ovm_component.sv.

void ovm_component::do_end_tr ( ovm_transaction  tr,
integer  tr_handle 
) [virtual]

Definition at line 1047 of file ovm_component.sv.

void ovm_component::do_flush (  ) 

Definition at line 357 of file ovm_component.sv.

void ovm_component::do_func_phase ( ovm_phase  phase  )  [virtual]

Definition at line 577 of file ovm_component.sv.

void ovm_component::do_kill_all (  )  [virtual]

Definition at line 624 of file ovm_component.sv.

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

Definition at line 787 of file ovm_component.sv.

task ovm_component::do_task_phase ( ovm_phase  phase  )  [virtual]

Reimplemented in ovm_env.

Definition at line 588 of file ovm_component.sv.

void ovm_component::end_of_elaboration (  )  [virtual]
void ovm_component::end_tr ( ovm_transaction  tr,
time  end_time = 0,
bit  free_handle = 1 
)

Definition at line 916 of file ovm_component.sv.

void ovm_component::export_connections (  )  [virtual]

Definition at line 1363 of file ovm_component.sv.

void ovm_component::extract (  )  [virtual]

Definition at line 747 of file ovm_component.sv.

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

Definition at line 1395 of file ovm_component.sv.

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

Definition at line 1404 of file ovm_component.sv.

void ovm_component::flush (  )  [virtual]
ovm_component ovm_component::get_child ( string  name  ) 

Definition at line 214 of file ovm_component.sv.

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

Definition at line 1414 of file ovm_component.sv.

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

Definition at line 1173 of file ovm_component.sv.

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

Definition at line 1203 of file ovm_component.sv.

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

Definition at line 1188 of file ovm_component.sv.

int ovm_component::get_first_child ( ref string  name  ) 

Definition at line 198 of file ovm_component.sv.

string ovm_component::get_full_name (  )  [virtual]

Reimplemented from ovm_object.

Definition at line 238 of file ovm_component.sv.

int ovm_component::get_next_child ( ref string  name  ) 

Definition at line 206 of file ovm_component.sv.

int ovm_component::get_num_children (  ) 

Definition at line 230 of file ovm_component.sv.

int ovm_component::get_num_components (  )  [static]

Definition at line 1428 of file ovm_component.sv.

ovm_component ovm_component::get_parent (  )  [virtual]

Definition at line 251 of file ovm_component.sv.

void ovm_component::global_stop_request (  )  [static]

Definition at line 1345 of file ovm_component.sv.

int ovm_component::has_child ( string  name  ) 

Definition at line 222 of file ovm_component.sv.

void ovm_component::import_connections (  )  [virtual]

Definition at line 1371 of file ovm_component.sv.

void ovm_component::kill (  )  [virtual]

Definition at line 635 of file ovm_component.sv.

ovm_component ovm_component::lookup ( string  name  ) 

Definition at line 289 of file ovm_component.sv.

bit ovm_component::m_add_child ( ovm_component  child  )  [virtual]

Definition at line 163 of file ovm_component.sv.

integer ovm_component::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 
)

Definition at line 840 of file ovm_component.sv.

void ovm_component::m_extract_name ( string  name,
output string  leaf,
output string  remainder 
) [private]
void ovm_component::m_set_full_name (  )  [private, virtual]

Definition at line 271 of file ovm_component.sv.

ovm_component::new ( string  name,
ovm_component  parent 
)

Reimplemented in ovm_env, ovm_port_component_base, avm_random_stimulus< T >, avm_subscriber< T >, avm_in_order_comparator< T, comp_type, convert, pair_type >, avm_in_order_class_comparator< T >, avm_in_order_built_in_comparator< T >, analysis_fifo< T >, urm_command_line_processor_c, ovm_scenario_controller< REQ, RSP >, ovm_scenario_driver< REQ, RSP >, ovm_agent, ovm_driver< REQ, RSP >, ovm_in_order_comparator< T, comp_type, convert, pair_type >, ovm_in_order_built_in_comparator< T >, ovm_in_order_class_comparator< T >, ovm_monitor, ovm_push_driver< REQ, RSP >, ovm_random_stimulus< trans_type >, ovm_subscriber< T >, ovm_test, ovm_push_sequencer< REQ, RSP >, ovm_sequencer< REQ, RSP >, ovm_seq_prod_if, ovm_seq_cons_if, sequencer_analysis_fifo< RSP >, ovm_sequencer_base, ovm_sequencer_param_base< REQ, RSP >, tlm_fifo_base< T >, tlm_analysis_fifo< T >, tlm_transport_channel< REQ, RSP >, ovm_in_order_comparator< T >, ovm_in_order_comparator< T, avm_class_comp< T >, avm_class_converter< T >, avm_class_pair< T, T > >, ovm_in_order_comparator< AFTER, ovm_class_comp< AFTER >, ovm_class_converter< AFTER >, ovm_class_pair< AFTER, AFTER > >, ovm_in_order_comparator< T, ovm_class_comp< T >, ovm_class_converter< T >, ovm_class_pair< T, T > >, ovm_in_order_class_comparator< AFTER >, ovm_random_stimulus< T >, ovm_sequencer< ovm_sequence_item >, sequencer_analysis_fifo< ovm_sequence_item >, ovm_sequencer_param_base< ovm_sequence_item, ovm_sequence_item >, tlm_fifo_base< REQ >, tlm_fifo_base< RSP >, tlm_fifo_base< AFTER >, tlm_fifo_base< ovm_sequence_item >, and tlm_analysis_fifo< AFTER >.

Definition at line 73 of file ovm_component.sv.

void ovm_component::post_new (  )  [virtual]

Definition at line 1355 of file ovm_component.sv.

void ovm_component::pre_run (  )  [virtual]

Definition at line 1387 of file ovm_component.sv.

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

Definition at line 1277 of file ovm_component.sv.

void ovm_component::print_override_info ( string  requested_type_name,
string  name = "" 
)

Definition at line 392 of file ovm_component.sv.

integer ovm_component::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 
)

Definition at line 962 of file ovm_component.sv.

integer ovm_component::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 
)

Definition at line 996 of file ovm_component.sv.

void ovm_component::report (  )  [virtual]

Definition at line 763 of file ovm_component.sv.

void ovm_component::resolve_bindings (  )  [virtual]

Reimplemented in ovm_port_component< PORT >, and ovm_port_component< this_type >.

Definition at line 779 of file ovm_component.sv.

task ovm_component::restart (  )  [virtual]

Definition at line 676 of file ovm_component.sv.

task ovm_component::resume (  )  [virtual]

Definition at line 663 of file ovm_component.sv.

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

Definition at line 1063 of file ovm_component.sv.

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

Definition at line 1089 of file ovm_component.sv.

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

Definition at line 1076 of file ovm_component.sv.

void ovm_component::set_inst_override ( string  relative_inst_path,
string  original_type_name,
string  override_type_name 
)

Definition at line 442 of file ovm_component.sv.

void ovm_component::set_inst_override_by_type ( string  relative_inst_path,
ovm_object_wrapper  original_type,
ovm_object_wrapper  override_type 
)

Definition at line 461 of file ovm_component.sv.

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

Reimplemented from ovm_object.

Definition at line 72 of file ovm_component.svh.

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

Reimplemented from ovm_object.

Definition at line 259 of file ovm_component.sv.

void ovm_component::set_report_default_file_hier ( OVM_FILE  file  ) 

Definition at line 528 of file ovm_component.sv.

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

Definition at line 495 of file ovm_component.sv.

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

Definition at line 538 of file ovm_component.sv.

void ovm_component::set_report_severity_action_hier ( ovm_severity  severity,
ovm_action  action 
)

Definition at line 484 of file ovm_component.sv.

void ovm_component::set_report_severity_file_hier ( ovm_severity  severity,
OVM_FILE  file 
)

Definition at line 517 of file ovm_component.sv.

void ovm_component::set_report_severity_id_action_hier ( ovm_severity  severity,
string  id,
ovm_action  action 
)

Definition at line 505 of file ovm_component.sv.

void ovm_component::set_report_severity_id_file_hier ( ovm_severity  severity,
string  id,
OVM_FILE  file 
)

Definition at line 548 of file ovm_component.sv.

void ovm_component::set_report_verbosity_level_hier ( int  verbosity  ) 

Definition at line 560 of file ovm_component.sv.

void ovm_component::set_type_override ( string  original_type_name,
string  override_type_name,
bit  replace = 1 
) [static]

Definition at line 421 of file ovm_component.sv.

void ovm_component::set_type_override_by_type ( ovm_object_wrapper  original_type,
ovm_object_wrapper  override_type,
bit  replace = 1 
) [static]

Definition at line 432 of file ovm_component.sv.

void ovm_component::start_of_simulation (  )  [virtual]

Definition at line 723 of file ovm_component.sv.

string ovm_component::status (  ) 

Definition at line 685 of file ovm_component.sv.

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

Definition at line 771 of file ovm_component.sv.

task ovm_component::suspend (  )  [virtual]

Definition at line 650 of file ovm_component.sv.


Member Data Documentation

Definition at line 227 of file ovm_component.svh.

Definition at line 503 of file ovm_component.svh.

bit ovm_component::m_build_done = 0 [protected]

Definition at line 229 of file ovm_component.svh.

Definition at line 86 of file ovm_component.svh.

Definition at line 318 of file ovm_component.svh.

Reimplemented in ovm_root.

Definition at line 226 of file ovm_component.svh.

event ovm_component::m_kill_request [protected]

Definition at line 536 of file ovm_component.svh.

Definition at line 538 of file ovm_component.svh.

Definition at line 85 of file ovm_component.svh.

process ovm_component::m_phase_process [protected]

Definition at line 534 of file ovm_component.svh.

bit ovm_component::m_phases_loaded = 0 [static, private]

Definition at line 526 of file ovm_component.svh.

integer ovm_component::m_stream_handle[string] [private]

Definition at line 528 of file ovm_component.svh.

Definition at line 529 of file ovm_component.svh.

Definition at line 317 of file ovm_component.svh.

Definition at line 540 of file ovm_component.svh.

int unsigned ovm_component::recording_detail = OVM_NONE

Definition at line 26 of file ovm_component.svh.


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

Intelligent Design Verification
Intelligent Design Verification
Project: OVM, Revision: 2.0.0
Copyright (c) 2008-2010 Intelligent Design Verification.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
A copy of the license is included here:
http://www.intelligentdv.com/licenses/fdl.txt
doxygen
Doxygen Version: 1.6.3
IDV SV Filter Version: 2.6.3
Sat Jun 19 11:36:14 2010
Find a documentation bug? Report bugs to: bugs.intelligentdv.com Project: DoxygenFilterSV