From 993ba3169785e11eeaf2e6416eb42fa123f3c113 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C4=99drzej=20Boczar?= Date: Tue, 3 Aug 2021 15:49:14 +0200 Subject: [PATCH] init: generate `#define SDRAM_PHY_DFI_DATABITS` constant --- litedram/init.py | 1 + 1 file changed, 1 insertion(+) diff --git a/litedram/init.py b/litedram/init.py index 4916a42..22c32d3 100644 --- a/litedram/init.py +++ b/litedram/init.py @@ -670,6 +670,7 @@ def get_sdram_phy_c_header(phy_settings, timing_settings): r += "#define SDRAM_PHY_"+phytype+"\n" r += "#define SDRAM_PHY_XDR "+str(1 if phy_settings.memtype == "SDR" else 2) + "\n" r += "#define SDRAM_PHY_DATABITS "+str(phy_settings.databits) + "\n" + r += "#define SDRAM_PHY_DFI_DATABITS "+str(phy_settings.dfi_databits) + "\n" r += "#define SDRAM_PHY_PHASES "+str(nphases)+"\n" if phy_settings.cl is not None: r += "#define SDRAM_PHY_CL "+str(phy_settings.cl)+"\n"