hp-saturn/run
2019-02-04 20:36:47 +01:00

21 lines
568 B
Bash
Executable file

#!/bin/bash
verilator -Wall -cc saturn_core.v
VERILATOR_STATUS=$?
if [ "VERILATOR_STATUS" != "0" ]
then
echo "verilator fail"
exit
fi
#iverilog -v -Wall -DSIM -o mask_gen_tb mask_gen.v
iverilog -v -Wall -DSIM -o rom_tb saturn_core.v
IVERILOG_STATUS=$?
#./mask_gen_tb
echo "--------------------------------------------------------------------"
echo "IVERILOG_STATUS ${IVERILOG_STATUS}"
echo "--------------------------------------------------------------------"
if [ "${IVERILOG_STATUS}" = "0" ]
then
./rom_tb
fi
#vvp mask_gen_tb -lxt2
#gtkwave output.vcd