Quantcast
Channel: UVM Forums RSS Feed
Viewing all articles
Browse latest Browse all 756

handle to uvm_component in uvm_object

$
0
0

Hi,

 

Is there a way to avoid the "complex type usage" error when needing to feed a uvm_object a handle to an uvm_component?

What I need to do is access within a sequence a method of one component in the environment.

uvm_component:

@build_phase
uvm_config_db#(comp_type)::set(this, "*", comp_handle_name", this)


uvm_sequence:

@body:
comp_type comp_inst;
 uvm_config_db #(comp_type)::get(this, "*", "comp_handle_name", comp_inst)

 comp_inst.my_method();
 

Viewing all articles
Browse latest Browse all 756

Trending Articles