Jump to content

Recommended Posts

Posted

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
 
Posted

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

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...