2019-02-04 09:59:35 +01:00
|
|
|
#!/bin/bash
|
2019-02-06 10:40:55 +01:00
|
|
|
#
|
|
|
|
# licence: GPLv3 or later
|
|
|
|
#
|
2019-02-12 11:22:55 +01:00
|
|
|
# verilator -Wall -I. --top-module saturn_core -cc saturn-core.v hp48_bus.v hp48_io_ram.v hp48_rom.v bus_commands.v
|
|
|
|
# VERILATOR_STATUS=$?
|
|
|
|
# if [ "VERILATOR_STATUS" != "0" ]
|
|
|
|
# then
|
|
|
|
# echo "verilator fail"
|
|
|
|
# #exit
|
|
|
|
# fi
|
2019-02-04 09:59:35 +01:00
|
|
|
#iverilog -v -Wall -DSIM -o mask_gen_tb mask_gen.v
|
2019-02-24 23:30:57 +01:00
|
|
|
iverilog -v -Wall -DSIM -o z_saturn_test.iv -s saturn_top \
|
2019-03-04 14:40:31 +01:00
|
|
|
saturn_top.v saturn_serial.v \
|
2019-02-24 23:30:57 +01:00
|
|
|
saturn_bus.v saturn_hp48gx_rom.v \
|
2019-03-02 13:22:09 +01:00
|
|
|
saturn_bus_controller.v saturn_debugger.v \
|
2019-03-03 09:33:42 +01:00
|
|
|
saturn_control_unit.v saturn_inst_decoder.v \
|
|
|
|
saturn_regs_pc_rstk.v
|
2019-02-04 09:59:35 +01:00
|
|
|
IVERILOG_STATUS=$?
|
|
|
|
#./mask_gen_tb
|
|
|
|
echo "--------------------------------------------------------------------"
|
|
|
|
echo "IVERILOG_STATUS ${IVERILOG_STATUS}"
|
|
|
|
echo "--------------------------------------------------------------------"
|
|
|
|
if [ "${IVERILOG_STATUS}" = "0" ]
|
|
|
|
then
|
2019-02-24 23:30:57 +01:00
|
|
|
./z_saturn_test.iv
|
2019-02-04 09:59:35 +01:00
|
|
|
fi
|
|
|
|
#vvp mask_gen_tb -lxt2
|
|
|
|
#gtkwave output.vcd
|