diff options
-rw-r--r-- | zpu/hdl/example/sim_small_fpga_top.vhd | 2 | ||||
-rw-r--r-- | zpu/hdl/example_ghdl/ghdl_import.sh | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/zpu/hdl/example/sim_small_fpga_top.vhd b/zpu/hdl/example/sim_small_fpga_top.vhd index 0727bea..72b2d7b 100644 --- a/zpu/hdl/example/sim_small_fpga_top.vhd +++ b/zpu/hdl/example/sim_small_fpga_top.vhd @@ -159,7 +159,7 @@ begin io_reading <= '0';
dram_ready <= '0';
- interruptcounter <= to_unsigned(32, 16);
+ interruptcounter <= to_unsigned(0, 16);
interrupt <= '0';
elsif (clk'event and clk = '1') then
diff --git a/zpu/hdl/example_ghdl/ghdl_import.sh b/zpu/hdl/example_ghdl/ghdl_import.sh index a0ae61c..b1c2713 100644 --- a/zpu/hdl/example_ghdl/ghdl_import.sh +++ b/zpu/hdl/example_ghdl/ghdl_import.sh @@ -4,7 +4,10 @@ mkdir -p work
ghdl -i ${IMPORT_OPTIONS} ../../hdl/example/zpu_config.vhd
ghdl -i ${IMPORT_OPTIONS} ../../hdl/zpu4/core/zpupkg.vhd
-ghdl -i ${IMPORT_OPTIONS} ../../hdl/example/helloworld.vhd
+ghdl -i ${IMPORT_OPTIONS} ../../hdl/example/interrupt.vhd
+# to execute helloworld comment interrupt.vhd above
+# and edit sim_small_fpga_top.vhd to never assert interrupts
+#ghdl -i ${IMPORT_OPTIONS} ../../hdl/example/helloworld.vhd
ghdl -i ${IMPORT_OPTIONS} ../../hdl/zpu4/src/txt_util.vhd
ghdl -i ${IMPORT_OPTIONS} ../../hdl/zpu4/src/trace.vhd
ghdl -i ${IMPORT_OPTIONS} ../../hdl/zpu4/core/zpu_core_small.vhd
|