rdport = self.mem.rdport
comb += rdport.addr.eq(self.addr_o)
comb += self.data_o.eq(rdport.data)
- comb += rdport.en.eq(1)
+ # comb += rdport.en.eq(1) # only when transparent=False
return m
self.ddepth = 1 # regwid //8
depth = (1<<addrw) // self.ddepth
self.mem = Memory(width=regwid, depth=depth, init=range(0, depth))
- self.rdport = self.mem.read_port(transparent=False)
+ self.rdport = self.mem.read_port() # not now transparent=False)
self.wrport = self.mem.write_port()
def elaborate(self, platform):