Changeset 32 for sources/src/global_functions.cc
- Timestamp:
- Jun 4, 2009, 2:09:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sources/src/global_functions.cc
r27 r32 240 240 internal_sc_initialize (void) 241 241 { 242 242 sort_equi_list (); 243 243 244 244 check_all_method_process (); … … 261 261 cerr << endl; 262 262 } 263 263 264 // Init variables to be able to run combinational functions 264 265 #ifdef CONFIG_CHECK_FSM_RULES 265 266 casc_fsm_step = STIMULI; 266 267 #endif 267 268 … … 274 275 pending_write_vector = NULL; 275 276 else 276 pending_write_vector = (pending_write_vector_t) realloc (pending_write_vector, sizeof (pending_write) * pending_write_vector_capacity);277 pending_write_vector = (pending_write_vector_t) realloc (pending_write_vector, sizeof (pending_write_t) * pending_write_vector_capacity); 277 278 278 279 // create the clock list 279 280 clock_list_t clock_list; 280 281 create_clock_list (clock_list, get_equi_list ()); 281 282 if (dump_netlist_info) … … 291 292 } 292 293 293 294 294 // Check if any constructor wrote into registers 295 if (pending_write_vector_nb != 0) 295 296 { 296 297 cerr << "Error : Register/Signal writing is not allowed before sc_initialize.\n" … … 308 309 use_static_func (); 309 310 310 311 pending_write_vector_nb = 0; 311 312 312 313 check_all_ports (); 313 314 usage.start (); 315 314 316 if (dump_stage) 315 317 cerr << "sc_initialize () done.\n"; 318 316 319 already_initialized = true; 317 320 } … … 323 326 if (already_initialized == false) { 324 327 #if defined(SYSTEMC_VERSION_1_0) 325 328 std::cerr << "Warning : call sc_initialize before executiong simulation.\n"; 326 329 #endif 327 330 internal_sc_initialize (); … … 332 335 exit (0); 333 336 } 334 337 } 335 338 } 336 339 … … 366 369 sc_start(double d_val) 367 370 { 368 371 sc_cycle (d_val); 369 372 #ifdef DUMP_SIGNAL_STATS 370 373 print_registers_writing_stats (cerr); 371 374 #endif 372 375 #ifdef DUMP_SCHEDULE_STATS 373 376 print_schedule_stats (cerr); 374 377 #endif 375 378 } … … 378 381 sc_start() 379 382 { 380 383 sc_cycle (-1); 381 384 #ifdef DUMP_SIGNAL_STATS 382 385 print_registers_writing_stats (cerr); 383 386 #endif 384 387 #ifdef DUMP_SCHEDULE_STATS 385 388 print_schedule_stats (cerr); 386 389 #endif 387 390 } … … 397 400 sc_start( const sc_time& duration ) 398 401 { 399 402 sc_cycle ((double)duration); 400 403 #ifdef DUMP_SIGNAL_STATS 401 404 print_registers_writing_stats (cerr); 402 405 #endif 403 406 #ifdef DUMP_SCHEDULE_STATS 404 407 print_schedule_stats (cerr); 405 408 #endif 406 409 }
Note: See TracChangeset
for help on using the changeset viewer.