rtio/sed: support negative latency compensation

This commit is contained in:
Sebastien Bourdeauducq 2017-09-26 16:11:08 +08:00
parent f079ac6af6
commit 9905b8723b
1 changed files with 2 additions and 1 deletions

View File

@ -81,7 +81,8 @@ class LaneDistributor(Module):
self.comb += latency_compensation_port.adr.eq(self.cri.chan_sel[:16]) self.comb += latency_compensation_port.adr.eq(self.cri.chan_sel[:16])
# cycle #2, write # cycle #2, write
compensation = latency_compensation_port.dat_r compensation = Signal((14, True))
self.comb += compensation.eq(latency_compensation_port.dat_r)
timestamp_above_min = Signal() timestamp_above_min = Signal()
timestamp_above_laneA_min = Signal() timestamp_above_laneA_min = Signal()
timestamp_above_laneB_min = Signal() timestamp_above_laneB_min = Signal()