amitrana Posted June 1, 2012 Report Share Posted June 1, 2012 Hi UVM WORLD, I wanna know which approach is better (1) using config_db in sequence for setting control parameter in UVC OR (2) Concept of virtual Sequencer. Quote Link to comment Share on other sites More sharing options...
jadec Posted June 12, 2012 Report Share Posted June 12, 2012 For reuse, it's always better to control things top-down. If you start using global variables, full hierarchical paths to components, or accessing up to a parent (aside for sequence accessing it's p_sequencer), it will become difficult to reuse the components outside of that environment. Generally, you'd use the config for static or semi-static controls and sequences or virtual sequences for more dynamic and interactive controls. Quote Link to comment Share on other sites More sharing options...
phuynh Posted June 12, 2012 Report Share Posted June 12, 2012 In addition to what Jade mentioned, uvm_config_db::set/get is normally done during the build_phase and/or the connect_phase to control/get the static parameters of the UVC. Quote Link to comment Share on other sites More sharing options...
amitrana Posted June 13, 2012 Author Report Share Posted June 13, 2012 Hi, Thanks all. Quote Link to comment Share on other sites More sharing options...
SeanChou Posted June 19, 2012 Report Share Posted June 19, 2012 Phuynh, Do you also suggest users to use uvm_config_db during run phases, if yes, why? if not, is there any suggested alternative for it and thanks! Quote Link to comment Share on other sites More sharing options...
phuynh Posted June 19, 2012 Report Share Posted June 19, 2012 Yes, you can also use uvm_config_db::get() in the run_phase to get values for variables set from a higher-level component. The set() is normally done in the test or the uvm_env before the run_phase (e.g, build_phase) as part of configuring the testbench and "tuning the knobs". Phuynh, Do you also suggest users to use uvm_config_db during run phases, if yes, why? if not, is there any suggested alternative for it and thanks! Quote Link to comment Share on other sites More sharing options...
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.