params.py (8596:e6e22fa77883) | params.py (8597:45c9f664a365) |
---|---|
1# Copyright (c) 2004-2006 The Regents of The University of Michigan 2# Copyright (c) 2010-2011 Advanced Micro Devices, Inc. 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 1368 unchanged lines hidden (view full) --- 1377 except: 1378 print "Error in unproxying port '%s' of %s" % \ 1379 (self.name, self.simobj.path()) 1380 raise 1381 self.connect(realPeer) 1382 1383 # Call C++ to create corresponding port connection between C++ objects 1384 def ccConnect(self): | 1# Copyright (c) 2004-2006 The Regents of The University of Michigan 2# Copyright (c) 2010-2011 Advanced Micro Devices, Inc. 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 1368 unchanged lines hidden (view full) --- 1377 except: 1378 print "Error in unproxying port '%s' of %s" % \ 1379 (self.name, self.simobj.path()) 1380 raise 1381 self.connect(realPeer) 1382 1383 # Call C++ to create corresponding port connection between C++ objects 1384 def ccConnect(self): |
1385 from m5.internal.params import connectPorts | 1385 from m5.internal.pyobject import connectPorts |
1386 1387 if self.ccConnected: # already done this 1388 return 1389 peer = self.peer 1390 if not self.peer: # nothing to connect to 1391 return 1392 try: 1393 connectPorts(self.simobj.getCCObject(), self.name, self.index, --- 151 unchanged lines hidden --- | 1386 1387 if self.ccConnected: # already done this 1388 return 1389 peer = self.peer 1390 if not self.peer: # nothing to connect to 1391 return 1392 try: 1393 connectPorts(self.simobj.getCCObject(), self.name, self.index, --- 151 unchanged lines hidden --- |