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