From eccc86e8095995d49326a9fffc3a1088b97b03fc Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Fri, 22 Mar 2013 15:53:23 -0500 Subject: 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. --- src/mem/slicc/ast/ObjDeclAST.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/mem/slicc/ast') diff --git a/src/mem/slicc/ast/ObjDeclAST.py b/src/mem/slicc/ast/ObjDeclAST.py index 4509b4527..6469bc25a 100644 --- a/src/mem/slicc/ast/ObjDeclAST.py +++ b/src/mem/slicc/ast/ObjDeclAST.py @@ -41,7 +41,8 @@ class ObjDeclAST(DeclAST): def generate(self): machineComponentSym = False - if "network" in self and "virtual_network" not in self: + if "network" in self and not ("virtual_network" in self or + "physical_network" in self) : self.error("Network queues require a 'virtual_network' attribute") type = self.type_ast.type -- cgit v1.2.3