mirror of
https://github.com/sxpert/hp-saturn
synced 2024-11-16 19:50:19 +01:00
24 lines
694 B
Bash
Executable file
24 lines
694 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# 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
|
|
# 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
|