From: Luke Kenneth Casson Leighton Date: Thu, 28 Mar 2019 14:45:55 +0000 (+0000) Subject: create temporary, simplifies graph X-Git-Tag: ls180-24jan2020~1423 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=7d2f797b9bac9d0f30b6ad5a9df8745dd7851bd2;p=ieee754fpu.git create temporary, simplifies graph --- 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