Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to simulate verilog on my Macbook Pro for school. I've tried downloading, configuring, and installing icarus and veriwell. The make test works for icarus, but not for veriwell, neither of them are recognized by the terminal.

The command I'm using is:

iverilog hello.vl


veriwell hello.vl

Terminal claims that neither of these commands exist...

I'm very new at configuring tools with the terminal, but I think the issue is just USING the program afterwards. Any ideas?

share|improve this question

migrated from Mar 21 '11 at 7:08

This question came from our site for professional and enthusiast programmers.

Does iverilog exist and are you trying to execute it from that path? – Adam12 Mar 20 '11 at 22:31
Not sure why this was moved from stackoverflow, there are other stackoverflow questions relating to setting up tools. – George Mar 21 '11 at 12:09

I've not tried veriwell but I use Icarus and GTKWave for a verilog simulation environment.

I use the verilog mode in Aquamacs as a syntax highlighting editor.

Take your hello.vl (using just .v is more usual) and compile it using

iverilog -o hello hello.vl

This will create an object file called hello. To execute it, type

vpp hello

Once you start writing test benches, you will want to dump out a wave file. You do that by adding this to your test bench.

  $dumpvars(0, <test bench module>);

You can then load the wave.lxt into GTKWave (note that you need X11 to use GTKWave).

A little more advanced, you can set up Aquamacs to use Icarus to compile your code, so that you know if you have a compile error before leaving the editor.

share|improve this answer

Did you do a make install? Assuming so, make sure that the directory it installed to is in your $PATH. If you are running csh/tcsh, you may need to run the rehash command for the shell to find new programs in the path.

Here are two similar questions:

share|improve this answer

You must log in to answer this question.