compat.fhdl.specials: fix Memory.get_port() after 94e8f479
.
This also makes sure the native ports are instantiated for correct clock domain.
This commit is contained in:
parent
9eb81609d6
commit
c98b8f7c07
|
@ -98,12 +98,13 @@ class CompatMemory(NativeMemory):
|
|||
DeprecationWarning, stacklevel=1)
|
||||
we_granularity = None
|
||||
assert mode != NO_CHANGE
|
||||
rdport = self.read_port(synchronous=not async_read, transparent=mode == WRITE_FIRST)
|
||||
rdport = self.read_port(domain="comb" if async_read else clock_domain,
|
||||
transparent=mode == WRITE_FIRST)
|
||||
rdport.addr.name = "{}_addr".format(self.name)
|
||||
adr = rdport.addr
|
||||
dat_r = rdport.data
|
||||
if write_capable:
|
||||
wrport = self.write_port(granularity=we_granularity)
|
||||
wrport = self.write_port(domain=clock_domain, granularity=we_granularity)
|
||||
wrport.addr = rdport.addr
|
||||
we = wrport.en
|
||||
dat_w = wrport.data
|
||||
|
|
Loading…
Reference in a new issue