From 67da0e181fc28c2fa41a7ec31a0d789f8b23212e Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 2 Mar 2022 13:56:15 +0000 Subject: [PATCH] forgot to include firmware in build for new icarus sim platform --- runsimsoc2.sh | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/runsimsoc2.sh b/runsimsoc2.sh index 175a870..c144086 100755 --- a/runsimsoc2.sh +++ b/runsimsoc2.sh @@ -3,10 +3,17 @@ set -e LIB_DIR=./src/ecp5u -python3 src/ls2.py isim +# create the build_simsoc/top.il file with firmware baked-in +python3 src/ls2.py isim ./coldboot/coldboot.bin + +# do some voodoo magic to get icarus to be happy with the ilang file yosys simsoc.ys + +# fix a bug in Lattice ECP5 models cp ${LIB_DIR}/DDRDLLA.v DDRDLLA.v patch DDRDLLA.v < DDRDLLA.patch + +# string together the icarus verilog files and start runnin iverilog -Wall -g2012 -s simsoctb -o simsoc \ src/simsoctb.v ./top.v dram_model/ddr3.v \ ${LIB_DIR}/ECLKSYNCB.v ${LIB_DIR}/EHXPLLL.v \ -- 2.30.2