modules: improve the way we define DDR4 banks/groups

This commit is contained in:
Florent Kermarrec 2018-12-06 21:16:29 +01:00
parent 1618a7636a
commit 8ec0bc678e
1 changed files with 10 additions and 6 deletions

View File

@ -343,7 +343,9 @@ class AS4C256M16D3A(SDRAMModule):
class EDY4016A(SDRAMModule):
memtype = "DDR4"
# geometry
nbanks = 2*4 # 2 groups of 4 banks
ngroupbanks = 4
ngroups = 2
nbanks = ngroups * ngroupbanks
nrows = 32768
ncols = 1024
# timings
@ -357,7 +359,9 @@ class EDY4016A(SDRAMModule):
class MT40A1G8(SDRAMModule):
memtype = "DDR4"
# geometry
nbanks = 4*4 # 4 groups of 4 banks
ngroupbanks = 4
ngroups = 4
nbanks = ngroups * ngroupbanks
nrows = 65536
ncols = 1024
# timings