Editing your FPGA source

[Dave] noted that in a recent poll of FPGA developers, emacs was far and away the most popular VHDL and Verilog editor. There are a few reasons for this – namely, emacs comes with packages for editing your HDL of choice. For those of us not wanting to install (and learn) the emacs operating system, [Dave] got Notepad++ to work with these packages.

Notepad++ already has VHDL and Verilog highlighting along with other advanced text editor features, but [Dave] wanted templates, automated declarations and beautification. To do this, he used the FingerText to store code as snippets and call them up at the wave of a finger.

As [Dave] writes his code, the component declarations constantly need to be updated, and with the help of a Perl script [Dave] can update them with the click of a hotkey. Beautification is a harder nut to crack, as Notepad++ doesn’t even have a VHDL or Verilog beautifier plugin. This was accomplished by installing emacs and running the beautification process as a batch script. Nobody can have it all, but we’re thinking [Dave]‘s method of getting away from emacs is pretty neat.


  1. biozz says:

    i still need to get in to FPGA or CLPD design but i has no moneys for a dev board D8

  2. svofski says:

    what kind of money are you talking about? there are entry level fpga boards a plenty for like $50. that’s not free but it’s not really prohibitive.

  3. Alex says:

    Editing the “code” has never been a problem for me, it’s the synthesizers and bitstream generators and programmers and all that crap… AFAIK, each manufacturer has their own toolchain, and there are no friendly/open source/generic toolchains out there.

  4. Aaron says:

    I’m not going to start another editor-of-choice gunfight, but I couldn’t let this pass without comment:

    This was accomplished by installing emacs and running the beautification process as a batch script.

    That’s so ugly it’s practically Zen — I almost fell into my own navel just thinking about it.

    • mh says:

      I think its somewhat of a nice way of using the right tool for the job. if one is not fond of using emacs interactively, using it automated just for the task(s) is solves for you, seems to me, a good approach – even if it is in effect just to use one plugin that is not available otherwise.

  5. bbiandov says:

    Wait I though the whole point of using Notepad++ was to avoid using Emacs?

  6. Necromant says:

    Emacs is my choice, since verilog-mode has all the awesome /* AUTO */ stuff that saves a lot of time.

  7. sudobash1 says:

    I can’t believe it! A webpage mentioning Emacs without someone promoting *** in the comments. *** isn’t even mentioned. Is the greatest ever flame-war dieing down? ;)

  8. Leif says:

    Not using Emacs when you write your VHDL? I suppose you don’t eat the fruit filling when you have Apple Pie either!

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


Get every new post delivered to your Inbox.

Join 96,704 other followers