Changeset 8 for branches/with_autoconf/src/sc_port.cc
- Timestamp:
- Jun 25, 2008, 1:08:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/with_autoconf/src/sc_port.cc
r4 r8 36 36 37 37 38 #include<iomanip> 39 #include<list> 40 #include<map> 41 #include<vector> 42 43 #include"sc_port.h" 44 #include"sc_signal.h" 45 #include"sc_module.h" 46 #include"entity.h" 47 #include"global_functions.h" 48 #include"assert.h" 38 #include <iomanip> 39 #include <list> 40 #include <map> 41 #include <vector> 42 43 #include "sc_port.h" 44 #include "sc_signal.h" 45 #include "sc_module.h" 46 #include "entity.h" 47 #include "global_functions.h" 48 #include <cassert> 49 #ifdef HAVE_CONFIG_H 50 #include "config.h" 51 #endif 49 52 50 53 extern "C" { … … 56 59 using namespace std; 57 60 58 #ifdef C HECK_FSM_RULES59 #include "fsm_rules.h"61 #ifdef CONFIG_CHECK_FSM_RULES 62 #include "fsm_rules.h" 60 63 namespace sc_core { 61 64 casc_fsm_step_t casc_fsm_step = ELABORATION; … … 110 113 sc_port_base::init () 111 114 { 112 #ifdef DEBUG115 #ifdef CONFIG_DEBUG 113 116 if (modules_stack.empty ()) { 114 117 cerr << "Internal error : modules stack empty\n"; … … 235 238 #endif 236 239 #define iter (sc_core::pending_write_vector[i]) 237 #ifdef DEBUG240 #ifdef CONFIG_DEBUG 238 241 if (iter.pointer == NULL) { 239 242 cerr << "Internal error : trying to apply a posted write from an unassigned signal/port\n"; … … 257 260 cerr << "done.\n"; 258 261 #endif 259 #if defined(C HECK_MULTIWRITING2REGISTER)262 #if defined(CONFIG_CHECK_MULTIWRITING2REGISTER) 260 263 sc_core::pending_writing2register_clear (); 261 264 #endif … … 312 315 { 313 316 const tab_t *pointer = port.get_pointer (); 314 // ASSERT(pointer != NULL);317 //assert(pointer != NULL); 315 318 if (pointer == NULL) 316 319 return false; // case : sc_in not bound … … 345 348 { 346 349 /*const*/ sc_port_base *port = i->first; 347 ASSERT(port != NULL);350 assert(port != NULL); 348 351 check_port (*port); 349 352 } … … 352 355 } 353 356 354 #if defined(C HECK_MULTIWRITING2REGISTER)357 #if defined(CONFIG_CHECK_MULTIWRITING2REGISTER) 355 358 typedef set<const tab_t*> pending_writing2register_set_t; 356 359 pending_writing2register_set_t pending_writing2register_set;
Note: See TracChangeset
for help on using the changeset viewer.