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

使用

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

相关推荐
郝亚军14 分钟前
ubuntu通过samba,让win11可以访问其共享文件夹
linux·服务器·ubuntu
一个人旅程~30 分钟前
旧电脑的“拯救者”?Linux Mint20.3是怎样适配软件硬件以及兼顾兼容与性能的平衡的?
linux·经验分享·电脑
小夏子_riotous1 小时前
Docker学习路径——3、常用命令
linux·运维·服务器·学习·docker·容器·centos
其实防守也摸鱼2 小时前
无线网络安全---WLAN相关安全工具--kali(理论附题目)
linux·安全·web安全·学习笔记·kali·命令模式·wlan
dLYG DUMS3 小时前
vscode配置django环境并创建django项目(全图文操作)
vscode·django·sqlite
uesowys3 小时前
CentOS Linux安装部署OpenClaw
linux·centos·安装部署openclaw
IMPYLH3 小时前
Linux 的 rm 命令
linux·运维·服务器·网络·bash
YIN_尹3 小时前
【Linux系统编程】进程地址空间
linux·c++
代码中介商5 小时前
手把手教你Linux 打包压缩与 gcc 编译详解
linux·运维·服务器·编译·打包·压缩
longerxin20205 小时前
阿里云AlmaLinux操作系统允许root登录配置步骤
linux·服务器·阿里云