Ignore:
Timestamp:
Aug 24, 2009, 1:12:39 PM (15 years ago)
Author:
buchmann
Message:

Changes:

  • code cleanup
  • now prints correctly unsigned/signed (serialization.cc)

Fix:

  • when the --help option is used, there is no simulation performed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sources/src/global_functions.cc

    r36 r42  
    9898                   const equi_list_t &el)
    9999{
    100         equi_list_t::const_iterator i;
    101         for (i = el.begin (); i != el.end(); ++i) {
    102                 equi_t::const_iterator j;
    103                 for (j = i->begin (); j != i->end (); ++j) {
    104                         if (j->kind () == sc_clock::kind_string)
    105                                 c.insert ((const sc_clock*)j->object);
    106           }
    107         }
     100  equi_list_t::const_iterator i;
     101  for (i = el.begin (); i != el.end(); ++i) {
     102    equi_t::const_iterator j;
     103    for (j = i->begin (); j != i->end (); ++j) {
     104      if (j->kind () == sc_clock::kind_string)
     105        c.insert ((const sc_clock*)j->object);
     106    }
     107  }
    108108}
    109109
     
    234234#endif
    235235 
    236         link (lib_absolutepath);
     236  link (lib_absolutepath);
    237237}
    238238
     
    277277  else
    278278    pending_write_vector = (pending_write_vector_t) realloc (pending_write_vector, sizeof (pending_write_t) * pending_write_vector_capacity);
    279        
     279 
    280280  // create the clock list
    281281  clock_list_t clock_list;
     
    295295  // Check if any constructor wrote into registers
    296296  if (pending_write_vector_nb != 0)
    297         {
    298                 cerr << "Error : Register/Signal writing is not allowed before sc_initialize.\n"
    299                         "Move initializations from constructors/sc_main to module reset sequences.\n";
    300                 // we are unable to dump register(s) name(s)
    301                 // because the table binding is not yet completed.
    302                 exit (24);
    303         }
     297  {
     298    cerr << "Error : Register/Signal writing is not allowed before sc_initialize.\n"
     299      "Move initializations from constructors/sc_main to module reset sequences.\n";
     300    // we are unable to dump register(s) name(s)
     301    // because the table binding is not yet completed.
     302    exit (24);
     303  }
    304304 
    305305  string base_name = get_scheduling (scheduling_method);
Note: See TracChangeset for help on using the changeset viewer.