Merge pull request #237 from antmicro/jboc/dfii-bankbits

core: use wider DFI address/bank if PHY requires it
This commit is contained in:
enjoy-digital 2021-03-31 08:48:32 +02:00 committed by GitHub
commit df2a06584b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -17,8 +17,8 @@ from litedram.core.crossbar import LiteDRAMCrossbar
class LiteDRAMCore(Module, AutoCSR):
def __init__(self, phy, geom_settings, timing_settings, clk_freq, **kwargs):
self.submodules.dfii = DFIInjector(
addressbits = geom_settings.addressbits,
bankbits = geom_settings.bankbits,
addressbits = max(geom_settings.addressbits, getattr(phy, "addressbits", 0)),
bankbits = max(geom_settings.bankbits, getattr(phy, "bankbits", 0)),
nranks = phy.settings.nranks,
databits = phy.settings.dfi_databits,
nphases = phy.settings.nphases)