Build nMigen gateware in a specific folder
authorJean THOMAS <git0@pub.jeanthomas.me>
Tue, 30 Jun 2020 17:28:34 +0000 (19:28 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Tue, 30 Jun 2020 17:28:34 +0000 (19:28 +0200)
gram/simulation/.gitignore
gram/simulation/runsimsoc.sh
gram/simulation/simsoc.py

index 81cd12c696fd34145759989b071cbe7ed3a5e08f..39b62c5a065a2318e59e506b08dd0a7e186d3489 100644 (file)
@@ -3,8 +3,8 @@ simcrg
 simsoc
 
 # nMigen generated files
-simcrg.v
-simsoc.v
+build/
+build_simsoc/
 
 # Simulation output
 *.vcd
index 78b13aae9890bf8d1dc99a51f27f65374895425c..9321c4024e56eaa4032f244b6b3e6d1bc86f6076 100755 (executable)
@@ -4,7 +4,7 @@ set -e
 LIB_DIR=/usr/local/diamond/3.11_x64/ispfpga/verilog/data/ecp5u
 
 python simsoc.py
-iverilog -Wall -g2012 -s simsoctb -o simsoc simsoctb.v build/top.debug.v dram_model/ddr3.v ${LIB_DIR}/ECLKSYNCB.v ${LIB_DIR}/EHXPLLL.v ${LIB_DIR}/PUR.v ${LIB_DIR}/GSR.v \
+iverilog -Wall -g2012 -s simsoctb -o simsoc simsoctb.v build_simsoc/top.debug.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.patched.v \
        ${LIB_DIR}/CLKDIVF.v
index ffcf961eb95988bb7ba3cfc906509e7059c94e16..19d57bdc376fc8f17ec86dea4d95c152f74ad3fa 100644 (file)
@@ -276,4 +276,4 @@ if __name__ == "__main__":
         ddr_addr=0x10000000)
 
     soc.build(do_build=True)
-    platform.build(soc)
+    platform.build(soc, build_dir="build_simsoc")