Changeset 8 for branches/with_autoconf/src/entity.cc
- Timestamp:
- Jun 25, 2008, 1:08:04 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/with_autoconf/src/entity.cc
r1 r8 35 35 */ 36 36 37 #include<iomanip> 38 #include<list> 39 #include<map> 40 #include<vector> 41 42 #include"assert.h" 43 #include"entity.h" 44 #include"sc_port.h" 45 #include"sc_signal.h" 46 #include"sc_module.h" 37 #include <iomanip> 38 #include <list> 39 #include <map> 40 #include <vector> 41 42 #include <cassert> 43 #include "entity.h" 44 #include "sc_port.h" 45 #include "sc_signal.h" 46 #include "sc_module.h" 47 #ifdef HAVE_CONFIG_H 48 #include "config.h" 49 #endif 47 50 48 51 using namespace std; … … 174 177 typedef std::map<const tab_t *,equi_list_t::iterator,predic4tab_t2equi_t_t> tab_t2equi_it_t; 175 178 static tab_t2equi_it_t tab2equi_map; 176 ASSERT(pointer != NULL);179 assert(pointer != NULL); 177 180 178 181 // boost … … 239 242 { 240 243 equi_t::const_iterator top_iter = e.begin (); 241 #ifdef DEBUG244 #ifdef CONFIG_DEBUG 242 245 if (top_iter == e.end ()) { 243 246 cerr << "Internal error : no signal in " << e << endl; … … 356 359 } 357 360 358 #if defined(DUMP_SIGNAL S_STATS)361 #if defined(DUMP_SIGNAL_STATS) 359 362 static unsigned int equi_real_size; 360 363 #endif … … 388 391 unsigned int table_size = get_sizeof_signals_table (); 389 392 equi_table = new tab_t[table_size]; //(0xCD); 390 #if defined(DUMP_SIGNAL S_STATS)393 #if defined(DUMP_SIGNAL_STATS) 391 394 equi_real_size = table_size; 392 395 #endif … … 402 405 bind_equi_to_table (equi_t &e, tab_t * const pointer) 403 406 { 404 ASSERT(pointer != NULL);407 assert(pointer != NULL); 405 408 equi_t::iterator i; 406 409 for (i = e.begin (); i != e.end (); ++i) { … … 454 457 o << ")"; 455 458 #else 456 ASSERT(e.object != NULL);459 assert(e.object != NULL); 457 460 o << e.object->name (); 458 461 #endif … … 493 496 print_table_stats (ostream &o) 494 497 { 495 #if defined(DUMP_SIGNAL S_STATS)498 #if defined(DUMP_SIGNAL_STATS) 496 499 int nb_reg = 0; 497 500 int nb_sig = 0; … … 536 539 } 537 540 const entity &ent = *(eq.begin ()); 538 #ifdef DEBUG541 #ifdef CONFIG_DEBUG 539 542 if (ent.type != sc_core::entity::SIGNAL) 540 543 exit(28); … … 543 546 const char *sig_name = ent.object->name (); 544 547 const char *sep = strchr (sig_name,'.'); 545 #ifdef DEBUG548 #ifdef CONFIG_DEBUG 546 549 if (sep == NULL) { 547 550 exit (30); … … 594 597 #endif 595 598 596 #if defined(DUMP_SIGNAL S_STATS)599 #if defined(DUMP_SIGNAL_STATS) 597 600 static unsigned int equi_real_size; 598 601 #endif … … 602 605 { 603 606 #if 0 604 //defined( DEBUG)607 //defined(CONFIG_DEBUG) 605 608 equi_list_t::iterator x_equi = get_equi (x); 606 609 if ((x_equi != equi_list.end())) { … … 639 642 tbind (sc_port_base &x,T &y) 640 643 { 641 // ASSERT(x.get_pointer () != NULL); // x pointer may be NULL642 // ASSERT(y.get_pointer () != NULL); // y pointer may be NULL644 // assert(x.get_pointer () != NULL); // x pointer may be NULL 645 // assert(y.get_pointer () != NULL); // y pointer may be NULL 643 646 equi_list_t::iterator x_equi = get_equi (x); 644 647 equi_list_t::iterator y_equi = get_equi (y);
Note: See TracChangeset
for help on using the changeset viewer.