Improve igloo2 example

Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
Clifford Wolf 2019-01-08 20:16:36 +01:00
parent f042559e9d
commit 2a2e0a4722
4 changed files with 29 additions and 5 deletions

View File

@ -1,2 +1,3 @@
/example.edn
/netlist.edn
/netlist.v
/work

View 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

View 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

View File

@ -1,4 +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