StateMachine.py (12334:e0ab29a34764) StateMachine.py (12612:a64e6b723e5f)
1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
2# Copyright (c) 2009 The Hewlett-Packard Development Company
3# Copyright (c) 2013 Advanced Micro Devices, Inc.
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 1386 unchanged lines hidden (view full) ---

1395 # the same code
1396 for trans in transitions:
1397 code(' case HASH_FUN($trans):')
1398 code(' $case\n')
1399
1400 code('''
1401 default:
1402 panic("Invalid transition\\n"
1# Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
2# Copyright (c) 2009 The Hewlett-Packard Development Company
3# Copyright (c) 2013 Advanced Micro Devices, Inc.
4# All rights reserved.
5#
6# Redistribution and use in source and binary forms, with or without
7# modification, are permitted provided that the following conditions are
8# met: redistributions of source code must retain the above copyright

--- 1386 unchanged lines hidden (view full) ---

1395 # the same code
1396 for trans in transitions:
1397 code(' case HASH_FUN($trans):')
1398 code(' $case\n')
1399
1400 code('''
1401 default:
1402 panic("Invalid transition\\n"
1403 "%s time: %d addr: %s event: %s state: %s\\n",
1403 "%s time: %d addr: %#x event: %s state: %s\\n",
1404 name(), curCycle(), addr, event, state);
1405 }
1406
1407 return TransitionResult_Valid;
1408}
1409''')
1410 code.write(path, "%s_Transitions.cc" % self.ident)
1411

--- 181 unchanged lines hidden ---
1404 name(), curCycle(), addr, event, state);
1405 }
1406
1407 return TransitionResult_Valid;
1408}
1409''')
1410 code.write(path, "%s_Transitions.cc" % self.ident)
1411

--- 181 unchanged lines hidden ---