summaryrefslogtreecommitdiff
path: root/src/mem/ruby/slicc_interface/Controller.py
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2013-03-22 15:53:23 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2013-03-22 15:53:23 -0500
commiteccc86e8095995d49326a9fffc3a1088b97b03fc (patch)
tree1621ce6ec3a78f90a653628ba3d8b9108fc3d814 /src/mem/ruby/slicc_interface/Controller.py
parent5aa43e130acec02bc616008a8758cf5096025c19 (diff)
downloadgem5-eccc86e8095995d49326a9fffc3a1088b97b03fc.tar.xz
ruby: connect two controllers using only message buffers
This patch modifies ruby so that two controllers can be connected to each other with only message buffers in between. Before this patch, all the controllers had to be connected to the network for them to communicate with each other. With this patch, one can have protocols where a controller is not connected to the network, but communicates with another controller through a message buffer.
Diffstat (limited to 'src/mem/ruby/slicc_interface/Controller.py')
-rw-r--r--src/mem/ruby/slicc_interface/Controller.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mem/ruby/slicc_interface/Controller.py b/src/mem/ruby/slicc_interface/Controller.py
index 5c2fd9b71..f8242322e 100644
--- a/src/mem/ruby/slicc_interface/Controller.py
+++ b/src/mem/ruby/slicc_interface/Controller.py
@@ -42,4 +42,6 @@ class RubyController(ClockedObject):
buffer_size = Param.Int(0, "max buffer size 0 means infinite")
recycle_latency = Param.Cycles(10, "")
number_of_TBEs = Param.Int(256, "")
- ruby_system = Param.RubySystem("");
+ ruby_system = Param.RubySystem("")
+
+ peer = Param.RubyController(NULL, "")