aboutsummaryrefslogtreecommitdiffstats
path: root/examples/gowin/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'examples/gowin/run.sh')
-rw-r--r--examples/gowin/run.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/examples/gowin/run.sh b/examples/gowin/run.sh
index 738e845e5..33a7b5c37 100644
--- a/examples/gowin/run.sh
+++ b/examples/gowin/run.sh
@@ -3,3 +3,10 @@ set -ex
yosys -p "synth_gowin -top demo -vout demo_syn.v" demo.v
$GOWIN_HOME/bin/gowin -d demo_syn.v -cst demo.cst -sdc demo.sdc -p GW2A55-PBGA484-6 \
-warning_all -out demo_out.v -rpt demo.rpt -tr demo_tr.html -bit demo.bit
+
+# post place&route simulation (icarus verilog)
+if false; then
+ iverilog -D POST_IMPL -o testbench -s testbench testbench.v \
+ demo_out.v $(yosys-config --datdir/gowin/cells_sim.v)
+ vvp -N testbench
+fi