Cypress S27KL0641DABHI020 requires latency=6
"""
def __init__(self, *, io, phy_kls,
+ name=None,
latency=6,
addr_width=23, # 8 GBytes, per IC
bus=None, features=frozenset()):
- super().__init__()
+ super().__init__(name=name)
self.n_cs = n_cs = len(io.cs_n)
self.cs_bits = cs_bits = n_cs.bit_length()-1
self.io = io
features=features)
self.size = 2**addr_width
mmap = MemoryMap(addr_width=addr_width, data_width=8)
- mmap.add_resource(object(), name="hyperram", size=self.size)
+ if name is None:
+ name = "hyperram"
+ mmap.add_resource(object(), name=name, size=self.size)
self.bus.memory_map = mmap
# # #