try different buffermode in test 14
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 6 Apr 2019 11:22:47 +0000 (12:22 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 6 Apr 2019 11:22:47 +0000 (12:22 +0100)
src/add/test_buf_pipe.py

index 7bf5257f15e07b08a172d1424728dd3b2badd897..85e1cd4843e727242c207e449e38eec5e9abd5b0 100644 (file)
@@ -624,8 +624,9 @@ class ExampleStageDelayCls(StageCls):
 class ExampleBufDelayedPipe(BufferedPipeline):
 
     def __init__(self):
-        stage = ExampleStageDelayCls()
-        BufferedPipeline.__init__(self, stage, stage_ctl=True)
+        stage = ExampleStageDelayCls(valid_trigger=3)
+        BufferedPipeline.__init__(self, stage, stage_ctl=True,
+                                    buffermode=False)
 
     def elaborate(self, platform):
         m = BufferedPipeline.elaborate(self, platform)
@@ -653,14 +654,14 @@ def test12_resultfn(o_data, expected, i, o):
 # Test 13
 ######################################################################
 
-class ExampleUnBufDelayedPipe(UnbufferedPipeline):
+class ExampleUnBufDelayedPipe(BufferedPipeline):
 
     def __init__(self):
         stage = ExampleStageDelayCls()
-        UnbufferedPipeline.__init__(self, stage, stage_ctl=True)
+        BufferedPipeline.__init__(self, stage, stage_ctl=True)
 
     def elaborate(self, platform):
-        m = UnbufferedPipeline.elaborate(self, platform)
+        m = BufferedPipeline.elaborate(self, platform)
         m.submodules.stage = self.stage
         return m