bug - while parsing file included at

bug 如下

找到这个对应文件tb_top.sv的对应行,发现是一个 `include "inc_tb_tests_xxx.sv"

问题点:头文件,重复定义,那么

解决方法- 在被include的文件首尾加入

`ifndef MY_TRANSACTION__SV
`define MY_TRANSACTION__SV
 
//my_codes
 
`endif

类似的

`ifndef MY_TRANSACTION__V

`define MY_TRANSACTION__V

//my_codes
 
`endif

`ifndef MY_TRANSACTION__VH

`define MY_TRANSACTION__VH

//my_codes
 
`endif

报错消失

注意:所有要编译文件放在同一个文件夹中,且编译时在该文件夹中进行编译;

相关推荐

  1. bug 记录

    2024-07-12 01:52:05       50 阅读
  2. 普通<span style='color:red;'>BUG</span>

    普通BUG

    2024-07-12 01:52:05      49 阅读
  3. html--<span style='color:red;'>bug</span>

    html--bug

    2024-07-12 01:52:05      39 阅读
  4. Bug积累

    2024-07-12 01:52:05       32 阅读
  5. Bug汇总

    2024-07-12 01:52:05       20 阅读
  6. BUG:required a single bean, but 2 were found:

    2024-07-12 01:52:05       41 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2024-07-12 01:52:05       67 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2024-07-12 01:52:05       71 阅读
  3. 在Django里面运行非项目文件

    2024-07-12 01:52:05       58 阅读
  4. Python语言-面向对象

    2024-07-12 01:52:05       69 阅读

热门阅读

  1. 对素数的一种新理解

    2024-07-12 01:52:05       21 阅读
  2. 力扣 454四数相加

    2024-07-12 01:52:05       20 阅读
  3. 十大排序算法(慢慢更新)

    2024-07-12 01:52:05       22 阅读
  4. 简谈设计模式之建造者模式

    2024-07-12 01:52:05       18 阅读
  5. 力扣题解(乘积最大子数组)

    2024-07-12 01:52:05       23 阅读
  6. synchronized (userAccount.intern())知识点

    2024-07-12 01:52:05       23 阅读
  7. 网络协议与标准

    2024-07-12 01:52:05       24 阅读
  8. Haproxy搭建Web群集

    2024-07-12 01:52:05       23 阅读
  9. 24.6.30

    24.6.30

    2024-07-12 01:52:05      18 阅读
  10. 裸金属服务器适用于哪些场景?

    2024-07-12 01:52:05       19 阅读
  11. 如何理解李彦宏说的“不要卷模型,要卷应用”

    2024-07-12 01:52:05       22 阅读
  12. 【算法】字符串的排列

    2024-07-12 01:52:05       22 阅读