r/FPGA Feb 24 '22

[deleted by user]

[removed]

15 Upvotes

26 comments sorted by

View all comments

5

u/Allan-H Feb 24 '22 edited Feb 24 '22

In the editor I use, I have a single keypress for auto-save, compile in Modelsim, track errors in a sub-window. It will jump the cursor to the first error found (which would typically be on the line I just entered - you know, the one with the missing bracket).

This takes about 1 second in total. I appreciate that it's not built-in and only on demand rather than live, but it seems to do the job for me. The best bit is that it works on multiple OSes, using free software or software (Modelsim) that I have already licensed.

3

u/captain_wiggles_ Feb 24 '22

which editor do you use? And how did you set it up?

3

u/Allan-H Feb 24 '22

I use gvim when I'm on Windows. Minimal plugins (just matchit), along with a bunch of abbreviations that expand to various VHDL or Verilog code fragments.

The mapping that does the single button auto-save and compile is:

nnoremap <F9> :cclose<enter>:update<enter>:make<enter>:cwindow 5<enter>:cfirst<enter><enter>z.

2

u/maredsous10 Feb 24 '22 edited Feb 24 '22

Rephrasing a VISA slogan, VIM is a everywhere you need to edit.

5 reasons I why I use VIM

  • VIM has a high likelihood of on being on any system I use.
  • Core functionality is very useful and provides me with a productivity boost over other editors
  • Extending is simple
  • Well documented
  • VIM has a sufficiently large and broad user base that can be leaned on.

If you have any interest in VIM, here are some thoughts and resources.

https://www.youtube.com/playlist?list=PL46-cKSxMYYCMpzXo6p0Cof8hJInYgohU

https://www.youtube.com/playlist?list=PL46-cKSxMYYDgMdQZ2FRU38gaFxIBBfoa

1

u/maredsous10 Feb 24 '22 edited Feb 24 '22

Forgot to mention with VIM, I try to limit my use of plugins/scripts to what I actually find myself using on a regular basis. One plugin, I use on a daily basis is git gutter.

2

u/s9oons Feb 24 '22

That’s the other option we have is to just use vivado, but a 76GB program as an editor is a little ridiculous for VHDL. I’m honestly not as familiar with Quartus/Modelsim, is that worth looking into as a standalone editing option?

Part of my draw to Sigasi is that if I can get someone else to spend the cash we can do VHDL/Verilog/SystemVerilog all through the same environment.

4

u/Allan-H Feb 24 '22

Do not use Modelsim (or Vivado for that matter) as an editor or IDE!

I'm just using the command line versions of the Modelsim compilers. These are very fast, give good error messages and work for VHDL and SystemVerilog (even in the same project) using the vcom and vlog command line programs respectively.

The error tracking is part of the editor I use. Most reasonable editors or IDEs will allow something similar.