params.py (11991:d3f19484145f) | params.py (12050:d42eab4e6323) |
---|---|
1# Copyright (c) 2012-2014, 2017 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 --- 231 unchanged lines hidden (view full) --- 240 241 def ini_str(self): 242 return ' '.join([v.ini_str() for v in self]) 243 244 def getValue(self): 245 return [ v.getValue() for v in self ] 246 247 def unproxy(self, base): | 1# Copyright (c) 2012-2014, 2017 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 --- 231 unchanged lines hidden (view full) --- 240 241 def ini_str(self): 242 return ' '.join([v.ini_str() for v in self]) 243 244 def getValue(self): 245 return [ v.getValue() for v in self ] 246 247 def unproxy(self, base): |
248 if len(self) == 1 and isinstance(self[0], proxy.AllProxy): | 248 if len(self) == 1 and isinstance(self[0], proxy.BaseProxy): 249 # The value is a proxy (e.g. Parent.any, Parent.all or 250 # Parent.x) therefore try resolve it |
249 return self[0].unproxy(base) 250 else: | 251 return self[0].unproxy(base) 252 else: |
251 return [v.unproxy(base) for v in self] | 253 return [v.unproxy(base) for v in self] |
252 253class SimObjectVector(VectorParamValue): 254 # support clone operation 255 def __call__(self, **kwargs): 256 return SimObjectVector([v(**kwargs) for v in self]) 257 258 def clear_parent(self, old_parent): 259 for v in self: --- 1816 unchanged lines hidden --- | 254 255class SimObjectVector(VectorParamValue): 256 # support clone operation 257 def __call__(self, **kwargs): 258 return SimObjectVector([v(**kwargs) for v in self]) 259 260 def clear_parent(self, old_parent): 261 for v in self: --- 1816 unchanged lines hidden --- |