forked from M-Labs/artiq
rtio: expose coarse timestamp in RTIO and DRTIO satellite cores
This commit is contained in:
parent
5272c11704
commit
9142a5ab8a
|
@ -90,6 +90,7 @@ class DRTIOSatellite(Module):
|
|||
coarse_ts.eq(coarse_ts + 1)
|
||||
)
|
||||
self.comb += self.rt_packet.cri.counter.eq(coarse_ts << fine_ts_width)
|
||||
self.coarse_ts = coarse_ts
|
||||
|
||||
self.submodules.outputs = ClockDomainsRenamer("rio")(
|
||||
SED(channels, fine_ts_width, "sync",
|
||||
|
|
|
@ -73,6 +73,7 @@ class Core(Module, AutoCSR):
|
|||
coarse_ts_cdc.i.eq(coarse_ts),
|
||||
self.cri.counter.eq(coarse_ts_cdc.o << glbl_fine_ts_width)
|
||||
]
|
||||
self.coarse_ts = coarse_ts
|
||||
|
||||
# Outputs/Inputs
|
||||
quash_channels = [n for n, c in enumerate(channels) if isinstance(c, LogChannel)]
|
||||
|
|
Loading…
Reference in New Issue