Rev | Line | |
---|
[1] | 1 | /*------------------------------------------------------------\ |
---|
| 2 | | | |
---|
| 3 | | Tool : systemcass | |
---|
| 4 | | | |
---|
| 5 | | File : fsm_rules.h | |
---|
| 6 | | | |
---|
| 7 | | Author : Buchmann Richard | |
---|
| 8 | | | |
---|
| 9 | | Date : 10_05_2005 | |
---|
| 10 | | | |
---|
| 11 | \------------------------------------------------------------*/ |
---|
| 12 | #ifndef __FSM_RULES_H__ |
---|
| 13 | #define __FSM_RULES_H__ |
---|
| 14 | |
---|
[8] | 15 | #ifdef HAVE_CONFIG_H |
---|
| 16 | #include "config.h" |
---|
| 17 | #endif |
---|
[1] | 18 | |
---|
[8] | 19 | #ifdef CONFIG_CHECK_FSM_RULES |
---|
| 20 | |
---|
[1] | 21 | namespace sc_core { |
---|
| 22 | |
---|
| 23 | typedef enum { TRANSITION, GEN_MOORE, GEN_MEALY, STIMULI, ELABORATION} casc_fsm_step_t; |
---|
| 24 | extern casc_fsm_step_t casc_fsm_step; |
---|
| 25 | |
---|
| 26 | inline const char *get_step_name () |
---|
| 27 | { const char *s[] = {"TRANSITION", "MOORE GENERATION", "MEALY GENERATION", "SIMULATION LOOP", "ELABORATION"}; return s[casc_fsm_step]; } |
---|
| 28 | |
---|
| 29 | } // end of sc_core namespace |
---|
| 30 | |
---|
| 31 | #endif |
---|
| 32 | |
---|
| 33 | #endif |
---|
| 34 | |
---|
Note: See
TracBrowser
for help on using the repository browser.