Changeset 47 for sources/src/sc_port.cc
- Timestamp:
- Oct 26, 2009, 7:07:37 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/src/sc_port.cc
r35 r47 57 57 58 58 using namespace std; 59 60 #ifdef CONFIG_CHECK_FSM_RULES61 #include "fsm_rules.h"62 namespace sc_core {63 casc_fsm_step_t casc_fsm_step = ELABORATION;64 }65 #endif66 59 67 60 namespace sc_core { … … 259 252 cerr << "done.\n"; 260 253 #endif 261 #if defined(CONFIG_CHECK_MULTIWRITING2REGISTER)262 sc_core::pending_writing2register_clear ();263 #endif264 254 } 265 255 … … 354 344 } 355 345 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 void361 pending_writing2register_clear ()362 {363 pending_writing2register_set.clear();364 }365 366 void367 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); // 6375 } else376 pending_writing2register_set.insert(p);377 }378 #endif379 380 346 } // end of sc_core namespace 381 347
Note: See TracChangeset
for help on using the changeset viewer.