Jump to content

Peek port usage


Recommended Posts

Hi,

I have an environment with 3 agents (ag1, ag2,ag3). I want to control the scheduling of 2 sequencers with the help of a signal defined in 3rd sequencer.

sequencer1: "req.en"

if(req.en==1)

sequencer2

if(req.en==0)

sequencer3

The sequencer1 has a "en" signal which decides weather seq2 or seq3 will work first.

I want both the sequencer to work but wrt to the "en" signal they should be scheduled.

I am not sure but I think peek port will be the best option to do so?

Which is the best place to define the peek port monitor,sequencer?

Can anyone help me with a example how to use it.

Link to comment
Share on other sites

not sure what you mean with "control the scheduling of 2 seqeuncers"? do you want to control which path the data should go?, which is invoked in the simulation cycle first? ...

from an high level perspective it sounds you want a virtual sequence and tell which sequencer should execute it, right?

Link to comment
Share on other sites

Yes, I have a virtual sequencer which instantiate all the 3 sequencers. Now the problem is that one of the signal (req.en) in a sequencer controles the operation of the other two as explained.

If en=1 then one of the sequencer drives the data to the DUV and if en=0 the other works.

Link to comment
Share on other sites

conceptually sequencers work all the time. they take data from all running sequences on demand and provide it to the driver (+arbitration,+randomization,...). what you want is to redirect your traffic to either seqr2 or seqr3 (and not switch on/off sequencers). you can do something like:

if(signal)

`uvm_do_on(sequencer2,....)

else

`uvm_do_on(sequencer3,...)

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