From: Luke Kenneth Casson Leighton Date: Thu, 28 Mar 2019 14:16:11 +0000 (+0000) Subject: remove unneeded ports functions X-Git-Tag: ls180-24jan2020~1428 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=55e4fa711c56061a69af3dd86478f0cb6ab81525;p=ieee754fpu.git remove unneeded ports functions --- diff --git a/src/add/nmigen_add_experiment.py b/src/add/nmigen_add_experiment.py index 62880a41..495a0b4c 100644 --- a/src/add/nmigen_add_experiment.py +++ b/src/add/nmigen_add_experiment.py @@ -1880,15 +1880,6 @@ class FPADDInMuxPipe(PriorityCombMuxInPipe): stage = PassThroughStage(iospec) PriorityCombMuxInPipe.__init__(self, stage, p_len=self.num_rows) - def ports(self): - res = [] - for i in range(len(self.p)): - res += [self.p[i].i_valid, self.p[i].o_ready] + \ - self.p[i].i_data.ports() - res += [self.n.i_ready, self.n.o_valid] + \ - self.n.o_data.ports() - return res - class FPADDMuxOutPipe(CombMuxOutPipe): def __init__(self, width, id_wid, num_rows): diff --git a/src/add/test_inout_mux_pipe.py b/src/add/test_inout_mux_pipe.py index 1bfc8dfe..d0ff6489 100644 --- a/src/add/test_inout_mux_pipe.py +++ b/src/add/test_inout_mux_pipe.py @@ -144,16 +144,6 @@ class TestPriorityMuxPipe(PriorityCombMuxInPipe): stage = PassThroughStage() PriorityCombMuxInPipe.__init__(self, stage, p_len=self.num_rows) - def ports(self): - res = [] - for i in range(len(self.p)): - res += [self.p[i].i_valid, self.p[i].o_ready] + \ - self.p[i].i_data.ports() - res += [self.n.i_ready, self.n.o_valid] + \ - self.n.o_data.ports() - return res - - class OutputTest: def __init__(self, dut):