diff options
author | Akash Bagdia <akash.bagdia@arm.com> | 2013-08-19 03:52:28 -0400 |
---|---|---|
committer | Akash Bagdia <akash.bagdia@arm.com> | 2013-08-19 03:52:28 -0400 |
commit | e7e17f92db8b249aaf99eb93a2447937d78270d5 (patch) | |
tree | 980dd4678997a5c360ed770b2ce1a225cd0eea32 /tests/configs/memtest.py | |
parent | a8480fe1c34db25ae8acb5f79d571bc924e0daeb (diff) | |
download | gem5-e7e17f92db8b249aaf99eb93a2447937d78270d5.tar.xz |
power: Add voltage domains to the clock domains
This patch adds the notion of voltage domains, and groups clock
domains that operate under the same voltage (i.e. power supply) into
domains. Each clock domain is required to be associated with a voltage
domain, and the latter requires the voltage to be explicitly set.
A voltage domain is an independently controllable voltage supply being
provided to section of the design. Thus, if you wish to perform
dynamic voltage scaling on a CPU, its clock domain should be
associated with a separate voltage domain.
The current implementation of the voltage domain does not take into
consideration cases where there are derived voltage domains running at
ratio of native voltage domains, as with the case where there can be
on-chip buck/boost (charge pumps) voltage regulation logic.
The regression and configuration scripts are updated with a generic
voltage domain for the system, and one for the CPUs.
Diffstat (limited to 'tests/configs/memtest.py')
-rw-r--r-- | tests/configs/memtest.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/tests/configs/memtest.py b/tests/configs/memtest.py index 35efe646d..fbd18b779 100644 --- a/tests/configs/memtest.py +++ b/tests/configs/memtest.py @@ -39,12 +39,16 @@ cpus = [ MemTest() for i in xrange(nb_cores) ] system = System(cpu = cpus, funcmem = SimpleMemory(in_addr_map = False), funcbus = NoncoherentBus(), physmem = SimpleMemory(), - membus = CoherentBus(width=16), - clk_domain = SrcClockDomain(clock = '1GHz')) + membus = CoherentBus(width=16)) +# Dummy voltage domain for all our clock domains +system.voltage_domain = VoltageDomain() +system.clk_domain = SrcClockDomain(clock = '1GHz', + voltage_domain = system.voltage_domain) # Create a seperate clock domain for components that should run at # CPUs frequency -system.cpu_clk_domain = SrcClockDomain(clock = '2GHz') +system.cpu_clk_domain = SrcClockDomain(clock = '2GHz', + voltage_domain = system.voltage_domain) system.toL2Bus = CoherentBus(clk_domain = system.cpu_clk_domain, width=16) system.l2c = L2Cache(clk_domain = system.cpu_clk_domain, size='64kB', assoc=8) |