作者zxvc (众生都是未来佛)
看板Electronics
标题[情报] A SystemVerilog Editor - SVEditor
时间Fri Jun 25 07:42:23 2010
SystemVerilog引入了许多object orient的概念,
我个人觉得很多很实用。
但之前一直找不到好用的SystemVerilog editor,
当程式写大时就会遇到麻烦。
例如:定义一个structure,如果它的members很多,
要记忆就很麻烦。如果有像许多C/C++ IDE能按个快速键就能
显示所有members多方便。
後来找到一套免费的SystemVerilog editor - SVEditor[1]。
它是一个Eclipse[2] plugin,所以在使用它之前要有Eclipse。
可以去[2]下载Eclipse IDE for C/C++ Developers。
然後再去[1]下载
sveditor-0.2.0.jar (0.2.0 Release Archive)
解压缩到Eclipse的安装目录就可以了。
SVEditor使用说明可以下载:
Getting Started with SVEditor v1.4.pdf
接着来试试SVEditor的Content Assist(类似C/C++ IDE的自动完成,
hotkey: Ctrl+Space)。
在Eclipse输入以下code:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
typedef struct packed {
logic [5:0] a;
logic [5:0] b;
} t;
module m;
t c;
c. // After typing "." character, invoking Content Assist by
// Ctrl+Space.
endmodule
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
这时我们会发现Content Assist会列出所有c的成员,
你只要选择你要的成员就可以了,不必记有哪些成员。
不过现在的SVEditor还很阳春,如果c是个IO port,Content Assist就会失效XD
我已回报这个bug,期待新版能解决这个问题。
References:
[1] SVEditor,
http://sveditor.sourceforge.net/
[2] Eclipse,
http://www.eclipse.org/
--
信佛的人要知道:佛绝不会说谎。但请把握时光。
法灭尽经:
http://www.cbeta.org/result/normal/T12/0396_001.htm
共勉之。
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 140.115.221.79