Changeset 47 for sources/src/gen_code.cc
- Timestamp:
- Oct 26, 2009, 7:07:37 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/src/gen_code.cc
r41 r47 58 58 #endif 59 59 60 #ifdef CONFIG_CHECK_FSM_RULES 61 #include "fsm_rules.h" 62 #define fsm_check_flag "-DCONFIG_CHECK_FSM_RULES" 63 #else 64 #define fsm_check_flag 65 #endif 66 67 #define casc_cflags GENERATED_MODULE_CFLAGS " " fsm_check_flag 60 #define casc_cflags GENERATED_MODULE_CFLAGS 68 61 69 62 // Enable CPP call, this is useful for typeinfo-enabled classes … … 608 601 void static_simulate_1_cycle (void) 609 602 { 610 #ifdef CONFIG_CHECK_FSM_RULES611 casc_fsm_step = TRANSITION;612 #endif613 603 call_functions (pf[0]); // transition 614 604 update (); 615 #ifdef CONFIG_CHECK_FSM_RULES616 casc_fsm_step = GEN_MOORE;617 #endif618 605 call_functions_in_parallel (pf[1]); // moore generation 619 #ifdef CONFIG_CHECK_FSM_RULES620 casc_fsm_step = GEN_MEALY;621 #endif622 606 call_functions (pf[2]); // mealy generation 623 #ifdef CONFIG_CHECK_FSM_RULES624 casc_fsm_step = STIMULI;625 #endif626 607 } 627 608 … … 668 649 void quasistatic_simulate_1_cycle (void) 669 650 { 670 #ifdef CONFIG_CHECK_FSM_RULES671 casc_fsm_step = TRANSITION;672 #endif673 651 method_process_list_t::iterator mm; 674 652 for( mm = func_list[0].begin(); mm != func_list[0].end(); ++mm) … … 678 656 } 679 657 update (); 680 #ifdef CONFIG_CHECK_FSM_RULES681 casc_fsm_step = GEN_MOORE;682 #endif683 658 for( mm = func_list[1].begin(); mm != func_list[1].end(); ++mm) 684 659 { … … 686 661 Call (m); 687 662 } 688 #ifdef CONFIG_CHECK_FSM_RULES689 casc_fsm_step = GEN_MEALY;690 #endif691 663 quasistatic_mealy_generation (); 692 #ifdef CONFIG_CHECK_FSM_RULES693 casc_fsm_step = STIMULI;694 #endif695 664 } 696 665
Note: See TracChangeset
for help on using the changeset viewer.