Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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?

share|improve this question

migrated from stackoverflow.com Mar 21 '11 at 7:08

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

1  
Does iverilog exist and are you trying to execute it from that path? –  Adam12 Mar 20 '11 at 22:31
3  
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
add comment

2 Answers 2

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.

share|improve this answer
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.