Root.py (9338:97b4a2be1e5b) | Root.py (9983:2cce74fe359e) |
---|---|
1# Copyright (c) 2005-2007 The Regents of The University of Michigan | 1# Copyright (c) 2005-2007 The Regents of The University of Michigan |
2# Copyright (c) 2010 Advanced Micro Devices, Inc. | 2# Copyright (c) 2010-2013 Advanced Micro Devices, Inc. 3# Copyright (c) 2013 Mark D. Hill and David A. Wood |
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; 9# redistributions in binary form must reproduce the above copyright 10# notice, this list of conditions and the following disclaimer in the --- 44 unchanged lines hidden (view full) --- 55 return Root._the_instance 56 57 def path(self): 58 return 'root' 59 60 type = 'Root' 61 cxx_header = "sim/root.hh" 62 | 4# All rights reserved. 5# 6# Redistribution and use in source and binary forms, with or without 7# modification, are permitted provided that the following conditions are 8# met: redistributions of source code must retain the above copyright 9# notice, this list of conditions and the following disclaimer; 10# redistributions in binary form must reproduce the above copyright 11# notice, this list of conditions and the following disclaimer in the --- 44 unchanged lines hidden (view full) --- 56 return Root._the_instance 57 58 def path(self): 59 return 'root' 60 61 type = 'Root' 62 cxx_header = "sim/root.hh" 63 |
64 # By default, root sim object and hence all other sim objects schedule 65 # event on the eventq with index 0. 66 eventq_index = 0 67 68 # Simulation Quantum for multiple main event queue simulation. 69 # Needs to be set explicitly for a multi-eventq simulation. 70 sim_quantum = Param.Tick(0, "simulation quantum") 71 |
|
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") | 72 full_system = Param.Bool("if this is a full system simulation") 73 74 # Time syncing prevents the simulation from running faster than real time. 75 time_sync_enable = Param.Bool(False, "whether time syncing is enabled") 76 time_sync_period = Param.Clock("100ms", "how often to sync with real time") 77 time_sync_spin_threshold = \ 78 Param.Clock("100us", "when less than this much time is left, spin") |