From a0a886e85657da90a3567aeb87c9fe3e66e8fbc6 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Fri, 7 Aug 2020 19:47:27 +0200 Subject: [PATCH] litedram/init: export xdr ratio and databits. --- litedram/init.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/litedram/init.py b/litedram/init.py index 0f1fc17..483807c 100644 --- a/litedram/init.py +++ b/litedram/init.py @@ -479,6 +479,8 @@ def get_sdram_phy_c_header(phy_settings, timing_settings): # Define PHY type and number of phases 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_PHASES "+str(nphases)+"\n" # Define Read/Write Leveling capability