forgot to include firmware in build for new icarus sim platform
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 2 Mar 2022 13:56:15 +0000 (13:56 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 2 Mar 2022 13:56:15 +0000 (13:56 +0000)
runsimsoc2.sh

index 175a87024bea2d1f24b0ae4674ba245464149f88..c144086f3ff47b1d4055af89a70326b9867225c8 100755 (executable)
@@ -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 \