From e93fb454bf181f3c8490345f7cc8c52fb12f39bc Mon Sep 17 00:00:00 2001 From: Andrea Venturi Date: Tue, 23 Jan 2018 19:47:00 +0100 Subject: [PATCH] add TCL script for firmware creation --- top.tcl | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 top.tcl diff --git a/top.tcl b/top.tcl new file mode 100644 index 0000000..a6d083e --- /dev/null +++ b/top.tcl @@ -0,0 +1,12 @@ +yosys -import +read_verilog -D$::env(IC) -noautowire -sv top.sv +puts "device is $::env(IC)" ; + +#yosys proc +procs +# the above are the same, see: http://www.clifford.at/yosys/cmd_tcl.html + +opt -full +alumacc +share -aggressive +synth_ice40 -abc2 -top top -blif top.blif