-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathvivado_all.tcl
43 lines (35 loc) · 1.19 KB
/
vivado_all.tcl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env xsct
if { $argc != 1 } {
set prog_name [file tail $argv0]
puts "usage: $prog_name out_dir"
exit 0
}
set out_dir [lindex $argv 0]
# run synthesis
# Create a new run when it is not available
if {[llength [get_runs synth_automated]] == 0} {
create_run synth_automated -flow {Vivado Synthesis 2019}
} else {
# elsewise just reset the run
reset_run synth_automated
}
#create_run synth_automated -flow {Vivado Synthesis 2019}
launch_runs synth_automated -jobs 10
wait_on_run synth_automated -quiet
# run implementation
# Create a new run when it is not available
if {[llength [get_runs impl_automated]] == 0} {
create_run impl_automated -flow {Vivado Implementation 2019} -parent_run synth_automated
} else {
# elsewise just reset the run
reset_run impl_automated
}
#create_run impl_automated -flow {Vivado Implementation 2019} -parent_run synth_automated
launch_runs impl_automated -jobs 10
wait_on_run impl_automated -quiet
# run generate_bitstream
open_impl_design impl_automated
write_bitstream -force "$out_dir/bitstream_export.bit"
# run export_hardware
open_impl_design impl_automated
write_hw_platform -force -fixed -include_bit -file "$out_dir/hw_export.xsa"