From 9905b8723b11dfdad305d9a8c4e03bd060252380 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 26 Sep 2017 16:11:08 +0800 Subject: [PATCH] rtio/sed: support negative latency compensation --- artiq/gateware/rtio/sed/lane_distributor.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/gateware/rtio/sed/lane_distributor.py b/artiq/gateware/rtio/sed/lane_distributor.py index c0a7e6857..232c37ac6 100644 --- a/artiq/gateware/rtio/sed/lane_distributor.py +++ b/artiq/gateware/rtio/sed/lane_distributor.py @@ -81,7 +81,8 @@ class LaneDistributor(Module): self.comb += latency_compensation_port.adr.eq(self.cri.chan_sel[:16]) # 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_laneA_min = Signal() timestamp_above_laneB_min = Signal()