X-Git-Url: https://git.libre-soc.org/?p=ieee754fpu.git;a=blobdiff_plain;f=src%2Fadd%2Fexample_buf_pipe.py;h=5faee7876c83e602fecb47e6c9ba366a7ec7aa90;hp=fa52f3c70551abe1ebacff864fee96bed8bdbd5a;hb=9de2c40d3c1051650dd6f29b2ea5a0bd4e67b366;hpb=b58c1a8f96dfaa63e89c7f3d7fd65f0fec9c1932 diff --git a/src/add/example_buf_pipe.py b/src/add/example_buf_pipe.py index fa52f3c7..5faee787 100644 --- a/src/add/example_buf_pipe.py +++ b/src/add/example_buf_pipe.py @@ -58,16 +58,16 @@ class BufPipe: #self.i_p_rst = Signal() # >>in - comes in from PREVIOUS stage self.i_p_stb = Signal() # >>in - comes in from PREVIOUS stage self.i_n_busy = Signal() # in<< - comes in from the NEXT stage - self.i_data = Signal(32) # >>in - comes in from the PREVIOUS stage + self.i_data = Signal(16) # >>in - comes in from the PREVIOUS stage #self.i_rst = Signal() # buffered - self.r_data = Signal(32) + self.r_data = Signal(16) # output self.o_n_stb = Signal() # out>> - goes out to the NEXT stage self.o_p_busy = Signal() # <> - goes out to the NEXT stage + self.o_data = Signal(16) # out>> - goes out to the NEXT stage def pre_process(self, d_in): return d_in | 0xf0000 @@ -90,7 +90,7 @@ class BufPipe: ] # store result of processing in combinatorial temporary - result = Signal(32) + result = Signal(16) with m.If(self.i_p_stb): # input is valid: process it m.d.comb += result.eq(self.process(self.i_data)) with m.If(o_p_busyn): # not stalled