X-Git-Url: https://git.libre-soc.org/?p=pinmux.git;a=blobdiff_plain;f=src%2Fbsv%2Fperipheral_gen%2Fbase.py;h=4f4cb786cc2e224b0673b5d6de401f77976bbf8e;hp=eb9b896872f5ada6ff0f45991bbf15df57f3e4f0;hb=4bd2e8996bba6fcbf5cc299648f23b761019347f;hpb=ad1c3f41a3d2e7becd618e1081fc7b09bb1b5ac8 diff --git a/src/bsv/peripheral_gen/base.py b/src/bsv/peripheral_gen/base.py index eb9b896..4f4cb78 100644 --- a/src/bsv/peripheral_gen/base.py +++ b/src/bsv/peripheral_gen/base.py @@ -953,7 +953,8 @@ class PeripheralInterfaces(object): class IfaceIter(object): - def __init__(self, name, count, *args): + def __init__(self, ifaces, name, count, *args): + self.ifaces = ifaces self.i = 0 self.name = name self.maxcount = count @@ -981,10 +982,6 @@ class IfaceIter(object): class MkConnection(IfaceIter): - def __init__(self, ifaces, name, count, *args): - self.ifaces = ifaces - IfaceIter.__init__(self, name, count, *args) - def check(self, name, i): return not self.ifaces.is_on_fastbus(name, i) @@ -997,10 +994,6 @@ class MkConnection(IfaceIter): class MkExtIface(IfaceIter): - def __init__(self, ifaces, name, count, *args): - self.ifaces = ifaces - IfaceIter.__init__(self, name, count, *args) - def check(self, name, i): return not self.ifaces.is_on_fastbus(name, i) @@ -1010,10 +1003,6 @@ class MkExtIface(IfaceIter): class MkPinCon(IfaceIter): - def __init__(self, ifaces, name, count, *args): - self.ifaces = ifaces - IfaceIter.__init__(self, name, count, *args) - def check(self, name, i): return not self.ifaces.is_on_fastbus(name, i) @@ -1023,10 +1012,6 @@ class MkPinCon(IfaceIter): class MkClkCon(IfaceIter): - def __init__(self, ifaces, name, count, *args): - self.ifaces = ifaces - IfaceIter.__init__(self, name, count, *args) - def check(self, name, i): return not self.ifaces.is_on_fastbus(name, i)