From a63af7618c2352bf69666ae98a204acf5c295ea2 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Fri, 12 Apr 2019 02:47:37 +0100 Subject: [PATCH] process nxt.o_data in connect_out, not prev data --- src/add/singlepipe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/add/singlepipe.py b/src/add/singlepipe.py index e32a0536..93712077 100644 --- a/src/add/singlepipe.py +++ b/src/add/singlepipe.py @@ -280,10 +280,10 @@ class NextControl: do not use to connect stage-to-stage! """ i_ready = nxt.i_ready if direct else nxt.i_ready_test - o_data = fn(self.o_data) if fn is not None else self.o_data + o_data = fn(nxt.o_data) if fn is not None else nxt.o_data return [nxt.o_valid.eq(self.o_valid), self.i_ready.eq(i_ready), - eq(nxt.o_data, o_data), + eq(o_data, self.o_data), ] -- 2.30.2