config: Move the memory instantiation outside FSConfig
authorAndreas Hansson <andreas.hansson@arm.com>
Mon, 19 Aug 2013 07:52:27 +0000 (03:52 -0400)
committerAndreas Hansson <andreas.hansson@arm.com>
Mon, 19 Aug 2013 07:52:27 +0000 (03:52 -0400)
commita8480fe1c34db25ae8acb5f79d571bc924e0daeb
treec8c792eefae54e9c1599b371720dc5f8e9c9440a
parentd5593f3c75c9d005b89788647a9383e791c9c2a2
config: Move the memory instantiation outside FSConfig

This patch moves the instantiation of the memory controller outside
FSConfig and instead relies on the mem_ranges to pass the information
to the caller (e.g. fs.py or one of the regression scripts). The main
motivation for this change is to expose the structural composition of
the memory system and allow more tuning and configuration without
adding a large number of options to the makeSystem functions.

The patch updates the relevant example scripts to maintain the current
functionality. As the order that ports are connected to the memory bus
changes (in certain regresisons), some bus stats are shuffled
around. For example, what used to be layer 0 is now layer 1.

Going forward, options will be added to support the addition of
multi-channel memory controllers.
43 files changed:
configs/common/FSConfig.py
configs/example/fs.py
configs/example/ruby_fs.py
configs/ruby/MESI_CMP_directory.py
configs/ruby/MI_example.py
configs/ruby/MOESI_CMP_directory.py
configs/ruby/MOESI_CMP_token.py
configs/ruby/MOESI_hammer.py
configs/ruby/Network_test.py
configs/ruby/Ruby.py
tests/configs/alpha_generic.py
tests/configs/arm_generic.py
tests/configs/base_config.py
tests/configs/memtest-ruby.py
tests/configs/pc-o3-timing.py
tests/configs/pc-simple-atomic.py
tests/configs/pc-simple-timing-ruby.py
tests/configs/pc-simple-timing.py
tests/configs/pc-switcheroo-full.py
tests/configs/realview-o3-checker.py
tests/configs/realview-o3-dual.py
tests/configs/realview-o3.py
tests/configs/realview-simple-atomic-dual.py
tests/configs/realview-simple-atomic.py
tests/configs/realview-simple-timing-dual.py
tests/configs/realview-simple-timing.py
tests/configs/realview-switcheroo-atomic.py
tests/configs/realview-switcheroo-full.py
tests/configs/realview-switcheroo-o3.py
tests/configs/realview-switcheroo-timing.py
tests/configs/rubytest-ruby.py
tests/configs/simple-timing-ruby.py
tests/configs/t1000-simple-atomic.py
tests/configs/tsunami-inorder.py
tests/configs/tsunami-o3-dual.py
tests/configs/tsunami-o3.py
tests/configs/tsunami-simple-atomic-dual.py
tests/configs/tsunami-simple-atomic.py
tests/configs/tsunami-simple-timing-dual.py
tests/configs/tsunami-simple-timing.py
tests/configs/tsunami-switcheroo-full.py
tests/configs/twosys-tsunami-simple-atomic.py
tests/configs/x86_generic.py