litedram/init: export xdr ratio and databits.

This commit is contained in:
Florent Kermarrec 2020-08-07 19:47:27 +02:00
parent 94241d0583
commit a0a886e856
1 changed files with 2 additions and 0 deletions

View File

@ -479,6 +479,8 @@ def get_sdram_phy_c_header(phy_settings, timing_settings):
# Define PHY type and number of phases # Define PHY type and number of phases
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_DATABITS "+str(phy_settings.databits) + "\n"
r += "#define SDRAM_PHY_PHASES "+str(nphases)+"\n" r += "#define SDRAM_PHY_PHASES "+str(nphases)+"\n"
# Define Read/Write Leveling capability # Define Read/Write Leveling capability