From a1e782fa24191490825b0a43509cbb264b5cadd9 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Tue, 19 Mar 2019 05:05:48 +0000 Subject: [PATCH] remove unneeded functions, make result and r_data local to elaborate() --- src/add/example_buf_pipe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/add/example_buf_pipe.py b/src/add/example_buf_pipe.py index f760ce39..52568b5a 100644 --- a/src/add/example_buf_pipe.py +++ b/src/add/example_buf_pipe.py @@ -210,8 +210,8 @@ class BufferedPipeline(PipelineBase): ] # store result of processing in combinatorial temporary - with m.If(self.p.i_valid): # input is valid: process it - m.d.comb += eq(result, self.stage.process(self.p.i_data)) + #with m.If(self.p.i_valid): # input is valid: process it + m.d.comb += eq(result, self.stage.process(self.p.i_data)) # if not in stall condition, update the temporary register with m.If(self.p.o_ready): # not stalled m.d.sync += eq(r_data, result) # update buffer -- 2.30.2