simulate.py (8245:a9d06c894afe) simulate.py (8296:be7f03723412)
1# Copyright (c) 2005 The Regents of The University of Michigan
2# Copyright (c) 2010 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;

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

126
127 return internal.event.simulate(*args, **kwargs)
128
129# Export curTick to user script.
130def curTick():
131 return internal.core.curTick()
132
133# Python exit handlers happen in reverse order. We want to dump stats last.
1# Copyright (c) 2005 The Regents of The University of Michigan
2# Copyright (c) 2010 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;

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

126
127 return internal.event.simulate(*args, **kwargs)
128
129# Export curTick to user script.
130def curTick():
131 return internal.core.curTick()
132
133# Python exit handlers happen in reverse order. We want to dump stats last.
134atexit.register(internal.stats.dump)
134atexit.register(stats.dump)
135
136# register our C++ exit callback function with Python
137atexit.register(internal.core.doExitCleanup)
138
139# This loops until all objects have been fully drained.
140def doDrain(root):
141 all_drained = drain(root)
142 while (not all_drained):

--- 74 unchanged lines hidden ---
135
136# register our C++ exit callback function with Python
137atexit.register(internal.core.doExitCleanup)
138
139# This loops until all objects have been fully drained.
140def doDrain(root):
141 all_drained = drain(root)
142 while (not all_drained):

--- 74 unchanged lines hidden ---