From 55e4fa711c56061a69af3dd86478f0cb6ab81525 Mon Sep 17 00:00:00 2001 From: Luke Kenneth Casson Leighton Date: Thu, 28 Mar 2019 14:16:11 +0000 Subject: [PATCH] remove unneeded ports functions --- src/add/nmigen_add_experiment.py | 9 --------- src/add/test_inout_mux_pipe.py | 10 ---------- 2 files changed, 19 deletions(-) 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): -- 2.30.2