2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-28 20:53:35 +08:00

drtio: fix aux controller clock domain mistakes

This commit is contained in:
Sebastien Bourdeauducq 2016-12-14 10:16:45 +08:00
parent 527757b471
commit e9592105ce

View File

@ -20,7 +20,8 @@ class Transmitter(Module, AutoCSR):
self.aux_tx = CSR()
self.specials.mem = Memory(mem_dw, max_packet//(mem_dw//8))
converter = stream.Converter(mem_dw, ll_dw)
converter = ClockDomainsRenamer("rtio")(
stream.Converter(mem_dw, ll_dw))
self.submodules += converter
# when continuously fed, the Converter outputs data continuously
@ -107,7 +108,8 @@ class Receiver(Module, AutoCSR):
mem_dw = max(min_mem_dw, ll_dw)
self.specials.mem = Memory(mem_dw, max_packet//(mem_dw//8))
converter = stream.Converter(ll_dw, mem_dw)
converter = ClockDomainsRenamer("rtio_rx")(
stream.Converter(ll_dw, mem_dw))
self.submodules += converter
# when continuously drained, the Converter accepts data continuously