Home  >  Article  >  Development Tools  >  worth collecting! Sublime text3 verilog code writing advanced operations

worth collecting! Sublime text3 verilog code writing advanced operations

藏色散人
藏色散人forward
2021-01-11 14:54:493231browse

The following tutorial column of sublime will introduce to you the advanced operations of sublime text3 verilog code writing. I hope it will be helpful to friends in need!

worth collecting! Sublime text3 verilog code writing advanced operations

2018.10.21

I haven’t written a blog for a long time. During this time, I have been learning and settling. However, I found that the more I learn, the less I will learn. , we can only hurry up!

It has been almost a year and a half since the blogger came into contact with FPGA during the summer vacation of his freshman year, and time flies by. When I first started, I used the editor that comes with Quartus. Later, I switched to notepad to write code. The interface is better than the introduction of Quartus. Later or in the last few months, I started using gvim. When I first saw other people using it, I felt that it was a god-level operation. It was so awesome.

Let’s take a look at the big guy’s magic operation first

I believe you will also be surprised and admired. Of course, I have also learned that this shortcut command shortens time, reduces repetitive writing, and greatly improves writing efficiency. But I encountered a problem, gvim does not have keyword completion (thank you for correcting me, gvim keyword completion can be added in the configuration file, interested friends can try it) and selected are all bright, so for It's easy for me, a handicapped person, to make mistakes. Is there any reminder? In the final synthesis, everything is wrong. Isn't there such a perfect editor? Of course the answer is yes, and it is very powerful. Now let’s get to the point and follow me.

1. First go to the official website to download sublime text3 http://www.sublimetext.com/, and install it directly Just install it

2Install the Package Control plug-in, automatically manage and install the plug-in

Package Control is not installed by default, we need to install it manually:

Ctrl ~ Bring up the console and paste the following command in the console:

import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())

#  After the installation is completed, restart it3. Install the Chinese plug-in ctrl shift p pop up the search box and enter install,

Click Enter, wait a while and a box will pop up again, enter ChineseLocalizations, and then click Install. Then there is a language option in the last line of help in the menu bar. Just select Simplified Chinese.

4 The process of installing the verilog plug-in is the same as that of Chinese. Finally, enter verilog, select the first installation, and then in the menu bar View syntax, there are verilog options

So far, sublime has only implemented the function of notepad, and then it will implement the function of gvim

5. Install the shortcut plug-in,

链接:https://pan.baidu.com/s/1Szq3HfsvzpYP5Ophh_W9zA
提取码:whxb

下载这三个插件,解压到这个红色框的路径下,这个路径不是安装的路径,不管你装在那个盘,都会有这个路径,我是win7系统,其他系统没测试过,应该不会有太多出入,黄色框就是这三个插件,sublime会自动识别并添加这三个插件。绿色框里面存放了verilog快捷的片段代码

 打开这个文件如下,一个文件是一种片段功能,就如文件名一样,

 

选中第一个文件,邮件选择sublime打开。黄色框就是代码片段,红色框是快捷命令,白色框是生成代码片段后鼠标的位置。

 再如下图,${x}这个是鼠标位置,里面的数字是操作顺序,${1}是生成当前片段后鼠标自动跳到这个${1}位子,${1}位子编写完后可以按table键跳到${2}位置继续编写,以此类推。这是一个强大的功能。

 

6.完成后,来欣赏一下,大神级别的操作吧

 7.注册激活

菜单栏Help - Enter License输入下面注册码即可,如果失效,自己百度一下都有的

—– BEGIN LICENSE SJOLZY.CN —–
Alexey Plutalov
Single User License
EA7E-8607763DC19CC1 134CDF23 504DC871 2DE5CE55
585DC8A6 253BB0D9 637C87A2 D8D0BA85
AAE574AD BA7D6DA9 2B9773F2 324C5DEF
17830A4E FBCF9D1D 182406E9 F883EA87
E585BBA1 2538C270 E2E857C2 194283CA
7234FF9E D0392F93 1D16E021 F1914917
63909E12 203C0169 3F08FFC8 86D06EA8
73DDAEF0 AC559F30 A6A67947 B60104C6
—— END LICENSE ——

 总结:做FPGA开发很慢,为了提高工作效率,像这样的编写代码很爽,但是不适合入门就上手,如果你刚入门建议还是老实用开发软件自带的吧,一个一个的敲,熟悉关键字,一步一个脚印,把基础做扎实。还有这些快捷片段根据自己习惯修改。

sublime很强大,这只是一小部分,自己多百度有很多大陆等待发现。有大神需要补充的欢迎交流,也欢迎指出错误!!!!!

2018.11.19

1.更新两个主题插件

agila theme 和 boxy theme

预览一下界面效果,看着很舒服

 安装与上面的操作一样,在配色方案里面选择下图所示

这两个主题插件有很多效果,自己可是这配一下,适合自己才是最好的

 2.再补充几个快捷操作

1)鼠标中间  列操作

2)ctrl+shift+D  复制粘贴当前这行

The above is the detailed content of worth collecting! Sublime text3 verilog code writing advanced operations. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:cnblogs.com. If there is any infringement, please contact admin@php.cn delete