StateMachine.py (10920:58fbfddff18d) | StateMachine.py (10962:7233a5f7ac8f) |
---|---|
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; --- 1317 unchanged lines hidden (view full) --- 1326 # Iterative over all the multiple transitions that share 1327 # the same code 1328 for trans in transitions: 1329 code(' case HASH_FUN($trans):') 1330 code(' $case\n') 1331 1332 code(''' 1333 default: | 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; --- 1317 unchanged lines hidden (view full) --- 1326 # Iterative over all the multiple transitions that share 1327 # the same code 1328 for trans in transitions: 1329 code(' case HASH_FUN($trans):') 1330 code(' $case\n') 1331 1332 code(''' 1333 default: |
1334 fatal("Invalid transition\\n" | 1334 panic("Invalid transition\\n" |
1335 "%s time: %d addr: %s event: %s state: %s\\n", 1336 name(), curCycle(), addr, event, state); 1337 } 1338 1339 return TransitionResult_Valid; 1340} 1341''') 1342 code.write(path, "%s_Transitions.cc" % self.ident) --- 182 unchanged lines hidden --- | 1335 "%s time: %d addr: %s event: %s state: %s\\n", 1336 name(), curCycle(), addr, event, state); 1337 } 1338 1339 return TransitionResult_Valid; 1340} 1341''') 1342 code.write(path, "%s_Transitions.cc" % self.ident) --- 182 unchanged lines hidden --- |