rem prog.cmd  PeterJ,    07-Jan-2020.
@prompt $$$s

rem ### Cleanup old log files and stuff
del vivado_mmi_elf.log

set proj_name="clbv4_wr_ref_top"

#set lm32_wrpc_elf="../../../sw/embedded/precompiled/wrps-sw_v4_2_CLBv2_peter_clbv2_km3net_f83fede_ppsi_0cc9d34/wrc.elf"
set lm32_wrpc_elf="wrc_pll_wr_mode_slave.elf"

set lm32_wrpc_instpath="lm32_wrpc_memory"

rem ### note that environment variable "VIVADO" must be set to something like "E:\Xilinx\Vivado\2017.1\bin\"
rem ### in your (User) Environment Variables
%VIVADO%updatemem -meminfo %proj_name%.mmi -data %lm32_wrpc_elf% -proc %lm32_wrpc_instpath% -bit %proj_name%.bit -out %proj_name%_elf.bit -force >> vivado_mmi_elf.log
