Jump to content

Problem about sequence array


Recommended Posts

Hi all,

 

I met one problem when i use the sequence array. The frame of the sequence:

 

v_seq

      |-----cfg_seq[]

      |-----slv_seq[]

 

v_sqr

      |-----cfg_sqr[]

      |-----slv_sqr[]

 

env

      |-----sub_env[]

                    |----cfg_agt

                    |            |----cfg_sqr

                    |            |----cfg_dri

                    |----slv_agt

                                 |----slv_sqr

                                 |----slv_dri

 

Connect the sqrs

foreach (sub_env[i]) begin
   v_sqr.cfg_sqr[i] = sub_env[i].cfg_agt.cfg_sqr;
   v_sqr.slv_sqr[i] = sub_env[i].slv_agt.slv_sqr;
end

 

 

the size of the sequence array is more than 1, when i run the v_seq, I found that only cfg_seq[0] and slv_seq[0] could generate the specified item with right constraints in macro `uvm_do_with.  Did anybody encounter the same problem and how did you solve it?

 

Thanks in advance.

mrforever

Link to comment
Share on other sites

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...