2014-11-26 04:37:50 -05:00
|
|
|
from collections import namedtuple
|
|
|
|
|
2015-03-24 12:25:59 -04:00
|
|
|
PhySettingsT = namedtuple("PhySettings", "memtype dfi_databits nphases rdphase wrphase rdcmdphase wrcmdphase cl cwl read_latency write_latency")
|
|
|
|
def PhySettings(memtype, dfi_databits, nphases, rdphase, wrphase, rdcmdphase, wrcmdphase, cl, read_latency, write_latency, cwl=0):
|
2015-04-13 10:19:55 -04:00
|
|
|
return PhySettingsT(memtype, dfi_databits, nphases, rdphase, wrphase, rdcmdphase, wrcmdphase, cl, cwl, read_latency, write_latency)
|
2014-11-26 04:37:50 -05:00
|
|
|
|
2015-03-26 18:27:37 -04:00
|
|
|
GeomSettingsT = namedtuple("_GeomSettings", "bankbits rowbits colbits addressbits")
|
|
|
|
def GeomSettings(bankbits, rowbits, colbits):
|
2015-04-13 10:19:55 -04:00
|
|
|
return GeomSettingsT(bankbits, rowbits, colbits, max(rowbits, colbits))
|
2014-11-26 04:37:50 -05:00
|
|
|
|
2015-03-21 07:55:39 -04:00
|
|
|
TimingSettings = namedtuple("TimingSettings", "tRP tRCD tWR tWTR tREFI tRFC")
|