diff options
author | Brad Beckmann <Brad.Beckmann@amd.com> | 2015-07-20 09:15:18 -0500 |
---|---|---|
committer | Brad Beckmann <Brad.Beckmann@amd.com> | 2015-07-20 09:15:18 -0500 |
commit | f9fa242f423a7bfe144d6c48383443ee71d10f35 (patch) | |
tree | 3977b4d68f75aaae400bbf15aec172cbf63f54ec /src/mem/slicc/parser.py | |
parent | c4ffd4989c35a4afea1097fec97ac5bcd52974b3 (diff) | |
download | gem5-f9fa242f423a7bfe144d6c48383443ee71d10f35.tar.xz |
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.
Diffstat (limited to 'src/mem/slicc/parser.py')
-rw-r--r-- | src/mem/slicc/parser.py | 5 |
1 files changed, 5 insertions, 0 deletions
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]) |