dipling Posted June 6, 2016 Report Posted June 6, 2016 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(); Quote
tdminion Posted June 14, 2016 Report Posted June 14, 2016 You could use uvm_root in the 'set' and 'get' methods for the context argument. You could also use uvm_root or uvm_top in the set method and use m_sequencer as the context to get the handle. Also, the handle to the component could be placed in the configuration object that is scoped to m_sequencer. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.