Ignore:
Timestamp:
May 1, 2008, 6:48:45 PM (16 years ago)
Author:
rosiere
Message:
  • support locale (now must "just" translate)
  • update all component with new test format
  • update all component with usage
  • New component : decod queue and prediction_unit
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Return_Address_Stack/SelfTest/src/test.cpp

    r81 r82  
    77 */
    88
     9#define NB_ITERATION  16
     10#define CYCLE_MAX     (1024*NB_ITERATION)
     11
    912#include "Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Return_Address_Stack/SelfTest/include/test.h"
    1013#include "Common/include/Test.h"
    1114#include "Behavioural/include/Allocation.h"
    12 
    13 #define NB_ITERATION  16
    14 #define CYCLE_MAX     (1024*NB_ITERATION)
    15 
    16 #define LABEL(str...)                                                   \
    17   {                                                                     \
    18     msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time()));       \
    19     msg (str);                                                          \
    20     msg (_("\n"));                                                      \
    21   } while(0)
    22 
    23 #define SC_START(cycle_offset)                                          \
    24   do                                                                    \
    25     {                                                                   \
    26       uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time()); \
    27       if (cycle_offset != 0)                                            \
    28         {                                                               \
    29           cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]"; \
    30           cout << " (" << __LINE__ << ")" << endl;                      \
    31         }                                                               \
    32                                                                         \
    33       if (cycle_current > CYCLE_MAX)                                    \
    34         {                                                               \
    35           TEST_KO("Maximal cycles Reached");                            \
    36         }                                                               \
    37                                                                         \
    38       sc_start(cycle_offset);                                           \
    39                                                                         \
    40     } while(0)
    4115
    4216void test (string name,
     
    4923#endif
    5024
    51   Return_Address_Stack * _Return_Address_Stack = new Return_Address_Stack (name.c_str(),
     25  Return_Address_Stack * _Return_Address_Stack = new Return_Address_Stack
     26    (name.c_str(),
    5227#ifdef STATISTICS
    53                                              _parameters_statistics,
     28     _parameters_statistics,
    5429#endif
    55                                              _param);
     30     _param,
     31     USE_ALL);
    5632 
    5733#ifdef SYSTEMC
Note: See TracChangeset for help on using the changeset viewer.