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
Location:
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit
Files:
1 added
10 edited
1 moved

Legend:

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

    r81 r82  
    77 */
    88
     9
     10#define NB_ITERATION  1024
     11#define CYCLE_MAX     (128*NB_ITERATION)
     12
    913#include "Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Address_management/SelfTest/include/test.h"
    1014#include "Common/include/Test.h"
    1115#include "Behavioural/include/Allocation.h"
    12 
    13 #define NB_ITERATION  1024
    14 #define CYCLE_MAX     (128*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       /*cout << "SC_START (begin)" << endl;*/                                        \
    27                                                                                      \
    28       uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time());          \
    29       if (cycle_offset != 0)                                                         \
    30         {                                                                            \
    31           cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \
    32         }                                                                            \
    33                                                                                      \
    34       if (cycle_current > CYCLE_MAX)                                                 \
    35         {                                                                            \
    36           TEST_KO("Maximal cycles Reached");                                         \
    37         }                                                                            \
    38                                                                                      \
    39       sc_start(cycle_offset);                                                        \
    40                                                                                      \
    41       /*cout << "SC_START (end  )" << endl;*/                                        \
    42     } while(0)
    4316
    4417void test (string name,
     
    5124#endif
    5225
    53   Address_management * _Address_management = new Address_management (name.c_str(),
     26  Address_management * _Address_management = new Address_management
     27    (name.c_str(),
    5428#ifdef STATISTICS
    55                                              _parameters_statistics,
     29     _parameters_statistics,
    5630#endif
    57                                              _param);
     31     _param,
     32     USE_ALL);
    5833 
    5934#ifdef SYSTEMC
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Address_management/include/Address_management.h

    r81 r82  
    132132#endif
    133133   Parameters                                  * param,
    134    morpheo::behavioural::Tusage_t                usage=USE_ALL
     134   morpheo::behavioural::Tusage_t                usage
    135135   );
    136136  public  :          ~Address_management             (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Address_management/src/Address_management_transition.cpp

    r81 r82  
    7979              reg_PC_CURRENT_BRANCH_UPDATE_PREDICTION_ID = PORT_READ(in_PREDICT_BRANCH_UPDATE_PREDICTION_ID);
    8080
    81 #error "INSTRUCTION_ENABLE : ERROR implémentation, remplacer PC_PREVIOUS par PC_NEXT_NEXT"
     81// #error "INSTRUCTION_ENABLE : ERROR implémentation, remplacer PC_PREVIOUS par PC_NEXT_NEXT"
    8282
    8383              for (uint32_t i=0; i<_param->_nb_instruction; i++)
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_queue/SelfTest/src/test.cpp

    r81 r82  
    77 */
    88
     9#define NB_ITERATION  1
     10#define CYCLE_MAX     (2048*NB_ITERATION)
     11
    912#include "Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_queue/SelfTest/include/test.h"
    1013#include "Common/include/Test.h"
     
    1215#include <list>
    1316#include <set>
    14 
    15 #define NB_ITERATION  1
    16 #define CYCLE_MAX     (2048*NB_ITERATION)
    17 
    18 #define LABEL(str...)                                                   \
    19   {                                                                     \
    20     msg (_("{%d} "),static_cast<uint32_t>(sc_simulation_time()));       \
    21     msg (str);                                                          \
    22     msg (_("\n"));                                                      \
    23   } while(0)
    24 
    25 #define SC_START(cycle_offset)                                                       \
    26   do                                                                                 \
    27     {                                                                                \
    28       /*cout << "SC_START (begin)" << endl;*/                                        \
    29                                                                                      \
    30       uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time());          \
    31       if (cycle_offset != 0)                                                         \
    32         {                                                                            \
    33           cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \
    34         }                                                                            \
    35                                                                                      \
    36       if (cycle_current > CYCLE_MAX)                                                 \
    37         {                                                                            \
    38           TEST_KO("Maximal cycles Reached");                                         \
    39         }                                                                            \
    40                                                                                      \
    41       sc_start(cycle_offset);                                                        \
    42                                                                                      \
    43       /*cout << "SC_START (end  )" << endl;*/                                        \
    44     } while(0)
    45 
    4617
    4718class entry_t
     
    7041#endif
    7142
    72   Ifetch_queue * _Ifetch_queue = new Ifetch_queue (name.c_str(),
     43  Ifetch_queue * _Ifetch_queue = new Ifetch_queue
     44    (name.c_str(),
    7345#ifdef STATISTICS
    74                                              _parameters_statistics,
     46     _parameters_statistics,
    7547#endif
    76                                              _param);
     48     _param,
     49     USE_ALL);
    7750 
    7851#ifdef SYSTEMC
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_queue/include/Ifetch_queue.h

    r81 r82  
    131131#endif
    132132   Parameters                                  * param,
    133    morpheo::behavioural::Tusage_t                usage=USE_ALL
     133   morpheo::behavioural::Tusage_t                usage
    134134   );
    135135  public  :          ~Ifetch_queue             (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_unit_Glue/SelfTest/src/test.cpp

    r81 r82  
    77 */
    88
     9#define NB_ITERATION  1
     10#define CYCLE_MAX     (128*NB_ITERATION)
     11
    912#include "Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_unit_Glue/SelfTest/include/test.h"
    1013#include "Common/include/Test.h"
    1114#include "Behavioural/include/Allocation.h"
    12 
    13 #define NB_ITERATION  1
    14 #define CYCLE_MAX     (128*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       /*cout << "SC_START (begin)" << endl;*/                                        \
    27                                                                                      \
    28       uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time());          \
    29       if (cycle_offset != 0)                                                         \
    30         {                                                                            \
    31           cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \
    32         }                                                                            \
    33                                                                                      \
    34       if (cycle_current > CYCLE_MAX)                                                 \
    35         {                                                                            \
    36           TEST_KO("Maximal cycles Reached");                                         \
    37         }                                                                            \
    38                                                                                      \
    39       sc_start(cycle_offset);                                                        \
    40                                                                                      \
    41       /*cout << "SC_START (end  )" << endl;*/                                        \
    42     } while(0)
    4315
    4416void test (string name,
     
    5123#endif
    5224
    53   Ifetch_unit_Glue * _Ifetch_unit_Glue = new Ifetch_unit_Glue (name.c_str(),
     25  Ifetch_unit_Glue * _Ifetch_unit_Glue = new Ifetch_unit_Glue
     26    (name.c_str(),
    5427#ifdef STATISTICS
    55                                              _parameters_statistics,
     28     _parameters_statistics,
    5629#endif
    57                                              _param);
     30     _param,
     31     USE_ALL);
    5832 
    5933#ifdef SYSTEMC
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_unit_Glue/include/Ifetch_unit_Glue.h

    r81 r82  
    105105#endif
    106106   Parameters                                  * param,
    107    morpheo::behavioural::Tusage_t                usage=USE_ALL
     107   morpheo::behavioural::Tusage_t                usage
    108108   );
    109109  public  :          ~Ifetch_unit_Glue             (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/SelfTest/src/test.cpp

    r81 r82  
    77 */
    88
     9#define NB_ITERATION  1
     10#define CYCLE_MAX     (128*NB_ITERATION)
     11
    912#include "Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/SelfTest/include/test.h"
    1013#include "Common/include/Test.h"
    1114#include "Behavioural/include/Allocation.h"
    12 
    13 #define NB_ITERATION  1
    14 #define CYCLE_MAX     (128*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       /*cout << "SC_START (begin)" << endl;*/                                        \
    27                                                                                      \
    28       uint32_t cycle_current = static_cast<uint32_t>(sc_simulation_time());          \
    29       if (cycle_offset != 0)                                                         \
    30         {                                                                            \
    31           cout << "##########[ cycle "<< cycle_current+cycle_offset << " ]" << endl; \
    32         }                                                                            \
    33                                                                                      \
    34       if (cycle_current > CYCLE_MAX)                                                 \
    35         {                                                                            \
    36           TEST_KO("Maximal cycles Reached");                                         \
    37         }                                                                            \
    38                                                                                      \
    39       sc_start(cycle_offset);                                                        \
    40                                                                                      \
    41       /*cout << "SC_START (end  )" << endl;*/                                        \
    42     } while(0)
    4315
    4416void test (string name,
     
    5123#endif
    5224
    53   Ifetch_unit * _Ifetch_unit = new Ifetch_unit (name.c_str(),
     25  Ifetch_unit * _Ifetch_unit = new Ifetch_unit
     26    (name.c_str(),
    5427#ifdef STATISTICS
    55                                              _parameters_statistics,
    56 #endif
    57                                              _param);
     28     _parameters_statistics,
     29#endif
     30     _param,
     31     USE_ALL);
    5832 
    5933#ifdef SYSTEMC
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/include/Ifetch_unit.h

    r81 r82  
    136136#endif
    137137   Parameters                                  * param,
    138    morpheo::behavioural::Tusage_t                usage=USE_ALL
     138   morpheo::behavioural::Tusage_t                usage
    139139   );
    140140  public  :          ~Ifetch_unit             (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/src/Ifetch_unit_allocation.cpp

    r81 r82  
    144144         ,param_statistics
    145145#endif
    146          ,_param->_param_address_management);
     146         ,_param->_param_address_management
     147         ,_usage);
    147148     
    148149      _component->set_component (_component_address_management->_component
     
    162163         ,param_statistics
    163164#endif
    164          ,_param->_param_ifetch_queue);
     165         ,_param->_param_ifetch_queue
     166         ,_usage);
    165167     
    166168      _component->set_component (_component_ifetch_queue->_component
     
    180182         ,param_statistics
    181183#endif
    182          ,_param->_param_ifetch_unit_glue);
     184         ,_param->_param_ifetch_unit_glue
     185         ,_usage);
    183186     
    184187      _component->set_component (_component_ifetch_unit_glue->_component
Note: See TracChangeset for help on using the changeset viewer.