From: Luke Kenneth Casson Leighton Date: Wed, 27 Mar 2019 14:27:06 +0000 (+0000) Subject: move data_valid to local variable X-Git-Tag: ls180-24jan2020~1465 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6dd5c9ed262067bf66c83de2adfff98fecbd960d;p=ieee754fpu.git move data_valid to local variable --- diff --git a/src/add/singlepipe.py b/src/add/singlepipe.py index 9851739e..206f815f 100644 --- a/src/add/singlepipe.py +++ b/src/add/singlepipe.py @@ -596,11 +596,11 @@ class UnbufferedPipeline(ControlBase): def elaborate(self, platform): m = Module() + data_valid = Signal() # is data valid or not r_data = self.stage.ispec() # input type if hasattr(self.stage, "setup"): self.stage.setup(m, r_data) - data_valid = Signal() p_i_valid = Signal(reset_less=True) m.d.comb += p_i_valid.eq(self.p.i_valid_logic()) m.d.comb += self.n.o_valid.eq(data_valid)