当前位置:网站首页>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.
边栏推荐
- 软件测试的方法
- Certik released the defi security report in 2021, disclosing key data of industry development (PDF download link attached)
- Yyds dry goods inventory software encryption lock function
- tmall.product.schema.get( 产品信息获取schema获取 ),淘宝店铺上传商品API接口,淘宝商品发布接口,淘宝商品上传API接口,店铺上传接口,oAuth2.0接口
- Use of freemaker
- YOLOv3&YOLOv5输出结果说明
- Methods of software testing
- Available solution development oral arithmetic training machine / math treasure / children's oral arithmetic treasure / intelligent math treasure LCD LCD driver ic-vk1622 (lqfp64 package), original te
- <口算练习机 方案开发原理图>口算练习机/口算宝/儿童数学宝/儿童计算器 LCD液晶显示驱动IC-VK1621B,提供技术支持
- QT new project
猜你喜欢
Design and implementation of car query system based on php+mysql
<口算練習機 方案開發原理圖>口算練習機/口算寶/兒童數學寶/兒童計算器 LCD液晶顯示驅動IC-VK1621B,提供技術支持
快解析:轻松实现共享上网
STM32 library function for GPIO initialization
A white hole formed by antineutrons produced by particle accelerators
【空间&单细胞组学】第1期:单细胞结合空间转录组研究PDAC肿瘤微环境
QT new project
HMS core machine learning service helps zaful users to shop conveniently
由粒子加速器产生的反中子形成的白洞
taobao.trade.memo.add( 对一笔交易添加备注 )接口,淘宝店铺插旗接口,淘宝订单插旗API接口,oAuth2.0接口
随机推荐
QT new project
Yolov3 & yolov5 output result description
数据库连接池和数据源
每日学习2
Daily learning 3
天猫商品详情接口(APP,H5端)
Solve the problem that openocd fails to burn STM32 and cannot connect through SWD
Fabric. Keep the original level when JS element is selected
[QNX Hypervisor 2.2用户手册]6.3 Guest与外部之间通信
fatal: unsafe repository is owned by someone else 的解决方法
Fabric. JS zoom canvas
STM32 standard firmware library function name memory (II)
Development and design of animation surrounding mall sales website based on php+mysql
< schéma de développement de la machine d'exercice oral > machine d'exercice oral / trésor d'exercice oral / trésor de mathématiques pour enfants / lecteur LCD de calculatrice pour enfants IC - vk1621
Method of creating linked server for cross server data access
Teamtalk source code analysis win client
删除元素(带过渡动画)
线性dp求解 最长子序列 —— 小题三则
Fabric.js 橡皮擦的用法(包含恢复功能)
检查密码