From 2656ba60457fb14bf07680668504fd3f2f6979f8 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Wed, 27 Mar 2019 23:18:04 +0000 Subject: [PATCH] add comments --- src/add/test_inout_mux_pipe.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/add/test_inout_mux_pipe.py b/src/add/test_inout_mux_pipe.py index 9e2b1026..95a2d0a2 100644 --- a/src/add/test_inout_mux_pipe.py +++ b/src/add/test_inout_mux_pipe.py @@ -232,13 +232,13 @@ class TestMuxOutPipe(MuxUnbufferedPipeline): class TestInOutPipe: def __init__(self, num_rows=4): self.num_rows = num_rows - self.inpipe = TestPriorityMuxPipe(num_rows) - self.pipe1 = PassThroughPipe() - self.pipe2 = PassThroughPipe() - self.outpipe = TestMuxOutPipe(num_rows) + self.inpipe = TestPriorityMuxPipe(num_rows) # fan-in (combinatorial) + self.pipe1 = PassThroughPipe() # stage 1 (clock-sync) + self.pipe2 = PassThroughPipe() # stage 2 (clock-sync) + self.outpipe = TestMuxOutPipe(num_rows) # fan-out (combinatorial) - self.p = self.inpipe.p - self.n = self.outpipe.n + self.p = self.inpipe.p # kinda annoying, + self.n = self.outpipe.n # use pipe in/out as this class in/out self._ports = self.inpipe.ports() + self.outpipe.ports() def elaborate(self, platform): -- 2.30.2