FuncCallExprAST.py (9106:aa9b75db7ea0) | FuncCallExprAST.py (9171:ae88ecf37145) |
---|---|
1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 2# Copyright (c) 2009 The Hewlett-Packard Development Company 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 128 unchanged lines hidden (view full) --- 137 138 code(''' 139 if (result == TransitionResult_Valid) { 140 counter++; 141 continue; // Check the first port again 142 } 143 144 if (result == TransitionResult_ResourceStall) { | 1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood 2# Copyright (c) 2009 The Hewlett-Packard Development Company 3# All rights reserved. 4# 5# Redistribution and use in source and binary forms, with or without 6# modification, are permitted provided that the following conditions are 7# met: redistributions of source code must retain the above copyright 8# notice, this list of conditions and the following disclaimer; --- 128 unchanged lines hidden (view full) --- 137 138 code(''' 139 if (result == TransitionResult_Valid) { 140 counter++; 141 continue; // Check the first port again 142 } 143 144 if (result == TransitionResult_ResourceStall) { |
145 g_eventQueue_ptr->scheduleEvent(this, 1); | 145 scheduleEvent(this, 1); |
146 147 // Cannot do anything with this transition, go check next doable transition (mostly likely of next port) 148 } 149} 150''') 151 elif self.proc_name == "doubleTrigger": 152 # NOTE: Use the doubleTrigger call with extreme caution 153 # the key to double trigger is the second event triggered --- 14 unchanged lines hidden (view full) --- 168 // ensure the event suceeded 169 assert(result2 == TransitionResult_Valid); 170 171 counter++; 172 continue; // Check the first port again 173 } 174 175 if (result1 == TransitionResult_ResourceStall) { | 146 147 // Cannot do anything with this transition, go check next doable transition (mostly likely of next port) 148 } 149} 150''') 151 elif self.proc_name == "doubleTrigger": 152 # NOTE: Use the doubleTrigger call with extreme caution 153 # the key to double trigger is the second event triggered --- 14 unchanged lines hidden (view full) --- 168 // ensure the event suceeded 169 assert(result2 == TransitionResult_Valid); 170 171 counter++; 172 continue; // Check the first port again 173 } 174 175 if (result1 == TransitionResult_ResourceStall) { |
176 g_eventQueue_ptr->scheduleEvent(this, 1); | 176 scheduleEvent(this, 1); |
177 // Cannot do anything with this transition, go check next 178 // doable transition (mostly likely of next port) 179 } 180} 181''') 182 elif self.proc_name == "error": 183 code("$0", self.exprs[0].embedError(cvec[0])) 184 elif self.proc_name == "assert": --- 47 unchanged lines hidden --- | 177 // Cannot do anything with this transition, go check next 178 // doable transition (mostly likely of next port) 179 } 180} 181''') 182 elif self.proc_name == "error": 183 code("$0", self.exprs[0].embedError(cvec[0])) 184 elif self.proc_name == "assert": --- 47 unchanged lines hidden --- |