remove unneeded functions, make result and r_data local to elaborate()
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 19 Mar 2019 05:05:48 +0000 (05:05 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Tue, 19 Mar 2019 05:05:48 +0000 (05:05 +0000)
src/add/example_buf_pipe.py

index f760ce3948e0e96f3b7d18d18636f50d0f93c2c7..52568b5a0621ea1e440289697a8a38ae5be2380b 100644 (file)
@@ -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