From: Luke Kenneth Casson Leighton Date: Fri, 12 Apr 2019 01:47:37 +0000 (+0100) Subject: process nxt.o_data in connect_out, not prev data X-Git-Tag: ls180-24jan2020~1249 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a63af7618c2352bf69666ae98a204acf5c295ea2;p=ieee754fpu.git process nxt.o_data in connect_out, not prev data --- 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), ]