init: generate `#define SDRAM_PHY_DFI_DATABITS` constant

This commit is contained in:
Jędrzej Boczar 2021-08-03 15:49:14 +02:00
parent 91cae335e5
commit 993ba31697
1 changed files with 1 additions and 0 deletions

View File

@ -670,6 +670,7 @@ def get_sdram_phy_c_header(phy_settings, timing_settings):
r += "#define SDRAM_PHY_"+phytype+"\n" 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_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_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" r += "#define SDRAM_PHY_PHASES "+str(nphases)+"\n"
if phy_settings.cl is not None: if phy_settings.cl is not None:
r += "#define SDRAM_PHY_CL "+str(phy_settings.cl)+"\n" r += "#define SDRAM_PHY_CL "+str(phy_settings.cl)+"\n"