From 6dd5c9ed262067bf66c83de2adfff98fecbd960d Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 27 Mar 2019 14:27:06 +0000 Subject: [PATCH] move data_valid to local variable --- src/add/singlepipe.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.30.2