Improve igloo2 example
authorClifford Wolf <clifford@clifford.at>
Tue, 8 Jan 2019 19:16:36 +0000 (20:16 +0100)
committerClifford Wolf <clifford@clifford.at>
Tue, 8 Jan 2019 19:16:36 +0000 (20:16 +0100)
Signed-off-by: Clifford Wolf <clifford@clifford.at>
examples/igloo2/.gitignore
examples/igloo2/example.ys
examples/igloo2/libero.sh [deleted file]
examples/igloo2/libero.tcl
examples/igloo2/runme.sh [new file with mode: 0644]

index ae86e69cc75ea77062aa5eb656464b412c90861c..fa3c3d7edb11c25f8a165b4cc9059a9cc19f2185 100644 (file)
@@ -1,2 +1,3 @@
-/example.edn
+/netlist.edn
+/netlist.v
 /work
index 75a305d8668018cf87bf3c0ab770062570a297d9..872f97b995acb09bd59c7db4aabaac5e073c0bd2 100644 (file)
@@ -1,2 +1,3 @@
 read_verilog example.v
-synth_sf2 -top top -edif example.edn
+synth_sf2 -top top -edif netlist.edn
+write_verilog netlist.v
diff --git a/examples/igloo2/libero.sh b/examples/igloo2/libero.sh
deleted file mode 100644 (file)
index 582f6cc..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-#!/bin/bash
-set -ex
-rm -rf work
-LM_LICENSE_FILE=1702@`hostname` /opt/microsemi/Libero_SoC_v11.9/Libero/bin/libero SCRIPT:libero.tcl
index cc1ab24032405540d0ad108c83a6645bbef5baf1..9f6d3b792588d2813e310f53f7e579bd7364dd0d 100644 (file)
@@ -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
diff --git a/examples/igloo2/runme.sh b/examples/igloo2/runme.sh
new file mode 100644 (file)
index 0000000..4edfb54
--- /dev/null
@@ -0,0 +1,5 @@
+#!/bin/bash
+set -ex
+rm -rf work
+yosys example.ys
+LM_LICENSE_FILE=1702@`hostname` /opt/microsemi/Libero_SoC_v11.9/Libero/bin/libero SCRIPT:libero.tcl