当前位置: 首页 > news >正文

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=4Verilog › Formatting › Verible Verilog Formatter: Path
/home/xiaguangbo/verible/bin/verible-verilog-formatVerilog › Formatting › Verilog HDL: Formatter
verible-verilog-format使用 IDE 生成的 ip 核的模块会报语法错误,这个来屏蔽掉,其他语法错误依然可提示
Verilog › Linting › Iverilog: Arguments
-iVerilog › Linting: Linter
iverilog

使用

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

http://www.lryc.cn/news/209494.html

相关文章:

  • Postman日常操作
  • 10月份程序员书单推荐
  • 【ChatGPT系列】ChatGPT:创新工具还是失业威胁?
  • C++ 实现定时器的两种方法(线程定时和时间轮算法修改版)
  • 2023mathorcup大数据竞赛选题建议及思路
  • 部署vuepress项目到githubPage
  • ORACLE表空间说明及操作
  • vue使用Element-plus的Image预览时样式崩乱
  • 安装使用vcpkg的简易教程
  • 制作一个简单的C语言词法分析程序
  • Java项目中将MySQL改为8.0以上
  • 软考高项-计算题(2)
  • Centos使用war文件部署jenkins
  • 数据结构和算法——用C语言实现所有排序算法
  • 吃豆人C语言开发—Day2 需求分析 流程图 原型图
  • Nautilus Chain 联合香港数码港举办 BIG DEMO DAY活动,释放何信号?
  • 手写RPC框架
  • 音视频常见问题(六):视频黑边或放大
  • Android笔记(八):基于CameraX库结合Compose和传统视图组件PreviewView实现照相机画面预览和照相功能
  • 【每日一题Day361】LC2558从数量最多的堆取走礼物 | 大顶堆
  • 【psychopy】【脑与认知科学】认知过程中的面孔识别加工
  • File类的常用API
  • 02【Git分支的使用、Git回退、还原】
  • Qt文件 I/O 操作
  • Springboot 使用JavaMailSender发送邮件 + Excel附件
  • 软件工程——期末复习知识点汇总
  • postgresSQL 数据库本地创建表空间读取本地备份tar文件与SQL文件
  • Elasticsearch跨集群检索配置
  • 第九章 软件BUG和管理
  • 大厂面试题-Java并发编程基础篇(二)