ASIC/FPGA  Design and Verification Out Source Services 
VPI memory model
compilation script for icarus.
- 
The following simple script is used to compile the assorted 
files (verilog and c).
The commands are:c compile followed by verilog compile followed by 
simulation run. If any command fails, the script exits.
#!/bin/bash
rm $1.vvp *.vcd
iverilog-vpi $1.c || exit
iverilog -o$1.vvp tb_1.v $1.v || exit
vvp -M. -m$1 $1.vvp || exit
 
- 
To go to the main page of this project: main 
 
 
 |