aboutsummaryrefslogtreecommitdiffstats
path: root/examples/gowin/run.tcl
diff options
context:
space:
mode:
Diffstat (limited to 'examples/gowin/run.tcl')
-rw-r--r--examples/gowin/run.tcl9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/gowin/run.tcl b/examples/gowin/run.tcl
new file mode 100644
index 000000000..39da11cee
--- /dev/null
+++ b/examples/gowin/run.tcl
@@ -0,0 +1,9 @@
+# gw_sh run.tcl
+exec yosys -p "synth_gowin -top demo -vout demo_syn.v" demo.v
+add_file -cst demo.cst
+add_file -sdc demo.sdc
+add_file -vm demo_syn.v
+add_file -cfg device.cfg
+set_option -device GW1NR-9-QFN88-6
+set_option -pn GW1NR-LV9QN88C6/I5
+run_pnr -opt pnr.cfg