Root.py (7861:4ebff121cc0e) | Root.py (8801:1a84c6a81299) |
---|---|
1# Copyright (c) 2005-2007 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; --- 14 unchanged lines hidden (view full) --- 23# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27# 28# Authors: Nathan Binkert 29 30from m5.SimObject import SimObject | 1# Copyright (c) 2005-2007 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; --- 14 unchanged lines hidden (view full) --- 23# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 24# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 26# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27# 28# Authors: Nathan Binkert 29 30from m5.SimObject import SimObject |
31from m5.defines import buildEnv |
|
31from m5.params import * 32from m5.util import fatal 33 34class Root(SimObject): 35 36 _the_instance = None 37 38 def __new__(cls, **kwargs): --- 14 unchanged lines hidden (view full) --- 53 def getInstance(cls): 54 return Root._the_instance 55 56 def path(self): 57 return 'root' 58 59 type = 'Root' 60 | 32from m5.params import * 33from m5.util import fatal 34 35class Root(SimObject): 36 37 _the_instance = None 38 39 def __new__(cls, **kwargs): --- 14 unchanged lines hidden (view full) --- 54 def getInstance(cls): 55 return Root._the_instance 56 57 def path(self): 58 return 'root' 59 60 type = 'Root' 61 |
62 full_system = Param.Bool("if this is a full system simulation") 63 |
|
61 # Time syncing prevents the simulation from running faster than real time. 62 time_sync_enable = Param.Bool(False, "whether time syncing is enabled") 63 time_sync_period = Param.Clock("100ms", "how often to sync with real time") 64 time_sync_spin_threshold = \ 65 Param.Clock("100us", "when less than this much time is left, spin") | 64 # Time syncing prevents the simulation from running faster than real time. 65 time_sync_enable = Param.Bool(False, "whether time syncing is enabled") 66 time_sync_period = Param.Clock("100ms", "how often to sync with real time") 67 time_sync_spin_threshold = \ 68 Param.Clock("100us", "when less than this much time is left, spin") |