gpakillsme Posted November 28, 2013 Report 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
uwes Posted November 28, 2013 Report 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
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.