When I use the report statement in VHDL, I want the string output to depend on a generic which I can declare at instantiation level. Can and how do I do this? Let's say as a crazy example, in the entity I put:
generic ( blah : string :="happy");
...
then later I have in the architecture:
report "my mood is: " <blah> severity warning;
I know this doesn't work, so how do I have the generic as part of the report output?
您需要使用&
连接字符串:
report "my mood is " & blah severity warning;
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.