# within soc repo, as submodule, this works after "make ls180"
# is run inside the litex/florent subdirectory
VERILOG_SOURCES := \
+ ../SPBlock_512W64B8W.v \
../../../litex/florent/libresoc.v \
../../../litex/florent/ls180.v \
# END VERILOG_SOURCES
#!/bin/sh
+if grep -q ls180sram4k ../../../litex/florent/ls180.v; then
+ top=ls180sram4k
+else
+ top=ls180
+fi
+
touch mem.init mem_1.init mem_2.init mem_3.init mem_4.init
# Only run test in reset state as running CPU takes too much time to simulate
make \
SIM=icarus \
- TOPLEVEL=ls180 \
+ TOPLEVEL=$top \
COCOTB_RESULTS_FILE=results_iverilog_ls180.xml \
COCOTB_HDL_TIMEUNIT=100ps \
TESTCASE="idcode_reset,idcodesvf_reset,boundary_scan_reset,wishbone_basic" \