Ignore:
Timestamp:
Sep 6, 2007, 6:30:49 PM (17 years ago)
Author:
rosiere
Message:
  • Banc de registre multi banc
  • Banc de registre générique.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/SelfTest/src/test.cpp

    r50 r53  
    3333  cout << "<" << name << "> : Simulation SystemC" << endl;
    3434
     35#ifdef STATISTICS
     36  morpheo::behavioural::Parameters_Statistics * _parameters_statistics = new morpheo::behavioural::Parameters_Statistics (5,50);
     37#endif
     38
    3539  @COMPONENT * _@COMPONENT = new @COMPONENT (name.c_str(),
    3640#ifdef STATISTICS
    37                                              morpheo::behavioural::Parameters_Statistics(5,50),
     41                                             _parameters_statistics,
    3842#endif
    39                                              *_param);
     43                                             _param);
    4044 
    4145#ifdef SYSTEMC
     
    4347   * Déclarations des signaux
    4448   *********************************************************************/
    45   sc_clock                               * CLOCK;
    46   sc_signal<Tcontrol_t>                  * NRESET;
     49  sc_clock                               * in_CLOCK;
     50  sc_signal<Tcontrol_t>                  * in_NRESET;
    4751
    4852  string rename;
    4953
    50   CLOCK                                  = new sc_clock ("clock", 1.0, 0.5);
    51   NRESET                                 = new sc_signal<Tcontrol_t> ("NRESET");
     54  in_CLOCK                                = new sc_clock ("clock", 1.0, 0.5);
     55  in_NRESET                               = new sc_signal<Tcontrol_t> ("NRESET");
    5256 
    5357  /********************************************************
     
    5761  cout << "<" << name << "> Instanciation of _@COMPONENT" << endl;
    5862 
    59   (*(_@COMPONENT->in_CLOCK))        (*(CLOCK));
    60   (*(_@COMPONENT->in_NRESET))       (*(NRESET));
     63  (*(_@COMPONENT->in_CLOCK))        (*(in_CLOCK));
     64  (*(_@COMPONENT->in_NRESET))       (*(in_NRESET));
    6165
    6266
     
    100104
    101105  delete _@COMPONENT;
     106#ifdef SYSTEMC
     107  delete _parameters_statistics;
     108#endif
    102109}
Note: See TracChangeset for help on using the changeset viewer.