From 380a2ca91847f845afa1008218448995ac876ed2 Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Tue, 11 Aug 2015 11:39:23 -0500 Subject: [PATCH] ruby: slicc: allow mathematical operations on Ticks --- src/mem/slicc/ast/OperatorExprAST.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mem/slicc/ast/OperatorExprAST.py b/src/mem/slicc/ast/OperatorExprAST.py index b1614b6a0..7752e9c07 100644 --- a/src/mem/slicc/ast/OperatorExprAST.py +++ b/src/mem/slicc/ast/OperatorExprAST.py @@ -67,6 +67,7 @@ class InfixOperatorExprAST(ExprAST): elif self.op in ("+", "-", "*", "/"): expected_types = [("int", "int", "int"), ("Cycles", "Cycles", "Cycles"), + ("Tick", "Tick", "Tick"), ("Cycles", "int", "Cycles"), ("Scalar", "int", "Scalar"), ("int", "bool", "int"), -- 2.30.2