hp-saturn/run

25 lines
680 B
Text
Raw Normal View History

2019-02-04 09:59:35 +01:00
#!/bin/bash
2019-02-06 10:40:55 +01:00
#
# licence: GPLv3 or later
#
verilator -Wall -I. --top-module saturn_core -cc saturn_core.v hp48_bus.v hp48_io_ram.v hp48_rom.v bus_commands.v
2019-02-04 20:36:47 +01:00
VERILATOR_STATUS=$?
if [ "VERILATOR_STATUS" != "0" ]
then
echo "verilator fail"
2019-02-04 22:08:17 +01:00
#exit
2019-02-04 20:36:47 +01:00
fi
2019-02-04 09:59:35 +01:00
#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