From fd3835448a7569a36e3ffcd9c40a28a5c7b0c441 Mon Sep 17 00:00:00 2001 From: Konstantin Pavlov Date: Thu, 29 Dec 2022 17:16:39 +0300 Subject: [PATCH] Added prog script --- scripts/prog_hw_vivado.tcl | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 scripts/prog_hw_vivado.tcl diff --git a/scripts/prog_hw_vivado.tcl b/scripts/prog_hw_vivado.tcl new file mode 100644 index 0000000..3263733 --- /dev/null +++ b/scripts/prog_hw_vivado.tcl @@ -0,0 +1,17 @@ +#------------------------------------------------------------------------------ +# prog_hw_vivado.tcl +# published as part of https://github.com/pConst/basic_verilog +# Konstantin Pavlov, pavlovconst@gmail.com +#------------------------------------------------------------------------------ + +# INFO ------------------------------------------------------------------------ +# program script for Vivado +# +# call with +# vivado -nolog -mode batch -source prog_hw_vivado.tcl + +connect_hw_server +open_hw_target [lindex [get_hw_targets] 0] +set_property PROGRAM.FILE main.bit [lindex [get_hw_devices] 1] +program_hw_devices [lindex [get_hw_devices] 1] +