From: Luke Kenneth Casson Leighton Date: Sat, 6 Apr 2019 11:22:47 +0000 (+0100) Subject: try different buffermode in test 14 X-Git-Tag: ls180-24jan2020~1309 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=470b97b080d19f46efc42eda9a55f6ba9983f4e3;p=ieee754fpu.git try different buffermode in test 14 --- diff --git a/src/add/test_buf_pipe.py b/src/add/test_buf_pipe.py index 7bf5257f..85e1cd48 100644 --- a/src/add/test_buf_pipe.py +++ b/src/add/test_buf_pipe.py @@ -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