19 lines
391 B
Tcl
19 lines
391 B
Tcl
if { $argc < 2 } {
|
|
error "Usage: vivado -mode batch -source impl.tcl -tclargs BITFILE IMPL_CDP"
|
|
} else {
|
|
puts "All OK"
|
|
}
|
|
|
|
variable BITFILE [lindex $argv 0]
|
|
variable IMPL_DCP [lindex $argv 1]
|
|
|
|
puts "Using implementation DCP $IMPL_DCP"
|
|
puts "Generating bit file $BITFILE"
|
|
|
|
puts "Opening checkpoint"
|
|
open_checkpoint "$IMPL_DCP"
|
|
|
|
puts "Generating bitstream"
|
|
write_bitstream -force "$BITFILE"
|
|
|