params.py (3932:62e915bb6704) params.py (4123:9c80390ea1bb)
1# Copyright (c) 2004-2006 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

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

889 raise
890 self.connect(realPeer)
891
892 # Call C++ to create corresponding port connection between C++ objects
893 def ccConnect(self):
894 if self.ccConnected: # already done this
895 return
896 peer = self.peer
1# Copyright (c) 2004-2006 The Regents of The University of Michigan
2# All rights reserved.
3#
4# Redistribution and use in source and binary forms, with or without
5# modification, are permitted provided that the following conditions are
6# met: redistributions of source code must retain the above copyright
7# notice, this list of conditions and the following disclaimer;
8# redistributions in binary form must reproduce the above copyright

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

889 raise
890 self.connect(realPeer)
891
892 # Call C++ to create corresponding port connection between C++ objects
893 def ccConnect(self):
894 if self.ccConnected: # already done this
895 return
896 peer = self.peer
897 internal.main.connectPorts(self.simobj.getCCObject(), self.name,
898 self.index, peer.simobj.getCCObject(),
899 peer.name, peer.index)
897 internal.sim_object.connectPorts(self.simobj.getCCObject(), self.name,
898 self.index, peer.simobj.getCCObject(), peer.name, peer.index)
900 self.ccConnected = True
901 peer.ccConnected = True
902
903# A reference to an individual element of a VectorPort... much like a
904# PortRef, but has an index.
905class VectorPortElementRef(PortRef):
906 def __init__(self, simobj, name, index):
907 PortRef.__init__(self, simobj, name)

--- 132 unchanged lines hidden ---
899 self.ccConnected = True
900 peer.ccConnected = True
901
902# A reference to an individual element of a VectorPort... much like a
903# PortRef, but has an index.
904class VectorPortElementRef(PortRef):
905 def __init__(self, simobj, name, index):
906 PortRef.__init__(self, simobj, name)

--- 132 unchanged lines hidden ---