mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
lasmicon: add CWL to PHY settings
This commit is contained in:
parent
777ebb7875
commit
0550cbb3ce
1 changed files with 6 additions and 4 deletions
|
@ -7,11 +7,13 @@ from misoclib.lasmicon.refresher import *
|
||||||
from misoclib.lasmicon.bankmachine import *
|
from misoclib.lasmicon.bankmachine import *
|
||||||
from misoclib.lasmicon.multiplexer 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")):
|
GeomSettingsT = namedtuple("_GeomSettings", "bank_a row_a col_a mux_a")
|
||||||
def __init__(self, *args, **kwargs):
|
def GeomSettings(bank_a, row_a, col_a):
|
||||||
self.mux_a = max(self.row_a, self.col_a)
|
return GeomSettingsT(bank_a, row_a, col_a, max(row_a, col_a))
|
||||||
|
|
||||||
TimingSettings = namedtuple("TimingSettings", "tRP tRCD tWR tWTR tREFI tRFC" \
|
TimingSettings = namedtuple("TimingSettings", "tRP tRCD tWR tWTR tREFI tRFC" \
|
||||||
" req_queue_size read_time write_time")
|
" req_queue_size read_time write_time")
|
||||||
|
|
Loading…
Reference in a new issue