Merge pull request #255 from antonblanchard/log-length
authorAnton Blanchard <anton@linux.ibm.com>
Tue, 8 Dec 2020 10:36:00 +0000 (21:36 +1100)
committerGitHub <noreply@github.com>
Tue, 8 Dec 2020 10:36:00 +0000 (21:36 +1100)
Add LOG_LENGTH to top-generic.vhdl

Makefile

index 605c2aeab45197c97de99e2671f0cf6dfbe54774..2ee5d572ceffc4bfa99b86d2cb63c06d2ac017a6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -177,6 +177,13 @@ clkgen=fpga/clk_gen_ecp5.vhd
 toplevel=fpga/top-generic.vhdl
 dmi_dtm=dmi_dtm_dummy.vhdl
 
+ifeq ($(FPGA_TARGET), verilator)
+RESET_LOW=true
+CLK_INPUT=50000000
+CLK_FREQUENCY=50000000
+clkgen=fpga/clk_gen_bypass.vhd
+endif
+
 fpga_files = $(core_files) $(soc_files) fpga/soc_reset.vhdl \
        fpga/pp_fifo.vhd fpga/pp_soc_uart.vhd fpga/main_bram.vhdl \
        nonrandom.vhdl