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/sc_port_ext.h

    r35 r47  
    2222#endif
    2323
    24 #include "fsm_rules.h"
    2524#include "internal_ext.h"
    2625#include "port_dependency_ext.h"
     
    5655  ((value_type_&) (*((value_type_*) (pointer_))))
    5756
    58   ///////////////////// DEPRECATED
     57///////////////////// DEPRECATED
    5958// C ANSI-only since it is needed to link with extern "C"
    60 // this declaration is not in casc.h since the CONFIG_CHECK_FSM_RULES macro
    61 // is not defined.
    6259
    6360extern void bind (sc_port_base&,sc_port_base&);
     
    188185     << " on signal " << name () << "\n";
    189186#endif
    190 #ifdef CONFIG_CHECK_FSM_RULES
    191   if (casc_fsm_step == GEN_MOORE) {
    192     std::cerr << "FSM rules error : trying to read on input port '"
    193               << name ()
    194         << "' from " <<  get_step_name () << " function.\n";
    195     exit (-1);
    196   }   
    197 #endif
    198187  return READ_SIGNAL(const T, get_pointer());
    199188}
     
    298287     << " on signal " << name () << "\n";
    299288#endif
    300 #ifdef CONFIG_CHECK_FSM_RULES
    301   if (casc_fsm_step == GEN_MOORE) {
    302     std::cerr << "FSM rules error : trying to read on input/output port "
    303       << name () //get_name (get_pointer())
    304       << " from " << get_step_name () << " function.\n";
    305     exit (-1);
    306   }   
    307 #endif
    308289//  return val;
    309290  return READ_SIGNAL(const T, get_pointer());
     
    320301            << " on in/out port (writing into a signal) '" << name () << "'\n";
    321302#endif
    322 #ifdef CONFIG_CHECK_FSM_RULES
    323   if ((casc_fsm_step != GEN_MOORE) && ( casc_fsm_step != GEN_MEALY)) {
    324     std::cerr << "FSM rules error : trying to write on output port "
    325       << name ()
    326       << " from an " << get_step_name () << " function.\n";
    327     exit (-1);
    328   }   
    329 #endif
    330303//  T& ref = *(T*)(get_pointer());
    331 #if defined(CONFIG_CHECK_MULTIWRITING2PORT)
    332   check_multiwriting2port ();
    333 #endif
    334304#ifndef USE_PORT_DEPENDENCY
    335305  unstable |= (value_) != val; //ref;
Note: See TracChangeset for help on using the changeset viewer.