Use new memory port API
This commit is contained in:
parent
611c4192b1
commit
fb3e61230b
|
@ -21,6 +21,7 @@ class _SyncBuffer(Module):
|
|||
self.specials += storage
|
||||
|
||||
wrport = storage.get_port(write_capable=True)
|
||||
self.specials += wrport
|
||||
self.comb += [
|
||||
wrport.adr.eq(produce),
|
||||
wrport.dat_w.eq(self.din),
|
||||
|
@ -29,6 +30,7 @@ class _SyncBuffer(Module):
|
|||
self.sync += _inc(produce, depth)
|
||||
|
||||
rdport = storage.get_port(async_read=True)
|
||||
self.specials += rdport
|
||||
self.comb += [
|
||||
rdport.adr.eq(consume),
|
||||
self.dout.eq(rdport.dat_r)
|
||||
|
|
|
@ -89,6 +89,7 @@ class EDID(Module, AutoCSR):
|
|||
)
|
||||
]
|
||||
rdport = self.mem.get_port()
|
||||
self.specials += rdport
|
||||
self.comb += rdport.adr.eq(offset_counter)
|
||||
data_bit = Signal()
|
||||
|
||||
|
|
Loading…
Reference in New Issue