0

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

and

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?

Giacomo1968
  • 58,727

2 Answers2

0

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.

initial
 begin
  $dumpfile("wave.lxt");
  $dumpvars(0, <test bench module>);
 end

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.

Giacomo1968
  • 58,727
George
  • 103
  • 4
0

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:

Andy
  • 216