Changeset 47 for sources/src/gen_code.cc


Ignore:
Timestamp:
Oct 26, 2009, 7:07:37 PM (15 years ago)
Author:
buchmann
Message:

This patch simplifies SystemCASS.

Remove:

  • ckeckings about multiwriting on registers and ports
  • checkings related to FSM modeling
  • regression tests related to the checkings
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sources/src/gen_code.cc

    r41 r47  
    5858#endif
    5959
    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
    6861
    6962// Enable CPP call, this is useful for typeinfo-enabled classes
     
    608601void static_simulate_1_cycle (void)
    609602{
    610 #ifdef CONFIG_CHECK_FSM_RULES
    611   casc_fsm_step = TRANSITION;
    612 #endif
    613603  call_functions (pf[0]); // transition
    614604  update     ();
    615 #ifdef CONFIG_CHECK_FSM_RULES
    616   casc_fsm_step = GEN_MOORE;
    617 #endif
    618605  call_functions_in_parallel (pf[1]); // moore generation
    619 #ifdef CONFIG_CHECK_FSM_RULES
    620   casc_fsm_step = GEN_MEALY;
    621 #endif
    622606  call_functions (pf[2]); // mealy generation
    623 #ifdef CONFIG_CHECK_FSM_RULES
    624   casc_fsm_step = STIMULI;
    625 #endif
    626607}
    627608
     
    668649void quasistatic_simulate_1_cycle (void)
    669650{
    670 #ifdef CONFIG_CHECK_FSM_RULES
    671   casc_fsm_step = TRANSITION;
    672 #endif
    673651  method_process_list_t::iterator mm;
    674652  for( mm = func_list[0].begin(); mm != func_list[0].end(); ++mm)
     
    678656  }
    679657  update     ();
    680 #ifdef CONFIG_CHECK_FSM_RULES
    681   casc_fsm_step = GEN_MOORE;
    682 #endif
    683658  for( mm = func_list[1].begin(); mm != func_list[1].end(); ++mm)
    684659  {
     
    686661    Call (m);
    687662  }
    688 #ifdef CONFIG_CHECK_FSM_RULES
    689   casc_fsm_step = GEN_MEALY;
    690 #endif
    691663  quasistatic_mealy_generation ();
    692 #ifdef CONFIG_CHECK_FSM_RULES
    693   casc_fsm_step = STIMULI;
    694 #endif
    695664}
    696665
Note: See TracChangeset for help on using the changeset viewer.