From: Sebastien Bourdeauducq Date: Fri, 8 Aug 2014 13:55:12 +0000 (+0800) Subject: lasmicon: add CWL to PHY settings X-Git-Tag: 24jan2021_ls180~2677 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0550cbb3ce8a09e0b93a6162af0a00b13ef8401f;p=litex.git lasmicon: add CWL to PHY settings --- diff --git a/misoclib/lasmicon/__init__.py b/misoclib/lasmicon/__init__.py index 60819cc8..c006207b 100644 --- a/misoclib/lasmicon/__init__.py +++ b/misoclib/lasmicon/__init__.py @@ -7,11 +7,13 @@ from misoclib.lasmicon.refresher import * from misoclib.lasmicon.bankmachine import * from misoclib.lasmicon.multiplexer import * -PhySettings = namedtuple("PhySettings", "memtype dfi_d nphases rdphase wrphase rdcmdphase wrcmdphase cl read_latency write_latency") +PhySettingsT = namedtuple("PhySettings", "memtype dfi_d nphases rdphase wrphase rdcmdphase wrcmdphase cl cwl read_latency write_latency") +def PhySettings(memtype, dfi_d, nphases, rdphase, wrphase, rdcmdphase, wrcmdphase, cl, read_latency, write_latency, cwl=0): + return PhySettingsT(memtype, dfi_d, nphases, rdphase, wrphase, rdcmdphase, wrcmdphase, cl, cwl, read_latency, write_latency) -class GeomSettings(namedtuple("_GeomSettings", "bank_a row_a col_a")): - def __init__(self, *args, **kwargs): - self.mux_a = max(self.row_a, self.col_a) +GeomSettingsT = namedtuple("_GeomSettings", "bank_a row_a col_a mux_a") +def GeomSettings(bank_a, row_a, col_a): + return GeomSettingsT(bank_a, row_a, col_a, max(row_a, col_a)) TimingSettings = namedtuple("TimingSettings", "tRP tRCD tWR tWTR tREFI tRFC" \ " req_queue_size read_time write_time")