@@ -107,8 +107,6 @@ def __init__(self, resources, connectors):
107
107
self .connectors = OrderedDict ()
108
108
self ._conn_pins = OrderedDict ()
109
109
110
- # List of all IOPort instances created
111
- self ._ports = []
112
110
# List of (pin, port, buffer) pairs for non-dir="-" requests.
113
111
self ._pins = []
114
112
# Constraint list
@@ -220,7 +218,6 @@ def resolve(resource, dir, xdr, path, attrs):
220
218
PortMetadata (name , attrs )
221
219
for name in phys_names
222
220
])
223
- self ._ports .append (iop )
224
221
port = io .SingleEndedPort (iop , invert = phys .invert , direction = direction )
225
222
if isinstance (phys , DiffPairs ):
226
223
phys_names_p = phys .p .map_names (self ._conn_pins , resource )
@@ -234,7 +231,6 @@ def resolve(resource, dir, xdr, path, attrs):
234
231
PortMetadata (name , attrs )
235
232
for name in phys_names_n
236
233
])
237
- self ._ports += [p , n ]
238
234
port = io .DifferentialPort (p , n , invert = phys .invert , direction = direction )
239
235
240
236
for phys_name in phys_names :
@@ -274,17 +270,6 @@ def resolve(resource, dir, xdr, path, attrs):
274
270
def iter_pins (self ):
275
271
yield from self ._pins
276
272
277
- def iter_ports (self ):
278
- yield from self ._ports
279
-
280
- def iter_port_constraints_bits (self ):
281
- for port in self ._ports :
282
- if len (port ) == 1 :
283
- yield port .name , port .metadata [0 ].name , port .metadata [0 ].attrs
284
- else :
285
- for bit , meta in enumerate (port .metadata ):
286
- yield f"{ port .name } [{ bit } ]" , meta .name , meta .attrs
287
-
288
273
def add_clock_constraint (self , clock , frequency ):
289
274
if isinstance (clock , ClockSignal ):
290
275
raise TypeError (f"A clock constraint can only be applied to a Signal, but a "
0 commit comments