SimObject.py (8860:ccd525e43682) | SimObject.py (8900:7d74a97c525f) |
---|---|
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) | 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 setattr(cc_params, 'port_' + port_name + '_connection_count', 998 len(port)) | 996 setattr(cc_params, 'port_' + port_name + '_connection_count', 997 len(port) if port != None else 0) |
999 self._ccParams = cc_params 1000 return self._ccParams 1001 1002 # Get C++ object corresponding to this object, calling C++ if 1003 # necessary to construct it. Does *not* recursively create 1004 # children. 1005 def getCCObject(self): 1006 if not self._ccObject: --- 152 unchanged lines hidden --- | 998 self._ccParams = cc_params 999 return self._ccParams 1000 1001 # Get C++ object corresponding to this object, calling C++ if 1002 # necessary to construct it. Does *not* recursively create 1003 # children. 1004 def getCCObject(self): 1005 if not self._ccObject: --- 152 unchanged lines hidden --- |