From 4d2e540290bbd226f564d3557e7b21773892c7e0 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Wed, 26 Feb 2020 19:18:34 +0100 Subject: [PATCH] usb3_core: simplify out_fifo.sink.valid --- usb3_core/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usb3_core/core.py b/usb3_core/core.py index 946dbd5..ff5adf2 100644 --- a/usb3_core/core.py +++ b/usb3_core/core.py @@ -115,12 +115,12 @@ class USB3Core(Module, AutoCSR): out_stall = Signal() out_active = Signal() out_active_d = Signal() - self.comb += out_fifo.sink.valid.eq(out_active_d) self.sync += [ + out_fifo.sink.valid.eq(out_active), out_fifo.sink.data.eq(out_data), out_fifo.sink.ctrl.eq(out_datak), out_active_d.eq(out_active), - out_fifo.sink.first.eq(out_active & ~ out_active_d), + out_fifo.sink.first.eq(out_active & ~out_active_d), ] self.comb += out_fifo.sink.last.eq(~out_active & out_active_d)