Jump to content

Subclassing vs. typedef uvm_sequencer


Recommended Posts

I subclass sequencers, but that is mainly because I add common functionality to all components, including sequencers. Subclassing may also be easier to understand for non-experts, since the typedef in SV does not work like typedef in C/C++. Also, I am not sure the fact that the uvm_sequencer does register with the factory is part of the standard (the ovm_sequencer does not register with the factory, if I remember correctly).

Erling

Link to comment
Share on other sites

Are you sure? How often have you had to extend the uvm_sequencer? I can't imagine why I would want add anything to it.

Best Regards

Peter

Your sequences are uvm_objects that have no relationship to the component hierarchy. But, they have back pointers (m_sequencer & p_sequencer) that can root them into the hierarchy. You could put a register file, or an analysis port, or a configuration class--or anything really--in your sequencer, and then through these pointers your sequences can interact with the rest of the environment.

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