1# Copyright (c) 2012 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 --- 979 unchanged lines hidden (view full) --- 988 vec.append(v) 989 else: 990 setattr(cc_params, param, value) 991 992 port_names = self._ports.keys() 993 port_names.sort() 994 for port_name in port_names: 995 port = self._port_refs.get(port_name, None) |
996 if port != None: 997 port_count = len(port) 998 else: 999 port_count = 0 |
1000 setattr(cc_params, 'port_' + port_name + '_connection_count', |
1001 port_count) |
1002 self._ccParams = cc_params 1003 return self._ccParams 1004 1005 # Get C++ object corresponding to this object, calling C++ if 1006 # necessary to construct it. Does *not* recursively create 1007 # children. 1008 def getCCObject(self): 1009 if not self._ccObject: --- 152 unchanged lines hidden --- |