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

报错消失

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

相关推荐
e***98577 小时前
Bug悬案侦破大会:高效解决技术难题
bug
f***24118 小时前
Bug悬案侦破:技术团队的破案指南
bug
Lxinccode8 小时前
BUG(20) : response.text耗时很久, linux耗时十几秒, Windows耗时零点几秒
python·bug·requests·response.text·response.text慢
深念Y10 小时前
夸克网盘 应用程序无法启动,因为应用程序的并行配置不正确。有关详细信息,请参阅应用程序事件日志,或使用命令行sxstrace.exe 工具。
windows·bug·报错·系统·更新·网盘·夸克
万粉变现经纪人13 小时前
如何解决 pip install mysqlclient 报错 ‘mysql_config’ not found 问题
数据库·python·mysql·pycharm·bug·pandas·pip
f***241113 小时前
Bug悬案:技术侦探的破案指南
算法·bug
前端大波15 小时前
avue-crud 操作列透明 bug
bug
hui函数2 天前
Python系列Bug修复|如何解决 pip install 安装报错 invalid command ‘bdist_wheel’(缺少 wheel)问题
python·bug·pip
hui函数2 天前
Python系列Bug修复|如何解决 pip install -r requirements.txt 私有索引未设为 trusted-host 导致拒绝 问题
python·bug·pip
hui函数2 天前
Python系列Bug修复|如何解决 pip install 安装报错 Backend ‘setuptools.build_meta’ 不可用 问题
python·bug·pip