0
\$\begingroup\$

In my VHDL entity there is a generic that has integer value. I have written an assert statement to check its range. I believe that the assert statement will execute when the module is simulated and also when it is synthesized.

 assert (RAM_TYPE>=0 and RAM_TYPE<=2)
 report "RAM_TYPE outside range"
 severity failure;

I need to print the whole hierarchy name of the instance of this module if the assert statement fails. How can this be done in VHDL? I believe that the options change between VHDL-93 and VHDL-2008 but cannot say anymore.

asked Jun 15, 2024 at 16:58
\$\endgroup\$

1 Answer 1

0
\$\begingroup\$

VHDL contains the following attributes that can be used with a process and some other named segments of code:

’simple_name 
’instance_name
’path_name

These work in simulation but synthesis failed in Quartus. Thus, it seems that they are only meant for simulation. So the answer to the question is that, it is not possible.

answered Jun 21, 2024 at 18:59
\$\endgroup\$

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.