Vhdl 堆栈跟踪

问题描述 投票:0回答:1

是否可以在 VHDL 中获取堆栈跟踪信息?就像 Java 或类似的东西一样:

Thread.currentThread().getStackTrace();

如果有办法,那么如何将其打印到文件而不是控制台?

vhdl
1个回答
0
投票

您可以使用预定义的实体属性 PATH_NAME 打印实体的位置。例如

architecture rtl of ent is

begin

  assert(FALSE)
  report "Entity path = "&ent'path_name
  severity INFO;

end architecture;
© www.soinside.com 2019 - 2024. All rights reserved.