read_config.py (12564:2778478ca882) read_config.py (13731:67cd980cb20f)
1# Copyright (c) 2014 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

--- 266 unchanged lines hidden (view full) ---

275 if object_name == 'Null':
276 return NULL
277
278 parsed_ports = []
279 for port_name, port in obj.__class__._ports.iteritems():
280 # Assume that unnamed ports are unconnected
281 peers = self.config.get_port_peers(object_name, port_name)
282
1# Copyright (c) 2014 ARM Limited
2# All rights reserved.
3#
4# The license below extends only to copyright in the software and shall
5# not be construed as granting a license to any other intellectual
6# property including but not limited to intellectual property relating
7# to a hardware implementation of the functionality of the software
8# licensed hereunder. You may use the software subject to the license

--- 266 unchanged lines hidden (view full) ---

275 if object_name == 'Null':
276 return NULL
277
278 parsed_ports = []
279 for port_name, port in obj.__class__._ports.iteritems():
280 # Assume that unnamed ports are unconnected
281 peers = self.config.get_port_peers(object_name, port_name)
282
283 for index, peer in zip(xrange(0, len(peers)), peers):
283 for index, peer in zip(range(0, len(peers)), peers):
284 parsed_ports.append((
285 PortConnection(object_name, port.name, index),
286 PortConnection.from_string(peer)))
287
288 return parsed_ports
289
290 def bind_ports(self, connections):
291 """Bind all ports from the given connection list. Note that the

--- 254 unchanged lines hidden ---
284 parsed_ports.append((
285 PortConnection(object_name, port.name, index),
286 PortConnection.from_string(peer)))
287
288 return parsed_ports
289
290 def bind_ports(self, connections):
291 """Bind all ports from the given connection list. Note that the

--- 254 unchanged lines hidden ---