Quantcast
Channel: UVM Forums RSS Feed
Viewing all articles
Browse latest Browse all 756

default input values for interfaces (for no-connects). to avoid warnings

$
0
0
May a module or interface have default 'no-connect'  port connections, for ports that we don't need to connect?
 
I need to use an interface which is shared between testbenches. I instantiate it a lot and don't use many of the ports (i.e. they can be 'no connects')
Using Cadence irun, I get this warning when I don't connect inputs to the interface:  ncelab: *W,CUVWSI 
 
With tasks/functions, I can have a default value for an input argument.  Is there anything similar for interfaces (or modules for that matter)?
 
Rather than creating a bunch of dummy inputs for these ports that are not relevant to me, I'd like to change the interface somehow to clear up the warnings for cases where I don't want to use them.
 
 
trying to clean up some warnings,
thanks
 
 
Note: the interface inputs mentioned are being used for a small piece of internal control logic in the interface.   I suppose someone might suggest using parameterized interfaces.  I don't recall offhand, but believe there is a reason that we are not using a parameterized interface for this.  I'll have to check with the original developer.

Viewing all articles
Browse latest Browse all 756

Trending Articles