From ab910c1ad277fbbac917572927ea6ebda1c6131a Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Mon, 8 Apr 2019 03:42:14 +0100 Subject: [PATCH] simplify UnbufferedPipeline2 --- src/add/singlepipe.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/add/singlepipe.py b/src/add/singlepipe.py index bb1426a0..c10b34e9 100644 --- a/src/add/singlepipe.py +++ b/src/add/singlepipe.py @@ -845,8 +845,7 @@ class UnbufferedPipeline2(ControlBase): self.m.d.comb += self.n.o_valid.eq(buf_full | p_i_valid) self.m.d.comb += self.p._o_ready.eq(~buf_full) - self.m.d.sync += buf_full.eq(~self.n.i_ready_test & \ - (p_i_valid | buf_full)) + self.m.d.sync += buf_full.eq(~self.n.i_ready_test & self.n.o_valid) odata = Mux(buf_full, buf, self.stage.process(self.p.i_data)) self.m.d.comb += eq(self.n.o_data, odata) -- 2.30.2