gpakillsme Posted November 28, 2013 Report Share Posted November 28, 2013 Hi, I am running into a situation which I have one register model, but there will be multiple identical agent need to use this regmodel to send sequence. assume I have: reg_agent agent[5]; and in build phase, can I use: foreach(agent) begin uvm_config_db #(ral_block_host_regmodel)::set(this, $sformatf("agent[%0d]",i), "regmodel", regmodel); end thanks Quote Link to comment Share on other sites More sharing options...
uwes Posted November 28, 2013 Report Share Posted November 28, 2013 hi, i think the following is simpler (slightly different semantic) foreach(agent[i]) begin uvm_config_db #(ral_block_host_regmodel)::set(agent[i],"", "regmodel", regmodel); end 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.