simulate.py (7534:c76a14014c27) simulate.py (7823:dac01f14f20f)
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;

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

122 for root in need_resume:
123 resume(root)
124 need_resume = []
125
126 return internal.event.simulate(*args, **kwargs)
127
128# Export curTick to user script.
129def curTick():
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;

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

122 for root in need_resume:
123 resume(root)
124 need_resume = []
125
126 return internal.event.simulate(*args, **kwargs)
127
128# Export curTick to user script.
129def curTick():
130 return internal.core.cvar.curTick
130 return internal.core.curTick()
131
132# Python exit handlers happen in reverse order. We want to dump stats last.
133atexit.register(internal.stats.dump)
134
135# register our C++ exit callback function with Python
136atexit.register(internal.core.doExitCleanup)
137
138# This loops until all objects have been fully drained.

--- 77 unchanged lines hidden ---
131
132# Python exit handlers happen in reverse order. We want to dump stats last.
133atexit.register(internal.stats.dump)
134
135# register our C++ exit callback function with Python
136atexit.register(internal.core.doExitCleanup)
137
138# This loops until all objects have been fully drained.

--- 77 unchanged lines hidden ---