Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hierarchical signal probing in VHDL

Status
Not open for further replies.

maxnil

Programmer
Jun 21, 2004
1
FR
Is there any way in VHDL to 'probe' a local signal that is located in a sub block at a lower level in the design hierarchy? In Verilog you can write:
assign kalle = top_block.sub_block_a.sub_block_b.signal_x if you whant to 'look' at 'signal_x' that is in 'sub_block_b'.
 
seems to me like you can, but I forget how.

I know there is an attribute called 'simple name to return a signal name with no library declaration etc.

according to ashendon library.package_name.constant_name'simple_name
will return "constant_name"
but I am unsure if this only works for packages, or constants or what.

In any event it doesn't take into account the design heirarchy so it surely can't work for multiple instantiations.

there is also an attribute called 'path_name which returns the heirarchy path to a location. useful in reports so that you can tell what caused the error. These path's return with colon seperators, so you could try that.

try using the 'path in a report and then copy the result to see if you can access signals that way.

--
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top