From f9fa242f423a7bfe144d6c48383443ee71d10f35 Mon Sep 17 00:00:00 2001 From: Brad Beckmann Date: Mon, 20 Jul 2015 09:15:18 -0500 Subject: slicc: improved stalling support in protocols Adds features to allow protocols to reschedule controllers when conditionally stalling within inport logic or actions. Also insures that resource and protocol stalls are re-evaluated the next cycle. --- src/mem/slicc/parser.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/mem/slicc/parser.py') diff --git a/src/mem/slicc/parser.py b/src/mem/slicc/parser.py index 1ce8bf1bd..0cbe9ea63 100644 --- a/src/mem/slicc/parser.py +++ b/src/mem/slicc/parser.py @@ -113,6 +113,7 @@ class SLICC(Grammar): 'stall_and_wait' : 'STALL_AND_WAIT', 'enqueue' : 'ENQUEUE', 'check_allocate' : 'CHECK_ALLOCATE', + 'check_next_cycle' : 'CHECK_NEXT_CYCLE', 'check_stop_slots' : 'CHECK_STOP_SLOTS', 'static_cast' : 'STATIC_CAST', 'if' : 'IF', @@ -597,6 +598,10 @@ class SLICC(Grammar): "statement : CHECK_ALLOCATE '(' var ')' SEMI" p[0] = ast.CheckAllocateStatementAST(self, p[3]) + def p_statement__check_next_cycle(self, p): + "statement : CHECK_NEXT_CYCLE '(' ')' SEMI" + p[0] = ast.CheckNextCycleAST(self) + def p_statement__check_stop(self, p): "statement : CHECK_STOP_SLOTS '(' var ',' STRING ',' STRING ')' SEMI" p[0] = ast.CheckStopStatementAST(self, p[3], p[5], p[7]) -- cgit v1.2.3