当前位置:网站首页>Xilinx Vivado set *. svh as SystemVerilog Header
Xilinx Vivado set *. svh as SystemVerilog Header
2022-07-02 14:34:00 【Ayka】
Xilinx Vivado does not support setting the file type of a file as SystemVerilog Header till now (version 2021.2.1). This article assumes using "Vivado" Syntax Checking for Xilinx Vivado Text Editor.
Import *.svh files to Design Sources, where their hierarchy layer is "Non-module Files". In "Sources" sub-window, right-click the .svh files,and click "Set Global Include". After that, *.svh files are appeared in "Global Include" hierarchy layer:

The default file type of these *.svh files is "Verilog Header", so if these *.svh files contain syntaxes that are not Verilog-only, then the syntax checking of Vivado Text Editor will show syntax errors. However, if you set their file type as "SystemVerilog", then the syntax checking will throw no errors for design sources, but throw syntax errors for simulation sources still. Nevertheless, they can both do successful simulations. Obviously, it is a bug of Vivado's syntax checking. If you really do not like the wrong buggy syntax checking, you can try switching file types and doing simulations, then the bug may disappear.
If you add
`include "sys_defs.svh"at the beginning of the simulation sources and the file type of these *.svh files is "Verilog Header", the syntax checking will throw the warning "Warning: cannot open include file 'sys_defs.svh' ", and syntax errors same as the case without the include statement. If the file type of these *.svh files is "SystemVerilog", then the syntax errors are the same as the case that the file type of these *.svh files is "Verilog Header", but the simulation will fail:
ERROR: [VRFC 10-3195] cannot open include file 'sys_defs.svh' [F:/Documents/GitHub/ECE4700J_SU2022/Lab4/project-v-open-beta-For-ECE4700J/optimization/testbench/mem.sv:1]
INFO: [VRFC 10-311] analyzing module mem
ERROR: [VRFC 10-2865] module 'mem' ignored due to previous errors [F:/Documents/GitHub/ECE4700J_SU2022/Lab4/project-v-open-beta-For-ECE4700J/optimization/testbench/mem.sv:18]
and
ERROR: [USF-XSim-62] 'compile' step failed with error(s). Please check the Tcl console output or 'F:/Documents/GitHub/ECE4700J_SU2022/Lab4/lab_4/lab_4.sim/sim_1/behav/xsim/xvlog.log' file for more information.
ERROR: [Vivado 12-4473] Detected error while running simulation. Please correct the issue and retry this operation.
launch_simulation: Time (s): cpu = 00:00:01 ; elapsed = 00:00:07 . Memory (MB): peak = 1551.020 ; gain = 0.000
ERROR: [Common 17-39] 'launch_simulation' failed due to earlier errors.
so do not do that. In brief, do not use any "include" statements.
边栏推荐
- 2. Const pointer
- Daily learning 2
- QT new project
- Makefile 分隔文件名与后缀
- 求轮廓最大内接圆
- 腾讯云 TStor 统一存储通过信通院首批文件存储基础能力评测
- 每天坚持20分钟go的基础二
- Borui data integrated intelligent observable platform was selected into the "Yunyuan production catalogue" of China Academy of communications in 2022
- Contrôleur pour threejs cube Space Basic Controller + Inertial Control + Flight Control
- Development and design of animation surrounding mall sales website based on php+mysql
猜你喜欢

QT new project

Development and design of animation surrounding mall sales website based on php+mysql

没有从远程服务器‘‘映射到本地用户‘(null)/sa‘的远程用户‘sa‘及服务主密码解密错误的解决办法

Tip: SQL Server blocked the state 'openrowset/opendatasource' of component 'ad hoc distributed queries'

Custom events, global event bus, message subscription and publishing, $nexttick

The most complete analysis of Flink frame window function

Pycharm连接远程服务器

博睿数据一体化智能可观测平台入选中国信通院2022年“云原生产品名录”

途家木鸟美团夏日折扣对垒,门槛低就一定香吗?

Method of creating linked server for cross server data access
随机推荐
TeamTalk源码分析之win-client
Fabric. JS manual bold text iText
每日学习3
Chapter 9: xshell free version installation
Chinese science and technology from the Winter Olympics (III): the awakening and evolution of digital people
Tencent cloud tstor unified storage passed the evaluation of the first batch of basic file storage capabilities of the ICT Institute
YOLOv3&YOLOv5输出结果说明
MQ教程 | Exchange(交换机)
QT new project
腾讯云 TStor 统一存储通过信通院首批文件存储基础能力评测
The most complete analysis of Flink frame window function
mongodb的认识
Teamtalk source code analysis win client
<口算練習機 方案開發原理圖>口算練習機/口算寶/兒童數學寶/兒童計算器 LCD液晶顯示驅動IC-VK1621B,提供技術支持
NLA自然语言分析实现数据分析零门槛
taobao.trade.get( 获取单笔交易的部分信息),淘宝店铺订单接口,淘宝oAuth2.0接口,淘宝R2接口代码对接分享
docker mysql
Advanced usage of C language -- function pointer: callback function; Conversion table
字符串匹配问题
4. Array pointer and pointer array