xiiregexbuilder

FPGA-Accelerated Regular Expression Matching Engine

scripts/program.tcl (463B)


 1# VIVADO PROGRAMMING SCRIPT
 2
 3open_hw_manager
 4connect_hw_server
 5open_hw_target
 6
 7# Get first connected FPGA device
 8set device [lindex [get_hw_devices] 0]
 9current_hw_device $device
10refresh_hw_device -update_hw_probes false $device
11
12# Set bitstream file and program
13if { $argc > 0 } {
14    set bitfile [lindex $argv 0]
15} else {
16    set bitfile "top_fpga.bit"
17}
18set_property PROGRAM.FILE $bitfile $device
19program_hw_devices $device
20
21# Finish and close
22close_hw_manager