Root.py (8801:1a84c6a81299) Root.py (9338:97b4a2be1e5b)
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;

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

53 @classmethod
54 def getInstance(cls):
55 return Root._the_instance
56
57 def path(self):
58 return 'root'
59
60 type = 'Root'
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;

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

53 @classmethod
54 def getInstance(cls):
55 return Root._the_instance
56
57 def path(self):
58 return 'root'
59
60 type = 'Root'
61 cxx_header = "sim/root.hh"
61
62 full_system = Param.Bool("if this is a full system simulation")
63
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")
62
63 full_system = Param.Bool("if this is a full system simulation")
64
65 # Time syncing prevents the simulation from running faster than real time.
66 time_sync_enable = Param.Bool(False, "whether time syncing is enabled")
67 time_sync_period = Param.Clock("100ms", "how often to sync with real time")
68 time_sync_spin_threshold = \
69 Param.Clock("100us", "when less than this much time is left, spin")