forked from M-Labs/artiq
rtio: SED, InputCollector use rio clock domain
This commit is contained in:
parent
0bf57f4ebd
commit
a533f2a0cd
|
@ -60,17 +60,17 @@ class Core(Module, AutoCSR):
|
||||||
# Outputs/Inputs
|
# Outputs/Inputs
|
||||||
quash_channels = [n for n, c in enumerate(channels) if isinstance(c, LogChannel)]
|
quash_channels = [n for n, c in enumerate(channels) if isinstance(c, LogChannel)]
|
||||||
|
|
||||||
outputs = SED(channels, tsc.glbl_fine_ts_width,
|
outputs = ClockDomainsRenamer("rio")(SED(channels, tsc.glbl_fine_ts_width,
|
||||||
quash_channels=quash_channels,
|
quash_channels=quash_channels,
|
||||||
lane_count=lane_count, fifo_depth=fifo_depth,
|
lane_count=lane_count, fifo_depth=fifo_depth,
|
||||||
interface=self.cri)
|
interface=self.cri))
|
||||||
self.submodules += outputs
|
self.submodules += outputs
|
||||||
self.comb += outputs.coarse_timestamp.eq(tsc.coarse_ts)
|
self.comb += outputs.coarse_timestamp.eq(tsc.coarse_ts)
|
||||||
self.sync += outputs.minimum_coarse_timestamp.eq(tsc.coarse_ts + 12)
|
self.sync += outputs.minimum_coarse_timestamp.eq(tsc.coarse_ts + 12)
|
||||||
|
|
||||||
inputs = InputCollector(tsc, channels,
|
inputs = ClockDomainsRenamer("rio")(InputCollector(tsc, channels,
|
||||||
quash_channels=quash_channels,
|
quash_channels=quash_channels,
|
||||||
interface=self.cri)
|
interface=self.cri))
|
||||||
self.submodules += inputs
|
self.submodules += inputs
|
||||||
|
|
||||||
# Asychronous output errors
|
# Asychronous output errors
|
||||||
|
|
Loading…
Reference in New Issue