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

使用

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

相关推荐
m0_694845571 小时前
教你使用服务器如何搭建数据库
linux·运维·服务器·数据库·云计算
老黄编程1 小时前
VSCode AI编程插件
ide·vscode·ai编程
空灵之海1 小时前
Ubuntu Server 22.04.5系统安装教程
linux·运维·ubuntu
gamers2 小时前
rock linux 9 安装mysql 5.7.44
linux·mysql·adb
雨声不在2 小时前
使用android studio分析cpu开销
android·ide·android studio
二进制_博客2 小时前
给CentOS的虚拟机扩容
linux·运维·centos
千钰v2 小时前
Tcpdump: The Basics Tcpdump 基础
linux·运维·网络·tcpdump·tryhackme
kk5792 小时前
【Ubuntu】sudo apt update出现E :仓库***没有Release文件
linux·运维·ubuntu
cellurw2 小时前
Linux下C语言实现HTTP+SQLite3电子元器件查询系统
linux·c语言·http
Naiva2 小时前
ESP32-C3 入门09:基于 ESP-IDF + LVGL + ST7789 的 1.54寸 WiFi 时钟(SquareLine Studio 移植)
ide·笔记·vscode