Deleted Added
sdiff udiff text old ( 3584:8c3cdb2c001c ) new ( 3624:aaba7e06ece4 )
full compact
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

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

825 raise
826 self.connect(realPeer)
827
828 # Call C++ to create corresponding port connection between C++ objects
829 def ccConnect(self):
830 if self.ccConnected: # already done this
831 return
832 peer = self.peer
833 cc_main.connectPorts(self.simobj.getCCObject(), self.name, self.index,
834 peer.simobj.getCCObject(), peer.name, peer.index)
835 self.ccConnected = True
836 peer.ccConnected = True
837
838# A reference to an individual element of a VectorPort... much like a
839# PortRef, but has an index.
840class VectorPortElementRef(PortRef):
841 def __init__(self, simobj, name, index):
842 PortRef.__init__(self, simobj, name)

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

965 'MaxAddr', 'MaxTick', 'AllMemory',
966 'NextEthernetAddr', 'NULL',
967 'Port', 'VectorPort']
968
969# see comment on imports at end of __init__.py.
970from SimObject import isSimObject, isSimObjectSequence, isSimObjectClass
971import proxy
972import objects
973import cc_main