Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
bbabecca6This file is pinned to the selected release. Download the original to open it in your design tool.
set script_dir [file dirname [file normalize [info script]]]
set repo_dir [file normalize [file join $script_dir ..]]
set bit_file [file normalize [file join $repo_dir build lab8_top.bit]]
if {![file exists $bit_file]} {
error "Bitstream not found: $bit_file"
}
open_hw_manager
connect_hw_server -allow_non_jtag
set targets [get_hw_targets]
if {[llength $targets] == 0} {
error "No hardware targets found"
}
current_hw_target [lindex $targets 0]
open_hw_target
set devs [get_hw_devices xc7a100t*]
if {[llength $devs] == 0} {
error "No xc7a100t hardware device found"
}
set dev [lindex $devs 0]
current_hw_device $dev
refresh_hw_device $dev
set_property PROGRAM.FILE $bit_file $dev
program_hw_devices $dev
refresh_hw_device $dev
puts "LAB8_PROGRAMMED=$dev BITSTREAM=$bit_file"
close_hw_manager