UVM_INFO中数字的含义是什么?

huangapple go评论60阅读模式
英文:

What is the meaning of numbers in UVM_INFO?

问题

以下是已翻译的部分:

以下消息来自通过运行 QuestaSim 模拟 dut 创建的转录文件。数字 39 代表什么?

UVM_INFO /home/Icer/nocc/noc-router/vips/hermes_pkg/src/hermes_agent.sv(39)
        @ 0: uvm_test_top.env.agent_master_0 [agent] PORT number: 0

为了更好地理解 UVM 序列的机制,我试图通过理解日志文件来弄清楚。

英文:

The following message is from a transcript file created by running QuestaSim to simulate dut. What does the number 39 mean?

UVM_INFO /home/Icer/nocc/noc-router/vips/hermes_pkg/src/hermes_agent.sv(39)
        @ 0: uvm_test_top.env.agent_master_0 [agent] PORT number: 0

In order to better understand the mechanism of the UVM sequence, I try to figure it out by understanding the log file.

答案1

得分: 0

括号中的数字,39,表示在hermes_agent.sv源代码文件中记录消息的行号。在该文件的第39行,您可能会看到一个 `uvm_info()调用。

在UVM库源代码中, `uvm_info()有以下行:

   uvm_report_info (ID, MSG, VERBOSITY, `uvm_file, `uvm_line); \

其中

`define uvm_line `__LINE__

请参考IEEE Std 1800-2017,第22.13节 `__FILE__和`__LINE__

`__LINE__扩展为当前输入行号,以简单的十进制数形式呈现。

另请参见:uvm_info

英文:

The number in the parentheses immediately after the file name, 39, indicates the line number in the hermes_agent.sv source code file where the log message originates. On line 39 of that file, you likely have a `uvm_info() call.

In the UVM library source code, `uvm_info() has this line:

   uvm_report_info (ID, MSG, VERBOSITY, `uvm_file, `uvm_line); \

where

`define uvm_line `__LINE__

Refer to IEEE Std 1800-2017, section 22.13 `__FILE__ and `__LINE__ :

`__LINE__ expands to the current input line number, 
in the form of a simple decimal number.

See also: uvm_info

huangapple
  • 本文由 发表于 2023年7月23日 16:58:24
  • 转载请务必保留本文链接:https://go.coder-hub.com/76747399.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定