From 076d04a653f5a4252c6c16e010ad0d7bf36c1674 Mon Sep 17 00:00:00 2001 From: Akash Bagdia Date: Thu, 27 Jun 2013 05:49:49 -0400 Subject: config: Add a system clock command-line option This patch adds a 'sys_clock' command-line option and use it to assign clocks to the system during instantiation. As part of this change, the default clock in the System class is removed and whenever a system is instantiated a system clock value must be set. A default value is provided for the command-line option. The configs and tests are updated accordingly. --- configs/common/Options.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'configs/common') diff --git a/configs/common/Options.py b/configs/common/Options.py index 08881cf11..aa4d65ead 100644 --- a/configs/common/Options.py +++ b/configs/common/Options.py @@ -78,6 +78,10 @@ def addCommonOptions(parser): parser.add_option("--simpoint-interval", type="int", default=10000000, help="SimPoint interval in num of instructions") parser.add_option("--clock", action="store", type="string", default='2GHz') + parser.add_option("--sys-clock", action="store", type="string", + default='1GHz', + help = """Top-level clock for blocks running at system + speed""") parser.add_option("--cpu-clock", action="store", type="string", default='2GHz', help="Clock for blocks running at CPU speed") -- cgit v1.2.3