quick.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

   

space.gif

   

space.gif

  ../images/main/bullet_green_ball.gif Writing Makefile for simulation

For writing makefile for the simulation is nothing different from writing make file for compiling C or C++ files. One big advantage of the Verilog compilers over the gcc is that, Verilog compilers like VCS and NCverilog seem to keep track of if the file really was modified or not, thus does not recompile it and thus saves compile time.

   

space.gif

  ../images/main/bulllet_4dots_orange.gif Simple Makefile

Below is simple example for a Verilog simulation compile Makefile.

   

space.gif

SRC_FILE = counter.v counter_tb.v

COM = vcs

COM_OPTS = -Mupdate -debug

   

space.gif

com : counter.v counter_tb.v

$(COM) $(COM_OPTS) $(SRC_FILE)

   

space.gif

sim : simv

simv

   

space.gif

clean :

@rm -rf simv csrc *.vcd

   

space.gif

   

space.gif

   

space.gif

   

space.gif

space2.gif

space2.gif

space2.gif

space2.gif

space2.gif

  

Copyright © 1998-2014

Deepak Kumar Tala - All rights reserved

Do you have any Comment? mail me at:deepak@asic-world.com