aboutsummaryrefslogtreecommitdiffstats
path: root/examples/igloo2/libero.tcl
diff options
context:
space:
mode:
authorClifford Wolf <clifford@clifford.at>2019-01-17 13:35:52 +0100
committerClifford Wolf <clifford@clifford.at>2019-01-17 13:35:52 +0100
commit9b277fc21ea455a0e0ca9b7acde039e90ddb380d (patch)
treecbc333269e21e8deff6ffd80fe45b5be309d8d52 /examples/igloo2/libero.tcl
parent841ca74c90872985ae4e128608260b4a38d04762 (diff)
downloadyosys-9b277fc21ea455a0e0ca9b7acde039e90ddb380d.tar.gz
yosys-9b277fc21ea455a0e0ca9b7acde039e90ddb380d.tar.bz2
yosys-9b277fc21ea455a0e0ca9b7acde039e90ddb380d.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.tcl50
1 files changed, 35 insertions, 15 deletions
diff --git a/examples/igloo2/libero.tcl b/examples/igloo2/libero.tcl
index 9f6d3b792..b2090f402 100644
--- a/examples/igloo2/libero.tcl
+++ b/examples/igloo2/libero.tcl
@@ -1,24 +1,38 @@
# Run with "libero SCRIPT:libero.tcl"
+file delete -force proj
+
new_project \
- -name top \
- -location work \
+ -name example \
+ -location proj \
+ -block_mode 1 \
+ -hdl "VERILOG" \
-family IGLOO2 \
-die PA4MGL500 \
-package tq144 \
- -speed -1 \
- -hdl VERILOG
-
-# 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"
+ -speed -1
+
+import_files -hdl_source {netlist.vm}
+import_files -sdc {example.sdc}
+import_files -io_pdc {example.io.pdc}
+import_files -fp_pdc {example.fp.pdc}
+set_option -synth 0
+
+organize_tool_files -tool PLACEROUTE \
+ -file {proj/constraint/example.sdc} \
+ -file {proj/constraint/io/example.io.pdc} \
+ -file {proj/constraint/fp/example.fp.pdc} \
+ -input_type constraint
+
+organize_tool_files -tool VERIFYTIMING \
+ -file {proj/constraint/example.sdc} \
+ -input_type constraint
+
+configure_tool -name PLACEROUTE \
+ -params TDPR:true \
+ -params PDPR:false \
+ -params EFFORT_LEVEL:false \
+ -params REPAIR_MIN_DELAY:false
puts "**> COMPILE"
run_tool -name {COMPILE}
@@ -28,6 +42,12 @@ puts "**> PLACEROUTE"
run_tool -name {PLACEROUTE}
puts "<** PLACEROUTE"
+puts "**> VERIFYTIMING"
+run_tool -name {VERIFYTIMING}
+puts "<** VERIFYTIMING"
+
+save_project
+
# puts "**> export_bitstream"
# export_bitstream_file -trusted_facility_file 1 -trusted_facility_file_components {FABRIC}
# puts "<** export_bitstream"