Changeset 47 for sources/src/sc_signal.h


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_signal.h

    r32 r47  
    2626#include "internal_ext.h"
    2727
    28 #ifdef CONFIG_CHECK_FSM_RULES
    29 #include "fsm_rules.h"
    30 #endif
    31 
    3228namespace sc_core {
    3329
     
    4541        ///////////////////// DEPRECATED
    4642// C ANSI-only since it is needed to link with extern "C"
    47 // this declaration is not in casc.h since the CONFIG_CHECK_FSM_RULES macro
    48 // is not defined.
    4943
    5044extern void bind (sc_port_base&,sc_port_base&);
     
    250244                << " on signal " << name () << "\n";
    251245#endif
    252 #ifdef CONFIG_CHECK_FSM_RULES
    253         // we can read value from sc_signal type (used like a register) at any time
    254 #endif 
    255246    return READ_SIGNAL(const T, get_pointer());
    256247}
     
    262253sc_signal<T>::write( const data_type& value_ )
    263254{
    264 #ifdef CONFIG_CHECK_FSM_RULES
    265         if ((casc_fsm_step != TRANSITION)
    266                         && ( casc_fsm_step != STIMULI)) {
    267                 std::cerr << "FSM rules error : trying to write on signal "
    268                           << name ()
    269                           << " from " << get_step_name () << " function.\n";
    270                 exit (-1);
    271         }               
    272 #endif
    273255#ifdef CONFIG_DEBUG
    274256  if (get_pointer() == NULL)
     
    278260  }
    279261#endif
    280 #ifdef CONFIG_CHECK_MULTIWRITING2REGISTER
    281   pending_writing2register_record_and_check (get_pointer ());
    282 #endif
    283262#ifdef DUMP_WRITE
    284263  if (sc_signal<T>::read() == value_)
Note: See TracChangeset for help on using the changeset viewer.