Improve igloo2 example
Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
3
examples/igloo2/.gitignore
vendored
3
examples/igloo2/.gitignore
vendored
@@ -1,2 +1,3 @@
|
||||
/example.edn
|
||||
/netlist.edn
|
||||
/netlist.v
|
||||
/work
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user