From: Luke Kenneth Casson Leighton Date: Mon, 8 Apr 2019 02:42:48 +0000 (+0100) Subject: rename BufferedPipeline2 to SimpleHandshake X-Git-Tag: ls180-24jan2020~1294 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=2d3ec2f323a5ee06f8911ce7fd1fab3163d02c81;p=ieee754fpu.git rename BufferedPipeline2 to SimpleHandshake --- diff --git a/src/add/singlepipe.py b/src/add/singlepipe.py index c10b34e9..6cbc30b7 100644 --- a/src/add/singlepipe.py +++ b/src/add/singlepipe.py @@ -149,12 +149,10 @@ it's quite a complex state machine! - BufferedPipeline2 - ----------------- + SimpleHandshake + --------------- - Synchronised pipeline - - Based on: + Synchronised pipeline, Based on: https://github.com/ZipCPU/dbgbus/blob/master/hexbus/rtl/hbdeword.v """ @@ -641,10 +639,9 @@ class BufferedPipeline(ControlBase): return self.m -class BufferedPipeline2(ControlBase): - """ buffered pipeline stage. data and strobe signals travel in sync. - if ever the input is ready and the output is not, processed data - is shunted in a temporary register. +class SimpleHandshake(ControlBase): + """ simple handshake control. data and strobe signals travel in sync. + implements the protocol used by Wishbone and AXI4. Argument: stage. see Stage API above diff --git a/src/add/test_buf_pipe.py b/src/add/test_buf_pipe.py index d81e7f10..adb20cbe 100644 --- a/src/add/test_buf_pipe.py +++ b/src/add/test_buf_pipe.py @@ -25,7 +25,7 @@ from example_buf_pipe import ExampleStageCls from example_buf_pipe import PrevControl, NextControl, BufferedPipeline from example_buf_pipe import StageChain, ControlBase, StageCls from singlepipe import UnbufferedPipeline2 -from singlepipe import BufferedPipeline2 +from singlepipe import SimpleHandshake from random import randint, seed @@ -669,11 +669,11 @@ class ExampleUnBufDelayedPipe(BufferedPipeline): # Test 15 ###################################################################### -class ExampleBufModeAdd1Pipe(BufferedPipeline2): +class ExampleBufModeAdd1Pipe(SimpleHandshake): def __init__(self): stage = ExampleStageCls() - BufferedPipeline2.__init__(self, stage) + SimpleHandshake.__init__(self, stage) ######################################################################