Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当我在 VHDL 中使用报告语句时,我希望字符串输出依赖于我可以在实例化级别声明的泛型。我可以以及如何做到这一点?让我们说一个疯狂的例子,在我放置的实体中:
generic ( blah : string :="happy");
...
然后我在架构中:
report "my mood is: " <blah> severity warning;
我知道这不起作用,那么如何将泛型作为报告输出的一部分?
您需要使用以下方式连接字符串&:
&
report "my mood is " & blah severity warning;