config.py (2763:c3741c707d53) | config.py (2797:b5f26b4eacef) |
---|---|
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 --- 529 unchanged lines hidden (view full) --- 538 # Create C++ port connections corresponding to the connections in 539 # _port_map (& recursively for all children) 540 def connectPorts(self): 541 for portRef in self._port_map.itervalues(): 542 applyOrMap(portRef, 'ccConnect') 543 for child in self._children.itervalues(): 544 child.connectPorts() 545 | 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 --- 529 unchanged lines hidden (view full) --- 538 # Create C++ port connections corresponding to the connections in 539 # _port_map (& recursively for all children) 540 def connectPorts(self): 541 for portRef in self._port_map.itervalues(): 542 applyOrMap(portRef, 'ccConnect') 543 for child in self._children.itervalues(): 544 child.connectPorts() 545 |
546 def startQuiesce(self, quiesce_event, recursive): 547 count = 0 548 # ParamContexts don't serialize 549 if isinstance(self, SimObject) and not isinstance(self, ParamContext): 550 if self._ccObject.quiesce(quiesce_event): 551 count = 1 552 if recursive: 553 for child in self._children.itervalues(): 554 count += child.startQuiesce(quiesce_event, True) 555 return count 556 557 def resume(self): 558 if isinstance(self, SimObject) and not isinstance(self, ParamContext): 559 self._ccObject.resume() 560 for child in self._children.itervalues(): 561 child.resume() 562 563 def changeTiming(self, mode): 564 if isinstance(self, SimObject) and not isinstance(self, ParamContext): 565 self._ccObject.setMemoryMode(mode) 566 for child in self._children.itervalues(): 567 child.changeTiming(mode) 568 569 def takeOverFrom(self, old_cpu): 570 cpu_ptr = cc_main.convertToBaseCPUPtr(old_cpu._ccObject) 571 self._ccObject.takeOverFrom(cpu_ptr) 572 |
|
546 # generate output file for 'dot' to display as a pretty graph. 547 # this code is currently broken. 548 def outputDot(self, dot): 549 label = "{%s|" % self.path 550 if isSimObject(self.realtype): 551 label += '%s|' % self.type 552 553 if self.children: --- 947 unchanged lines hidden --- | 573 # generate output file for 'dot' to display as a pretty graph. 574 # this code is currently broken. 575 def outputDot(self, dot): 576 label = "{%s|" % self.path 577 if isSimObject(self.realtype): 578 label += '%s|' % self.type 579 580 if self.children: --- 947 unchanged lines hidden --- |