add alternative variant of runsimsoc.sh
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 17 Mar 2022 12:52:26 +0000 (12:52 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Thu, 17 Mar 2022 12:52:26 +0000 (12:52 +0000)
gram/simulation/runsimsoc2.sh [new file with mode: 0755]

diff --git a/gram/simulation/runsimsoc2.sh b/gram/simulation/runsimsoc2.sh
new file mode 100755 (executable)
index 0000000..4f97052
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/bash
+set -e
+
+LIB_DIR=./ecp5u
+
+python3 simsoc.py
+yosys simsoc.ys
+cp ${LIB_DIR}/DDRDLLA.v DDRDLLA.v
+patch DDRDLLA.v < DDRDLLA.patch
+iverilog -Wall -g2012 -s simsoctb -o simsoc simsoctb.v build_simsoc/top.v dram_model/ddr3.v ${LIB_DIR}/ECLKSYNCB.v ${LIB_DIR}/EHXPLLL.v ${LIB_DIR}/PUR.v ${LIB_DIR}/GSR.v \
+       ${LIB_DIR}/FD1S3AX.v ${LIB_DIR}/SGSR.v ${LIB_DIR}/ODDRX2F.v ${LIB_DIR}/ODDRX2DQA.v ${LIB_DIR}/DELAYF.v ${LIB_DIR}/BB.v ${LIB_DIR}/OB.v ${LIB_DIR}/IB.v \
+       ${LIB_DIR}/DQSBUFM.v ${LIB_DIR}/UDFDL5_UDP_X.v ${LIB_DIR}/TSHX2DQSA.v ${LIB_DIR}/TSHX2DQA.v ${LIB_DIR}/ODDRX2DQSB.v ${LIB_DIR}/IDDRX2DQA.v DDRDLLA.v \
+       ${LIB_DIR}/CLKDIVF.v
+vvp -n simsoc -fst-speed