From 7d2f797b9bac9d0f30b6ad5a9df8745dd7851bd2 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 28 Mar 2019 14:45:55 +0000 Subject: [PATCH] create temporary, simplifies graph --- src/add/singlepipe.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/add/singlepipe.py b/src/add/singlepipe.py index 28a3810c..ffd515f6 100644 --- a/src/add/singlepipe.py +++ b/src/add/singlepipe.py @@ -625,13 +625,17 @@ class UnbufferedPipeline(ControlBase): if hasattr(self.stage, "setup"): self.stage.setup(m, r_data) + # some temporarie p_i_valid = Signal(reset_less=True) + pv = Signal(reset_less=True) m.d.comb += p_i_valid.eq(self.p.i_valid_logic()) + m.d.comb += pv.eq(self.p.i_valid & self.p.o_ready) + m.d.comb += self.n.o_valid.eq(data_valid) m.d.comb += self.p.o_ready.eq(~data_valid | self.n.i_ready) m.d.sync += data_valid.eq(p_i_valid | \ (~self.n.i_ready & data_valid)) - with m.If(self.p.i_valid & self.p.o_ready): + with m.If(pv): m.d.sync += eq(r_data, self.p.i_data) m.d.comb += eq(self.n.o_data, self.stage.process(r_data)) return m -- 2.30.2