SimObject.py (13778:318f777400e9) SimObject.py (13781:280e5206fd97)
1# Copyright (c) 2017-2018 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

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

1637 # Call C++ to create C++ object corresponding to this object
1638 def createCCObject(self):
1639 self.getCCParams()
1640 self.getCCObject() # force creation
1641
1642 def getValue(self):
1643 return self.getCCObject()
1644
1# Copyright (c) 2017-2018 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

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

1637 # Call C++ to create C++ object corresponding to this object
1638 def createCCObject(self):
1639 self.getCCParams()
1640 self.getCCObject() # force creation
1641
1642 def getValue(self):
1643 return self.getCCObject()
1644
1645 @cxxMethod(return_value_policy="reference")
1646 def getPort(self, if_name, idx):
1647 pass
1648
1645 # Create C++ port connections corresponding to the connections in
1646 # _port_refs
1647 def connectPorts(self):
1648 # Sort the ports based on their attribute name to ensure the
1649 # order is the same on all hosts
1650 for (attr, portRef) in sorted(self._port_refs.items()):
1651 portRef.ccConnect()
1652

--- 102 unchanged lines hidden ---
1649 # Create C++ port connections corresponding to the connections in
1650 # _port_refs
1651 def connectPorts(self):
1652 # Sort the ports based on their attribute name to ensure the
1653 # order is the same on all hosts
1654 for (attr, portRef) in sorted(self._port_refs.items()):
1655 portRef.ccConnect()
1656

--- 102 unchanged lines hidden ---