Root.py (7534:c76a14014c27) | Root.py (7861:4ebff121cc0e) |
---|---|
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; --- 43 unchanged lines hidden (view full) --- 52 @classmethod 53 def getInstance(cls): 54 return Root._the_instance 55 56 def path(self): 57 return 'root' 58 59 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; --- 43 unchanged lines hidden (view full) --- 52 @classmethod 53 def getInstance(cls): 54 return Root._the_instance 55 56 def path(self): 57 return 'root' 58 59 type = 'Root' |
60 dummy = Param.Int(0, "We don't support objects without params") | 60 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") |