This also makes sure the native ports are instantiated for correct
clock domain.
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