From f5c7b617043b514027c3bbbe6c2d4462b061306f Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 10 Sep 2018 15:16:46 +0200 Subject: [PATCH] multirank: set default nranks to 1 if not specified --- litedram/common.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/litedram/common.py b/litedram/common.py index a6214a1..7513e65 100644 --- a/litedram/common.py +++ b/litedram/common.py @@ -6,14 +6,14 @@ bankbits_max = 3 class PhySettings: - def __init__(self, memtype, nranks, dfi_databits, + def __init__(self, memtype, dfi_databits, nphases, rdphase, wrphase, rdcmdphase, wrcmdphase, - cl, read_latency, write_latency, cwl=None): + cl, read_latency, write_latency, nranks=1, cwl=None): self.memtype = memtype - self.nranks = nranks self.dfi_databits = dfi_databits + self.nranks = nranks self.nphases = nphases self.rdphase = rdphase