help with UDP instance

J

Jason Zheng

Guest
Does anyone know how to reference an anonymous UDP instance? For
example, in xilinx's primsim's library, the X_FF module contains the
following line:

ffsrce (O, CLK, I, CE, SET, RST, notifier);

where ffsrce is the name of the UDP, but no instance name is given. I
need to access a register inside the ffsrce instance (the actual
register bit), but I don't know how to reference that UDP in my
testbench. Does anyone have a clue?

thanks,

jz
 
Jason Zheng wrote:
Does anyone know how to reference an anonymous UDP instance?
I think the answer is that you can't.

Even if the UDP had a name, it is not legal to reference down into it
with a hierarchical name. The LRM does not list UDPs as legal scopes
for hierarchical names. It is possible that some tools might allow
references into them anyway, but that would be nonstandard. If the
standard had allowed referencing down into them, it probably would have
required them to have names, to make sure you could.

Just because the output declaration of a sequential UDP uses the same
syntax as an output reg port of a module does not necessarily mean that
you can treat it like one.
 
If you are using a tool that allows references down into named UDP
instances, it is possible that it provides a way of referencing down
into anonymous instances. For example, it might attach a special
compiler-generated name to them. But since this would be a
non-standard feature, any answer would be specific to the tool you are
using.
 

Welcome to EDABoard.com

Sponsor

Back
Top