verilog vscode linux

安装 vscode 插件

插件:Verilog-HDL/SystemVerilog/Bluespec SystemVerilog

功能:.xdc .ucf .v 等代码高亮、代码格式化、语法检查(Linting)、光标放到变量上提示变量的信息等

关于其他语言的依赖工具等信息查看插件说明

代码对齐还是用自即的风格吧,插件提供的感觉还不太行

安装插件的依赖

复制代码
sudo apt install universal-ctags iverilog

verible-verilog-format:

https://github.com/chipsalliance/verible/releases/tag/ 里下载

verible-vxxx-linux-static-x86_64.tar.gz 这样的包,解压后改个名,放到某个位置,比如 /home/xiaguangbo/verible/bin/verible-verilog-format,要能找到 verible-verilog-format

配置插件

复制代码
Verilog › Ctags: Path
/usr/bin/ctags

格式化参数,多个参数使用一个空格隔开。
参考:https://umarcor.github.io/verible/verilog_format.html#:~:text=Tool%20for%20formatting%20Verilog%20and%20SystemVerilog%20code.%20Part,To%20pipe%20from%20stdin%2C%20use%20%27-%27%20as%20%3Cfile%3E.
Verilog › Formatting › Verible Verilog Formatter: Arguments
--indentation_spaces=4

Verilog › Formatting › Verible Verilog Formatter: Path
/home/xiaguangbo/verible/bin/verible-verilog-format

Verilog › Formatting › Verilog HDL: Formatter
verible-verilog-format

使用 IDE 生成的 ip 核的模块会报语法错误,这个来屏蔽掉,其他语法错误依然可提示
Verilog › Linting › Iverilog: Arguments
-i

Verilog › Linting: Linter
iverilog

使用

代码格式化:右键菜单里的 格式化文档

相关推荐
Johny_Zhao2 天前
centos7安装部署openclaw
linux·人工智能·信息安全·云计算·yum源·系统运维·openclaw
haibindev2 天前
在 Windows+WSL2 上部署 OpenClaw AI员工的实践与踩坑
linux·wsl2·openclaw
0xDevNull3 天前
Linux切换JDK版本详细教程
linux
进击的丸子3 天前
虹软人脸服务器版SDK(Linux/ARM Pro)多线程调用及性能优化
linux·数据库·后端
Johny_Zhao4 天前
OpenClaw安装部署教程
linux·人工智能·ai·云计算·系统运维·openclaw
chlk1236 天前
Linux文件权限完全图解:读懂 ls -l 和 chmod 755 背后的秘密
linux·操作系统
舒一笑6 天前
Ubuntu系统安装CodeX出现问题
linux·后端
改一下配置文件6 天前
Ubuntu24.04安装NVIDIA驱动完整指南(含Secure Boot解决方案)
linux
深紫色的三北六号6 天前
Linux 服务器磁盘扩容与目录迁移:rsync + bind mount 实现服务无感迁移(无需修改配置)
linux·扩容·服务迁移