From 6465f247ea0048306a8da2a230478aeb4a084e7f Mon Sep 17 00:00:00 2001 From: n-hutton Date: Fri, 7 Feb 2025 16:27:08 +0000 Subject: [PATCH 1/2] force bitfiles to be identical for same source code --- fpga/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/fpga/Makefile b/fpga/Makefile index 821ac0ec7f..b31c000ab7 100644 --- a/fpga/Makefile +++ b/fpga/Makefile @@ -44,6 +44,9 @@ XST_OPTS_AREA += -opt_level 2 XST_OPTS_AREA += -fsm_style bram XST_OPTS_AREA += -fsm_encoding compact +# par specific option (set determistic seed) +PAR_OPTIONS = -t 1 + # Types of selective module compilation: # WITH_LF Enables selection of LF modules (and disables all HF) @@ -179,12 +182,14 @@ work: %.ncd: %_map.ncd $(Q)$(RM) $@ $(info [-] PAR $@) - $(Q)$(XILINX_TOOLS_PREFIX)par $(VERBOSITY) -w $< $@ + $(Q)$(XILINX_TOOLS_PREFIX)par $(PAR_OPTIONS) $(VERBOSITY) -w $< $@ %.bit: %.ncd $(Q)$(RM) $@ $*.drc $*.rbt $(info [=] BITGEN $@) $(Q)$(XILINX_TOOLS_PREFIX)bitgen $(VERBOSITY) -w $* $@ + #$(shell printf '\xff%.0s' {1..22} | dd of=fpga_pm3_hf.bit bs=1 seek=48 conv=notrunc) + echo "FFFFFFFFFFFFFFFFFFFFFF" | dd of=fpga_pm3_hf.bit bs=1 seek=48 conv=notrunc $(Q)$(CP) $@ .. # Build all targets From bb4e14bb4c242992397d3c174c023317986d0a6c Mon Sep 17 00:00:00 2001 From: n-hutton Date: Fri, 7 Feb 2025 16:36:01 +0000 Subject: [PATCH 2/2] remove comment before PR open --- fpga/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/fpga/Makefile b/fpga/Makefile index b31c000ab7..963fd1e281 100644 --- a/fpga/Makefile +++ b/fpga/Makefile @@ -188,7 +188,6 @@ work: $(Q)$(RM) $@ $*.drc $*.rbt $(info [=] BITGEN $@) $(Q)$(XILINX_TOOLS_PREFIX)bitgen $(VERBOSITY) -w $* $@ - #$(shell printf '\xff%.0s' {1..22} | dd of=fpga_pm3_hf.bit bs=1 seek=48 conv=notrunc) echo "FFFFFFFFFFFFFFFFFFFFFF" | dd of=fpga_pm3_hf.bit bs=1 seek=48 conv=notrunc $(Q)$(CP) $@ ..