Ignore:
Timestamp:
Sep 24, 2007, 2:00:35 PM (17 years ago)
Author:
rosiere
Message:

Ajout SystemC read_queue et reservation_station
Ajout port au bloc registerfile_monolithic (à ajouter également au bloc registerfile et registerfile_multi_banked)
Modif param : passage de pointeur (attention, tous les composants n'ont pas été tous modifier)

File:
1 edited

Legend:

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

    r53 r55  
    1818} while(0)
    1919
    20 #define SC_START(cycle)                                        \
    21 do                                                             \
    22 {                                                              \
    23   if (static_cast<uint32_t>(sc_simulation_time()) > CYCLE_MAX) \
    24     {                                                          \
    25       TEST_KO("Maximal cycles Reached");                       \
    26     }                                                          \
    27   sc_start(cycle);                                             \
     20static uint32_t cycle = 0;
     21
     22#define SC_START(cycle_offset)                                          \
     23do                                                                      \
     24{                                                                       \
     25/*cout << "SC_START (begin)" << endl;*/                                 \
     26                                                                        \
     27  uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time()); \
     28  if (cycle_current != cycle)                                           \
     29    {                                                                   \
     30      cycle = cycle_current;                                            \
     31      cout << "##########[ cycle "<< cycle << " ]" << endl;             \
     32    }                                                                   \
     33                                                                        \
     34  if (cycle_current > CYCLE_MAX)                                        \
     35    {                                                                   \
     36      TEST_KO("Maximal cycles Reached");                                \
     37    }                                                                   \
     38  sc_start(cycle_offset);                                               \
     39/*cout << "SC_START (end  )" << endl;*/                                 \
    2840} while(0)
    2941
     
    99111  cout << "<" << name << "> ............ Stop Simulation" << endl;
    100112
    101   delete CLOCK;
    102   delete NRESET;
     113  delete in_CLOCK;
     114  delete in_NRESET;
    103115#endif
    104116
    105117  delete _@COMPONENT;
    106 #ifdef SYSTEMC
     118#ifdef STATISTICS
    107119  delete _parameters_statistics;
    108120#endif
Note: See TracChangeset for help on using the changeset viewer.