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/ast/FuncCallExprAST.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/ast/FuncCallExprAST.py')
-rw-r--r-- | src/mem/slicc/ast/FuncCallExprAST.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/mem/slicc/ast/FuncCallExprAST.py b/src/mem/slicc/ast/FuncCallExprAST.py index ad95bc884..8aebad336 100644 --- a/src/mem/slicc/ast/FuncCallExprAST.py +++ b/src/mem/slicc/ast/FuncCallExprAST.py @@ -145,7 +145,8 @@ class FuncCallExprAST(ExprAST): continue; // Check the first port again } - if (result == TransitionResult_ResourceStall) { + if (result == TransitionResult_ResourceStall || + result == TransitionResult_ProtocolStall) { scheduleEvent(Cycles(1)); // Cannot do anything with this transition, go check next doable transition (mostly likely of next port) @@ -172,6 +173,8 @@ if (!(${{cvec[0]}})) { code("set_tbe(m_tbe_ptr, %s);" %(cvec[0])); elif self.proc_name == "unset_tbe": code("unset_tbe(m_tbe_ptr);"); + elif self.proc_name == "stallPort": + code("scheduleEvent(Cycles(1));") else: # Normal function |