From 049a984f7d77aded0886e4098827becba43d1a38 Mon Sep 17 00:00:00 2001 From: Maciej Dudek Date: Fri, 22 Sep 2023 11:16:22 +0200 Subject: [PATCH] Makefile: Reduce DDR5 tester JTAG frequency to 3MHz This improves programming stability. Signed-off-by: Maciej Dudek --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 9499ed50..a957dbf7 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,7 @@ else ifeq ($(TARGET),lpddr4_test_board) OFL_BOARD := antmicro_lpddr4_tester else ifeq ($(TARGET),ddr5_tester) OFL_BOARD := antmicro_ddr5_tester +OFL_EXTRA_ARGS := --freq 3e6 else ifeq ($(TARGET),ddr5_test_board) OFL_BOARD := antmicro_lpddr4_tester else ifeq ($(TARGET),zcu104) @@ -32,6 +33,7 @@ endif ARGS ?= NET_ARGS := --ip-address $(IP_ADDRESS) --mac-address $(MAC_ADDRESS) --udp-port $(UDP_PORT) TARGET_ARGS := $(NET_ARGS) $(ARGS) +OFL_EXTRA_ARGS ?= # Update PATH to activate the Python venv and include all required binaries # Adding vnev/bin to PATH forces usage of the Python binary from venv, @@ -70,7 +72,7 @@ ifeq ($(TARGET),zcu104) @echo "For ZCU104 please copy the file build/zcu104/gateware/zcu104.bit to the boot partition on microSD card" @exit 1 else - openFPGALoader --board $(OFL_BOARD) build/$(TARGET)/gateware/$(TOP).bit + openFPGALoader --board $(OFL_BOARD) $(OFL_EXTRA_ARGS) build/$(TARGET)/gateware/$(TOP).bit endif flash: FORCE