common: simplify/rename get_sys_phase (cmd_phase is always -1 can be calculated on phys).

This commit is contained in:
Florent Kermarrec 2020-09-30 19:38:43 +02:00
parent a611778e3d
commit 207b8f48bb
1 changed files with 2 additions and 4 deletions

View File

@ -56,10 +56,8 @@ def get_cl_cw(memtype, tck):
def get_sys_latency(nphases, cas_latency): def get_sys_latency(nphases, cas_latency):
return math.ceil(cas_latency/nphases) return math.ceil(cas_latency/nphases)
def get_sys_phases(nphases, sys_latency, cas_latency): def get_sys_phase(nphases, sys_latency, cas_latency):
dat_phase = sys_latency*nphases - cas_latency return sys_latency*nphases - cas_latency
cmd_phase = (dat_phase - 1)%nphases
return cmd_phase, dat_phase
# PHY Pads Transformers ---------------------------------------------------------------------------- # PHY Pads Transformers ----------------------------------------------------------------------------