From: Luke Kenneth Casson Leighton Date: Wed, 2 Mar 2022 13:56:15 +0000 (+0000) Subject: forgot to include firmware in build for new icarus sim platform X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=67da0e181fc28c2fa41a7ec31a0d789f8b23212e;p=ls2.git forgot to include firmware in build for new icarus sim platform --- 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 \