mirror of
https://github.com/enjoy-digital/litex.git
synced 2025-01-04 09:52:26 -05:00
6e4b7c6cfd
req_queue_size, read_time, write_time settings are not sdram_timing settings but sdram controller settings
13 lines
773 B
Python
13 lines
773 B
Python
from collections import namedtuple
|
|
|
|
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)
|
|
|
|
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")
|
|
|
|
ControllerSettings = namedtuple("ControllerSettings", "req_queue_size read_time write_time")
|