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 小时前
冒险岛079 V8 整合版源码搭建教程+IDEA启动
java·ide·intellij-idea
IT_张三7 小时前
Ubuntu Linux运维实战指南4_文件系统基础知识
linux·运维·ubuntu
艾斯比的日常8 小时前
VSCode 实用快捷键
ide·vscode·编辑器
wangjun51598 小时前
linux redis ipv6、ipv4 只接收本地访问、接收本地和远程访问
linux·运维·服务器
Galaxy_12298 小时前
vscode远程报错:Remote host key has changed,...
ide·vscode·编辑器
彬sir哥8 小时前
VScode运行后出现黑窗口
vscode·运行·黑窗口
eaglesstone8 小时前
centos 9 时间同步服务
linux·运维·centos
信阳农夫8 小时前
linux中yum是干啥的?
linux·运维·服务器
YH_DevJourney8 小时前
Linux-C/C++《C/7、字符串处理》(字符串输入/输出、C 库中提供的字符串处理函数、正则表达式等)
linux·c语言·c++
huosenbulusi9 小时前
Linux多版本管理工具介绍
linux·运维·服务器