add post-processing optional capability
[ieee754fpu.git] / src / add / test_buf_pipe.py
index b04a96a5378ea37edb46c91c487507e19862cad3..27fb9b0b32a110c98dc74b360e6bc936bd576e55 100644 (file)
@@ -608,14 +608,21 @@ class ExampleStageDelayCls(StageCls):
 
     @property
     def d_ready(self):
+        """ data is ready to be accepted when this is true
+        """
         return (self.count == 1)# | (self.count == 3)
         return Const(1)
 
     def d_valid(self, i_ready):
+        """ data is valid at output when this is true
+        """
         return self.count == self.valid_trigger
         return Const(1)
 
     def process(self, i):
+        return i
+
+    def postprocess(self, i):
         """ process the input data and returns it (adds 1)
         """
         return i + 1