power: Add voltage domains to the clock domains
authorAkash Bagdia <akash.bagdia@arm.com>
Mon, 19 Aug 2013 07:52:28 +0000 (03:52 -0400)
committerAkash Bagdia <akash.bagdia@arm.com>
Mon, 19 Aug 2013 07:52:28 +0000 (03:52 -0400)
commite7e17f92db8b249aaf99eb93a2447937d78270d5
tree980dd4678997a5c360ed770b2ce1a225cd0eea32
parenta8480fe1c34db25ae8acb5f79d571bc924e0daeb
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.
22 files changed:
configs/common/Options.py
configs/example/fs.py
configs/example/se.py
src/python/m5/params.py
src/python/m5/util/convert.py
src/sim/ClockDomain.py
src/sim/SConscript
src/sim/VoltageDomain.py [new file with mode: 0644]
src/sim/clock_domain.cc
src/sim/clock_domain.hh
src/sim/voltage_domain.cc [new file with mode: 0644]
src/sim/voltage_domain.hh [new file with mode: 0644]
tests/configs/base_config.py
tests/configs/memtest-ruby.py
tests/configs/memtest.py
tests/configs/pc-simple-timing-ruby.py
tests/configs/rubytest-ruby.py
tests/configs/simple-timing-ruby.py
tests/configs/t1000-simple-atomic.py
tests/configs/tgen-simple-dram.py
tests/configs/tgen-simple-mem.py
tests/configs/twosys-tsunami-simple-atomic.py