Jump to content
Sign in to follow this  
ManMe

Analysis port in user callback class

Recommended Posts

Is it possible to implement analysis port in user call back class? or is it possible to implement only in component derived from uvm_component?

Edited by ManMe

Share this post


Link to post
Share on other sites

uvm_analysis_imp requires that the implementation be a component, but uvm_analysis_port can be instantiated outside of a component:

uvm_analysis_port #( my_obj ) myport = new( "myport", null );

It might make debugging more difficult, but the port functionality doesn't require it.

Share this post


Link to post
Share on other sites

While it is possible to instantiate an analysis_port outside of a component, as jadec shows, it's not recommended. Perhaps if you could describe what you're ultimately trying to achieve, we might be able to suggest a better alternative.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×