aboutsummaryrefslogtreecommitdiffstats
path: root/examples/igloo2/libero.tcl
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2019-01-08 20:16:36 +0100
committerClifford Wolf <clifford@clifford.at>2019-01-08 20:16:36 +0100
commit2a2e0a4722ded7628b71f436b94a06aebd57bb62 (patch)
tree12754073a5518a00aa1514892ce6ec7e87d2e015 /examples/igloo2/libero.tcl
parentf042559e9dbcc0738c6404903ac22da63cd27404 (diff)
downloadyosys-2a2e0a4722ded7628b71f436b94a06aebd57bb62.tar.gz
yosys-2a2e0a4722ded7628b71f436b94a06aebd57bb62.tar.bz2
yosys-2a2e0a4722ded7628b71f436b94a06aebd57bb62.zip
Improve igloo2 example
Signed-off-by: Clifford Wolf <clifford@clifford.at>
Diffstat (limited to 'examples/igloo2/libero.tcl')
-rw-r--r--examples/igloo2/libero.tcl27
1 files changed, 24 insertions, 3 deletions
diff --git a/examples/igloo2/libero.tcl b/examples/igloo2/libero.tcl
index cc1ab2403..9f6d3b792 100644
--- a/examples/igloo2/libero.tcl
+++ b/examples/igloo2/libero.tcl
@@ -9,6 +9,27 @@ new_project \
-speed -1 \
-hdl VERILOG
-import_files -edif {example.edn}
-run_tool –name {COMPILE}
-run_tool –name {PLACEROUTEN}
+# import_files -edif "[pwd]/netlist.edn"
+
+import_files -hdl_source "[pwd]/netlist.v"
+set_root top
+
+save_project
+
+puts "**> SYNTHESIZE"
+run_tool -name {SYNTHESIZE}
+puts "<** SYNTHESIZE"
+
+puts "**> COMPILE"
+run_tool -name {COMPILE}
+puts "<** COMPILE"
+
+puts "**> PLACEROUTE"
+run_tool -name {PLACEROUTE}
+puts "<** PLACEROUTE"
+
+# puts "**> export_bitstream"
+# export_bitstream_file -trusted_facility_file 1 -trusted_facility_file_components {FABRIC}
+# puts "<** export_bitstream"
+
+exit 0