Changeset 47 for sources/src/sc_port.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/sc_port.cc

    r35 r47  
    5757
    5858using namespace std;
    59 
    60 #ifdef CONFIG_CHECK_FSM_RULES
    61 #include "fsm_rules.h"
    62 namespace sc_core {
    63 casc_fsm_step_t casc_fsm_step = ELABORATION;
    64 }
    65 #endif
    6659
    6760namespace sc_core {
     
    259252  cerr << "done.\n";
    260253#endif
    261 #if defined(CONFIG_CHECK_MULTIWRITING2REGISTER)
    262   sc_core::pending_writing2register_clear ();
    263 #endif
    264254}
    265255
     
    354344}
    355345
    356 #if defined(CONFIG_CHECK_MULTIWRITING2REGISTER)
    357 typedef set<const tab_t*> pending_writing2register_set_t;
    358 pending_writing2register_set_t pending_writing2register_set;
    359 
    360 void
    361 pending_writing2register_clear  ()
    362 {
    363   pending_writing2register_set.clear();
    364 }
    365 
    366 void
    367 pending_writing2register_record_and_check (const tab_t *p)
    368 {
    369   if (pending_writing2register_set.find (p) != pending_writing2register_set.end())
    370   {
    371                 std::cerr << "Error : please check '" << get_name (p) << "'.\n";
    372     std::cerr << "Up to 1 writing per register is allowed during a cycle.\n";
    373     sc_stop ();
    374     exit (31072006); // 6
    375   } else
    376     pending_writing2register_set.insert(p);
    377 }
    378 #endif
    379 
    380346} // end of sc_core namespace
    381347
Note: See TracChangeset for help on using the changeset viewer.