当前位置:网站首页>C1--Vivado配置VS Code文本编辑器环境2022-07-21
C1--Vivado配置VS Code文本编辑器环境2022-07-21
2022-07-23 05:06:00 【晓晓暮雨潇潇】
vivado自带的编辑器具有自动语法规则检查,字体设置,颜色配置等功能。但在实际编写代码的过程中,发现诸多不足,例如无法放大缩小,对齐功能不好用等缺点。文本编辑器有很多选择,例如Notepad、Sublime Text、VS Code等,选择一款适合自己的编辑器,有助于养成自己的代码风格并为FPGA开发提供极大方便。下面以VS Code为例,介绍如何配置文本编辑器。
1.安装VS Code
访问VS Code官网下载软件并且提供了使用说明,安装步骤按照如下勾选即可。(中间省略了选择路径和点击安装的简单步骤)


2.汉化VS Code
①安装汉化包插件,如下图所示。单击左侧工具栏的 extensions 或者使用快捷键【Ctrl+Shift+X】,输入 chinese,点击 Install 安装中文简体。


②配置VS Code语言包
使用快捷键【Ctrl+Shift+P】弹出查找命令框,输入 language, 找到 Configure
Display Language,点击,选择 locale 属性为"zh-CN",如下图所示。



③重启软件,汉化环境已经就位。

3.安装verilog语法高亮插件
①插件库中搜索verilog,点击红色框中的安装按钮(若未安装,将显示安装字样)

②在该插件的介绍中看到建议安装ctags-win32插件,单击下图所示绿色链接即可下载。

③下载并解压到指定路径,按照如下步骤,在vscode中指定ctags.exe的路径。


4.安装iverilog语法检测工具
①访问iverilog官网下载Icarus Verilog

②安装过程中勾选(其余步骤省略)


注:杀毒软件可能会导致添加环境变量不成功,若未添加成功,可以手动添加即可。
C:\xxxxx\iverilog\bin (xxxxx 根据自己目录选择)
C:\xxxxx\iverilog\gtkwave\bin (xxxxx 根据自己目录选择)
③打开CMD窗口,输入iverilog出现下图信息即为安装成功。

④打开已安装的语法高亮插件,在扩展设置中进行如下两个配置,即完成iverilog的配置

5.VS Code与Vivado设置关联
①打开vivado,单击tools-->选择settings

②单击"text editor",单击"箭头",选择"Custom Editor"进行自定义编辑器设置,然后单击省略号,配置编辑器的路径。

③双引号之内为编辑器的安装路径,其余部分照着写就ok。

6.其他
①实际使用时,常常发现在vs或者notepad下编写的代码的中文注释在vivado编辑器中乱码,这是因为编码的问题,vs与notepad都是默认是UTF-8编码,vivado并不支持这一编码,因此在保存.v文件时,使用ANSI或者GBK编码保存即可解决这个问题。

②同时按住鼠标滚轮加右键可以实现竖行选择,这非常方便。
边栏推荐
- XSSGAME小游戏(XSS学习)level1-15
- Redis源码与设计剖析 -- 11.哈希对象
- 【Unity日常Bug】Unity报错Unexpected character ‘‘
- ROS2的topic pub 指令出现:Failed to populate field: ‘Vector3‘ object has no attribute ‘x:1‘错误
- 单点登录-认证服务器与客户端的session过期时间如何统一
- 又更新了, IDEA 2022.2 正式发布
- 0 basic career change software test, the necessary skills with a monthly salary of 6000 and 11000 are quite different
- Error reporting when installing opencv in Anaconda virtual environment
- 软件测试基础篇—测试用例的设计方法
- Figure 8 sequence of crystal head connection of network cable
猜你喜欢

An analysis of the CPU explosion of an intelligent transportation background service in.Net

Optimization Net application CPU and memory 11 practices

linux:数据库连接

Li Nan, CTO of Yunqian Technology: technology and technical people, coevolution with digitalization

SVG, canvas, drawing line segments and filling polygon, rectangle, curve drawing and filling

Redis源码与设计剖析 -- 11.哈希对象

C language n battle -- linked list (IX)

Kubernetes技术与架构(六)

Deploy metersphere

Reading the thesis "sentence embeddings using Siamese Bert networks"
随机推荐
mysql log理解
UNITY VFX syntax error: unexpected token ‘#‘ at kernel CSMain
12 个适合做外包项目的开源后台管理系统
SVG、canvas、绘制线段和填充多边形、矩形、曲线的绘制和填充
300 题 第六讲 二次型
Redis源码与设计剖析 -- 11.哈希对象
HBV parameter extraction and fitting [draft]
A case study on the collaborative management of medical enterprise suppliers, hospitals, patients and other parties by building a low code platform
C language n battle -- structure (VII)
Redis源码与设计剖析 -- 7.快速列表
Mysql的索引为什么用的是B+树?
Selenium JD crawler
Notes and Thoughts on the red dust of the sky (III) as long as the conditions are sufficient, the results will come naturally
[visual slam] orb slam: tracking and mapping recognizable features
软件测试基础篇—测试用例的设计方法
JMeter record the BeanShell written into excel instance caused by an automatic data generation
The wave of the meta universe is shocking. Seize the opportunity and work together
Exciting metauniverse! Wealth outlet of next generation Internet
IO应知应会
Redis源码与设计剖析 -- 13.有序集合对象