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

使用

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

相关推荐
喂自己代言6 小时前
VS Code中提升效率的实用快捷键(中英双语版)
vscode
s***46986 小时前
linux 设置tomcat开机启动
linux·运维·tomcat
xu_yule7 小时前
网络和Linux网络-3(套接字编程)TCP网络通信代码
linux·网络·tcp/ip
爱吃泡芙的小白白7 小时前
vscode、anaconda、git、python配置安装(自用)
ide·git·vscode·python·anaconda·学习记录
HalvmånEver8 小时前
Linux:进程的切换与调度(进程四)
linux·运维·服务器
LCG元9 小时前
终端里的"黑客帝国":htop, glances, bpytop 系统监控工具横评
linux
L***B5689 小时前
如何安装linux版本的node.js
linux·运维·node.js
LCG元9 小时前
终极武器:用 systemd 管理你的自定义应用服务(附配置文件)
linux
脏脏a10 小时前
【Linux】Linux进程状态深度解析
linux·运维·服务器
凉晓风10 小时前
Linux中常见几种自启动方式的区别
linux·运维·服务器