ruby: changes how Topologies are created
authorBrad Beckmann <Brad.Beckmann@amd.com>
Wed, 11 Jul 2012 05:51:53 +0000 (22:51 -0700)
committerBrad Beckmann <Brad.Beckmann@amd.com>
Wed, 11 Jul 2012 05:51:53 +0000 (22:51 -0700)
commit11b725c19da4d08ae471678f6da867c67e3c15b5
tree58bd0ebd09b404f0e860531bda80195f234d0bf2
parent745274cbd4851b3bf725b24138c1fd13746492ec
ruby: changes how Topologies are created

Instead of just passing a list of controllers to the makeTopology function
in src/mem/ruby/network/topologies/<Topo>.py we pass in a function pointer
which knows how to make the topology, possibly with some extra state set
in the configs/ruby/<protocol>.py file. Thus, we can move all of the files
from network/topologies to configs/topologies. A new class BaseTopology
is added which all topologies in configs/topologies must inheirit from and
follow its API.

--HG--
rename : src/mem/ruby/network/topologies/Crossbar.py => configs/topologies/Crossbar.py
rename : src/mem/ruby/network/topologies/Mesh.py => configs/topologies/Mesh.py
rename : src/mem/ruby/network/topologies/MeshDirCorners.py => configs/topologies/MeshDirCorners.py
rename : src/mem/ruby/network/topologies/Pt2Pt.py => configs/topologies/Pt2Pt.py
rename : src/mem/ruby/network/topologies/Torus.py => configs/topologies/Torus.py
28 files changed:
configs/example/ruby_direct_test.py
configs/example/ruby_fs.py
configs/example/ruby_mem_test.py
configs/example/ruby_network_test.py
configs/example/ruby_random_test.py
configs/example/se.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
configs/topologies/BaseTopology.py [new file with mode: 0644]
configs/topologies/Cluster.py [new file with mode: 0644]
configs/topologies/Crossbar.py [new file with mode: 0644]
configs/topologies/Mesh.py [new file with mode: 0644]
configs/topologies/MeshDirCorners.py [new file with mode: 0644]
configs/topologies/Pt2Pt.py [new file with mode: 0644]
configs/topologies/Torus.py [new file with mode: 0644]
src/mem/ruby/network/topologies/Crossbar.py [deleted file]
src/mem/ruby/network/topologies/Mesh.py [deleted file]
src/mem/ruby/network/topologies/MeshDirCorners.py [deleted file]
src/mem/ruby/network/topologies/Pt2Pt.py [deleted file]
src/mem/ruby/network/topologies/SConscript
src/mem/ruby/network/topologies/TopologyCreator.py [new file with mode: 0644]
src/mem/ruby/network/topologies/Torus.py [deleted file]
src/python/m5/SimObject.py