Changeset 59 for sources/src/sc_port.cc
- Timestamp:
- Feb 6, 2017, 11:35:42 AM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/src/sc_port.cc
r58 r59 53 53 extern char unstable; 54 54 char unstable = 0; // not in sc_core namespace because dynamic link support C linkage only 55 unsigned intpending_write_vector_nb = 0;55 int32 pending_write_vector_nb = 0; 56 56 } 57 57 … … 67 67 extern equi_list_t equi_list; 68 68 69 const char * get_module_name 70 const equi_t & eq = get_equi(pointer);71 return get_module_name 69 const char * get_module_name(const tab_t * pointer) { 70 const equi_t & eq = get_equi(pointer); 71 return get_module_name(eq); 72 72 } 73 73 … … 87 87 88 88 sc_port_base::sc_port_base() { 89 89 init (); 90 90 } 91 91 … … 216 216 // stl vectors are too slow 217 217 // memcopy is not better 218 // signal table sorting doesn't give any better performance 218 // signal table sorting doesn't give any better performance 219 219 #if defined(DUMP_STAGE) 220 220 cerr << "(" << pending_write_vector_nb … … 229 229 exit (8); 230 230 } 231 #endif 231 #endif 232 232 #ifdef DUMP_SIGNAL_STATS 233 233 if (*(iter.pointer) == iter.value) { … … 236 236 counter[iter.pointer]++; 237 237 #endif 238 *(iter.pointer) = iter.value; 238 *(iter.pointer) = iter.value; 239 239 #undef iter 240 240 } … … 277 277 for (k = counter.begin(); k != counter.end(); ++k) { 278 278 string module_name = get_module_name (k->first); 279 counter_by_module[module_name] += k->second; 279 counter_by_module[module_name] += k->second; 280 280 } 281 281 o << "module name / usage\n"; … … 290 290 #endif 291 291 } 292 292 293 293 294 static bool is_bound(/*const*/ sc_port_base & port) { … … 297 298 return false; // case : sc_in not bound 298 299 } 299 return has_equi (port); 300 } 300 return has_equi(port); 301 } 302 301 303 302 304 static void check_port(/*const*/ sc_port_base & port) { 303 if (!is_bound 305 if (!is_bound(port)) { 304 306 cerr << "Error : '" << port.name() << "' port" 305 307 " (" << port.kind() << ")" … … 316 318 port2module_t::/*const_*/iterator i; 317 319 for (i = port2module.begin(); i != port2module.end(); ++i) { 318 /*const*/ sc_port_base * port = i->first;320 /*const*/ sc_port_base * port = i->first; 319 321 assert(port != NULL); 320 322 check_port(*port);
Note: See TracChangeset
for help on using the changeset viewer.