Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Can I use emacs to compile Verilog or SystemVerilog design?

Status
Not open for further replies.

Renjie

Newbie level 5
Newbie level 5
Joined
Dec 5, 2011
Messages
9
Helped
2
Reputation
4
Reaction score
2
Trophy points
1,283
Visit site
Activity points
1,359
Hi guys,

I've been learning emacs these days. Does anyone knows how to compile the design in emacs? Do I need to install any plugins?

Thank you so much!
 

Hi,


You can make Emacs start your simulator by putting this in .emacs (assuming you're using
verilog-mode):

(add-hook 'verilog-mode-hook
(lambda ()
(make-local-variable 'compile-command)
(setq compile-command "./trun --vcs +SST")))

Then I have
(global-set-key [f9] 'compile)

Whenever I hit F9 it will run the compile command. If I'm working on C
code that will be make. If I'm using verilog mode that will be "./trun --vcs +SST", e.g. a script to run my testbench and generate a signalscan dump file.
 

Could someone explain how to do this with Modelsim? Will it highlight compiler errors and warnings as well?

I guess I don't quite understand what the post above is doing.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top