diff --git a/fpga/mqnic/250_SoC/fpga_100g/common/vivado.mk b/fpga/mqnic/250_SoC/fpga_100g/common/vivado.mk index 5a3bdbab8..4557af123 100644 --- a/fpga/mqnic/250_SoC/fpga_100g/common/vivado.mk +++ b/fpga/mqnic/250_SoC/fpga_100g/common/vivado.mk @@ -116,14 +116,17 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi diff --git a/fpga/mqnic/250_SoC/fpga_25g/common/vivado.mk b/fpga/mqnic/250_SoC/fpga_25g/common/vivado.mk index 5a3bdbab8..4557af123 100644 --- a/fpga/mqnic/250_SoC/fpga_25g/common/vivado.mk +++ b/fpga/mqnic/250_SoC/fpga_25g/common/vivado.mk @@ -116,14 +116,17 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi diff --git a/fpga/mqnic/ADM_PCIE_9V3/fpga_100g/common/vivado.mk b/fpga/mqnic/ADM_PCIE_9V3/fpga_100g/common/vivado.mk index 5a3bdbab8..4557af123 100644 --- a/fpga/mqnic/ADM_PCIE_9V3/fpga_100g/common/vivado.mk +++ b/fpga/mqnic/ADM_PCIE_9V3/fpga_100g/common/vivado.mk @@ -116,14 +116,17 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi diff --git a/fpga/mqnic/ADM_PCIE_9V3/fpga_25g/common/vivado.mk b/fpga/mqnic/ADM_PCIE_9V3/fpga_25g/common/vivado.mk index 5a3bdbab8..4557af123 100644 --- a/fpga/mqnic/ADM_PCIE_9V3/fpga_25g/common/vivado.mk +++ b/fpga/mqnic/ADM_PCIE_9V3/fpga_25g/common/vivado.mk @@ -116,14 +116,17 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi diff --git a/fpga/mqnic/AU200/fpga_100g/common/vivado.mk b/fpga/mqnic/AU200/fpga_100g/common/vivado.mk index 5a3bdbab8..4557af123 100644 --- a/fpga/mqnic/AU200/fpga_100g/common/vivado.mk +++ b/fpga/mqnic/AU200/fpga_100g/common/vivado.mk @@ -116,14 +116,17 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi diff --git a/fpga/mqnic/AU200/fpga_25g/common/vivado.mk b/fpga/mqnic/AU200/fpga_25g/common/vivado.mk index 5a3bdbab8..4557af123 100644 --- a/fpga/mqnic/AU200/fpga_25g/common/vivado.mk +++ b/fpga/mqnic/AU200/fpga_25g/common/vivado.mk @@ -116,14 +116,17 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi diff --git a/fpga/mqnic/AU250/fpga_100g/common/vivado.mk b/fpga/mqnic/AU250/fpga_100g/common/vivado.mk index 5a3bdbab8..4557af123 100644 --- a/fpga/mqnic/AU250/fpga_100g/common/vivado.mk +++ b/fpga/mqnic/AU250/fpga_100g/common/vivado.mk @@ -116,14 +116,17 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi diff --git a/fpga/mqnic/AU250/fpga_25g/common/vivado.mk b/fpga/mqnic/AU250/fpga_25g/common/vivado.mk index 5a3bdbab8..4557af123 100644 --- a/fpga/mqnic/AU250/fpga_25g/common/vivado.mk +++ b/fpga/mqnic/AU250/fpga_25g/common/vivado.mk @@ -116,14 +116,17 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi diff --git a/fpga/mqnic/AU280/fpga_100g/common/vivado.mk b/fpga/mqnic/AU280/fpga_100g/common/vivado.mk index 5a3bdbab8..4557af123 100644 --- a/fpga/mqnic/AU280/fpga_100g/common/vivado.mk +++ b/fpga/mqnic/AU280/fpga_100g/common/vivado.mk @@ -116,14 +116,17 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi diff --git a/fpga/mqnic/AU280/fpga_25g/common/vivado.mk b/fpga/mqnic/AU280/fpga_25g/common/vivado.mk index 5a3bdbab8..4557af123 100644 --- a/fpga/mqnic/AU280/fpga_25g/common/vivado.mk +++ b/fpga/mqnic/AU280/fpga_25g/common/vivado.mk @@ -116,14 +116,17 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi diff --git a/fpga/mqnic/AU50/fpga_100g/common/vivado.mk b/fpga/mqnic/AU50/fpga_100g/common/vivado.mk index 5a3bdbab8..4557af123 100644 --- a/fpga/mqnic/AU50/fpga_100g/common/vivado.mk +++ b/fpga/mqnic/AU50/fpga_100g/common/vivado.mk @@ -116,14 +116,17 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi diff --git a/fpga/mqnic/AU50/fpga_25g/common/vivado.mk b/fpga/mqnic/AU50/fpga_25g/common/vivado.mk index 5a3bdbab8..4557af123 100644 --- a/fpga/mqnic/AU50/fpga_25g/common/vivado.mk +++ b/fpga/mqnic/AU50/fpga_25g/common/vivado.mk @@ -116,14 +116,17 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi diff --git a/fpga/mqnic/DNPCIe_40G_KU_LL_2QSFP/fpga/common/vivado.mk b/fpga/mqnic/DNPCIe_40G_KU_LL_2QSFP/fpga/common/vivado.mk index d471b24e3..34a23c5b3 100644 --- a/fpga/mqnic/DNPCIe_40G_KU_LL_2QSFP/fpga/common/vivado.mk +++ b/fpga/mqnic/DNPCIe_40G_KU_LL_2QSFP/fpga/common/vivado.mk @@ -117,14 +117,17 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi diff --git a/fpga/mqnic/NetFPGA_SUME/fpga/common/vivado.mk b/fpga/mqnic/NetFPGA_SUME/fpga/common/vivado.mk index d471b24e3..34a23c5b3 100644 --- a/fpga/mqnic/NetFPGA_SUME/fpga/common/vivado.mk +++ b/fpga/mqnic/NetFPGA_SUME/fpga/common/vivado.mk @@ -117,14 +117,17 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi diff --git a/fpga/mqnic/Nexus_K35_S/fpga/common/vivado.mk b/fpga/mqnic/Nexus_K35_S/fpga/common/vivado.mk index d471b24e3..34a23c5b3 100644 --- a/fpga/mqnic/Nexus_K35_S/fpga/common/vivado.mk +++ b/fpga/mqnic/Nexus_K35_S/fpga/common/vivado.mk @@ -117,14 +117,17 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi diff --git a/fpga/mqnic/Nexus_K3P_Q/fpga_25g/common/vivado.mk b/fpga/mqnic/Nexus_K3P_Q/fpga_25g/common/vivado.mk index 5a3bdbab8..4557af123 100644 --- a/fpga/mqnic/Nexus_K3P_Q/fpga_25g/common/vivado.mk +++ b/fpga/mqnic/Nexus_K3P_Q/fpga_25g/common/vivado.mk @@ -116,14 +116,17 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi diff --git a/fpga/mqnic/Nexus_K3P_S/fpga_25g/common/vivado.mk b/fpga/mqnic/Nexus_K3P_S/fpga_25g/common/vivado.mk index 5a3bdbab8..4557af123 100644 --- a/fpga/mqnic/Nexus_K3P_S/fpga_25g/common/vivado.mk +++ b/fpga/mqnic/Nexus_K3P_S/fpga_25g/common/vivado.mk @@ -116,14 +116,17 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi diff --git a/fpga/mqnic/VCU108/fpga_25g/common/vivado.mk b/fpga/mqnic/VCU108/fpga_25g/common/vivado.mk index d471b24e3..34a23c5b3 100644 --- a/fpga/mqnic/VCU108/fpga_25g/common/vivado.mk +++ b/fpga/mqnic/VCU108/fpga_25g/common/vivado.mk @@ -117,14 +117,17 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi diff --git a/fpga/mqnic/VCU118/fpga_100g/common/vivado.mk b/fpga/mqnic/VCU118/fpga_100g/common/vivado.mk index 5a3bdbab8..4557af123 100644 --- a/fpga/mqnic/VCU118/fpga_100g/common/vivado.mk +++ b/fpga/mqnic/VCU118/fpga_100g/common/vivado.mk @@ -116,14 +116,17 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi diff --git a/fpga/mqnic/VCU118/fpga_25g/common/vivado.mk b/fpga/mqnic/VCU118/fpga_25g/common/vivado.mk index 5a3bdbab8..4557af123 100644 --- a/fpga/mqnic/VCU118/fpga_25g/common/vivado.mk +++ b/fpga/mqnic/VCU118/fpga_25g/common/vivado.mk @@ -116,14 +116,17 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi diff --git a/fpga/mqnic/VCU1525/fpga_100g/common/vivado.mk b/fpga/mqnic/VCU1525/fpga_100g/common/vivado.mk index 5a3bdbab8..4557af123 100644 --- a/fpga/mqnic/VCU1525/fpga_100g/common/vivado.mk +++ b/fpga/mqnic/VCU1525/fpga_100g/common/vivado.mk @@ -116,14 +116,17 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi diff --git a/fpga/mqnic/VCU1525/fpga_25g/common/vivado.mk b/fpga/mqnic/VCU1525/fpga_25g/common/vivado.mk index 5a3bdbab8..4557af123 100644 --- a/fpga/mqnic/VCU1525/fpga_25g/common/vivado.mk +++ b/fpga/mqnic/VCU1525/fpga_25g/common/vivado.mk @@ -116,14 +116,17 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi diff --git a/fpga/mqnic/XUPP3R/fpga_100g/common/vivado.mk b/fpga/mqnic/XUPP3R/fpga_100g/common/vivado.mk index 5a3bdbab8..4557af123 100644 --- a/fpga/mqnic/XUPP3R/fpga_100g/common/vivado.mk +++ b/fpga/mqnic/XUPP3R/fpga_100g/common/vivado.mk @@ -116,14 +116,17 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi diff --git a/fpga/mqnic/XUPP3R/fpga_25g/common/vivado.mk b/fpga/mqnic/XUPP3R/fpga_25g/common/vivado.mk index 5a3bdbab8..4557af123 100644 --- a/fpga/mqnic/XUPP3R/fpga_25g/common/vivado.mk +++ b/fpga/mqnic/XUPP3R/fpga_25g/common/vivado.mk @@ -116,14 +116,17 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi diff --git a/fpga/mqnic/ZCU102/fpga/common/vivado.mk b/fpga/mqnic/ZCU102/fpga/common/vivado.mk index 16b152614..004c44f35 100644 --- a/fpga/mqnic/ZCU102/fpga/common/vivado.mk +++ b/fpga/mqnic/ZCU102/fpga/common/vivado.mk @@ -116,16 +116,19 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx %.xsa: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl echo "write_hw_platform -fixed -force -include_bit $*.xsa" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ - cp -v $*.xsa rev/$*_rev$$COUNT.xsa; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi; \ + cp -pv $*.xsa rev/$*_rev$$COUNT.xsa; diff --git a/fpga/mqnic/ZCU106/fpga_pcie/common/vivado.mk b/fpga/mqnic/ZCU106/fpga_pcie/common/vivado.mk index 5a3bdbab8..4557af123 100644 --- a/fpga/mqnic/ZCU106/fpga_pcie/common/vivado.mk +++ b/fpga/mqnic/ZCU106/fpga_pcie/common/vivado.mk @@ -116,14 +116,17 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi diff --git a/fpga/mqnic/ZCU106/fpga_zynqmp/common/vivado.mk b/fpga/mqnic/ZCU106/fpga_zynqmp/common/vivado.mk index 16b152614..004c44f35 100644 --- a/fpga/mqnic/ZCU106/fpga_zynqmp/common/vivado.mk +++ b/fpga/mqnic/ZCU106/fpga_zynqmp/common/vivado.mk @@ -116,16 +116,19 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx %.xsa: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl echo "write_hw_platform -fixed -force -include_bit $*.xsa" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ - cp -v $*.xsa rev/$*_rev$$COUNT.xsa; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi; \ + cp -pv $*.xsa rev/$*_rev$$COUNT.xsa; diff --git a/fpga/mqnic/fb2CG/fpga_100g/common/vivado.mk b/fpga/mqnic/fb2CG/fpga_100g/common/vivado.mk index 5a3bdbab8..4557af123 100644 --- a/fpga/mqnic/fb2CG/fpga_100g/common/vivado.mk +++ b/fpga/mqnic/fb2CG/fpga_100g/common/vivado.mk @@ -116,14 +116,17 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi diff --git a/fpga/mqnic/fb2CG/fpga_25g/common/vivado.mk b/fpga/mqnic/fb2CG/fpga_25g/common/vivado.mk index 5a3bdbab8..4557af123 100644 --- a/fpga/mqnic/fb2CG/fpga_25g/common/vivado.mk +++ b/fpga/mqnic/fb2CG/fpga_25g/common/vivado.mk @@ -116,14 +116,17 @@ $(FPGA_TOP).xpr: create_project.tcl update_config.tcl vivado -nojournal -nolog -mode batch -source run_impl.tcl # bit file -%.bit: %.runs/impl_1/%_routed.dcp +%.bit %.ltx: %.runs/impl_1/%_routed.dcp echo "open_project $*.xpr" > generate_bit.tcl echo "open_run impl_1" >> generate_bit.tcl echo "write_bitstream -force $*.runs/impl_1/$*.bit" >> generate_bit.tcl + echo "write_debug_probes -force $*.runs/impl_1/$*.ltx" >> generate_bit.tcl vivado -nojournal -nolog -mode batch -source generate_bit.tcl ln -f -s $*.runs/impl_1/$*.bit . + if [ -e $*.runs/impl_1/$*.ltx ]; then ln -f -s $*.runs/impl_1/$*.ltx .; fi mkdir -p rev COUNT=100; \ while [ -e rev/$*_rev$$COUNT.bit ]; \ do COUNT=$$((COUNT+1)); done; \ - cp -v $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; + cp -pv $*.runs/impl_1/$*.bit rev/$*_rev$$COUNT.bit; \ + if [ -e $*.runs/impl_1/$*.ltx ]; then cp -pv $*.runs/impl_1/$*.ltx rev/$*_rev$$COUNT.ltx; fi