Ignore:
Timestamp:
Jan 31, 2008, 6:46:41 PM (16 years ago)
Author:
rosiere
Message:

Update all component (except front_end) to :

  • new statistics model
  • no namespace std
Location:
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station
Files:
6 deleted
14 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/SelfTest/configuration_multi_port_bypass_memory.cfg

    r71 r75  
    8832      32      +1      # size_general_data 
    992       2       +1      # size_special_data 
    10 256     256     *2      # nb_general_register
    11 32      32      +1      # nb_special_register
     1016      16      *2      # nb_general_register
     118       8       +1      # nb_special_register
    12128       8       +1      # nb_operation       
    13134       4       +1      # nb_type           
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/SelfTest/configuration_multi_port_bypass_write.cfg

    r71 r75  
    8832      32      +1      # size_general_data 
    992       2       +1      # size_special_data 
    10 256     256     *2      # nb_general_register
    11 32      32      +1      # nb_special_register
     1016      16      *2      # nb_general_register
     118       8       +1      # nb_special_register
    12128       8       +1      # nb_operation       
    13134       4       +1      # nb_type           
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/SelfTest/configuration_multi_port_retire2.cfg

    r71 r75  
    8832      32      +1      # size_general_data 
    992       2       +1      # size_special_data 
    10 256     256     *2      # nb_general_register
    11 32      32      +1      # nb_special_register
     1018      16      *2      # nb_general_register
     118       8       +1      # nb_special_register
    12128       8       +1      # nb_operation       
    13134       4       +1      # nb_type           
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/SelfTest/configuration_multi_port_retire4.cfg

    r71 r75  
    8832      32      +1      # size_general_data 
    992       2       +1      # size_special_data 
    10 256     256     *2      # nb_general_register
    11 32      32      +1      # nb_special_register
     1016      16      *2      # nb_general_register
     118       8       +1      # nb_special_register
    12128       8       +1      # nb_operation       
    13134       4       +1      # nb_type           
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/SelfTest/configuration_multi_port_write.cfg

    r71 r75  
    8832      32      +1      # size_general_data 
    992       2       +1      # size_special_data 
    10 256     256     *2      # nb_general_register
    11 32      32      +1      # nb_special_register
     1016      16      *2      # nb_general_register
     118       8       +1      # nb_special_register
    12128       8       +1      # nb_operation       
    13134       4       +1      # nb_type           
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/SelfTest/src/test.cpp

    r69 r75  
    99#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/SelfTest/include/test.h"
    1010#include "Common/include/Test.h"
     11#include "Common/include/BitManipulation.h"
    1112
    1213#define NB_ITERATION  2
     
    368369            {
    369370              _gpr_val      [i][j] = ((rand()%100) < percent_registerfile_valid);
    370               _gpr          [i][j] = rand()%((1<<_param->_size_general_data)-1);
     371              _gpr          [i][j] = range<Tgeneral_data_t>(rand(),_param->_size_general_data);
    371372            }
    372373          for (uint32_t i=0; i<_param->_nb_special_register; i++)
    373374            {
    374375              _spr_val      [i][j] = ((rand()%100) < percent_registerfile_valid);
    375               _spr          [i][j] = rand()%(1<<_param->_size_special_data);
     376              _spr          [i][j] = range<Tspecial_data_t>(rand(),_param->_size_special_data);
    376377            }
    377378        }
     
    479480              Tcontext_t         ooo_engine = rand()% _param->_nb_ooo_engine;
    480481              Tcontrol_t         val     = (_gpr_val [num_reg][ooo_engine]== 0)?((rand()%100) < percent_transaction_registerfile):0;
    481               Tgeneral_data_t    data    = rand()%((1<<_param->_size_general_data)-1);
     482              Tgeneral_data_t    data    = range<Tgeneral_data_t>(rand(),_param->_size_general_data);
    482483           
    483484              val = (val and can_gpr_use [ooo_engine][num_reg] and need_gpr [ooo_engine][num_reg]);
     
    505506              Tcontext_t         ooo_engine = rand()% _param->_nb_ooo_engine;
    506507              Tcontrol_t         val     = (_spr_val [num_reg][ooo_engine]== 0)?((rand()%100) < percent_transaction_registerfile):0;
    507               Tspecial_data_t    data    = rand()%(1<<_param->_size_special_data);
     508              Tspecial_data_t    data    = range<Tspecial_data_t>(rand(),_param->_size_special_data);
    508509
    509510              val = (val and can_spr_use [ooo_engine][num_reg] and need_spr[ooo_engine][num_reg]);
     
    534535              Tgeneral_address_t gpr_num_reg = rand()% _param->_nb_general_register;
    535536              Tcontrol_t         gpr_val     = (_gpr_val [gpr_num_reg][ooo_engine]== 0)?((rand()%100) < percent_transaction_bypass):0;
    536               Tgeneral_data_t    gpr_data    = rand()%((1<<_param->_size_general_data)-1);
     537              Tgeneral_data_t    gpr_data    = range<Tgeneral_data_t>(rand(),_param->_size_general_data);
    537538             
    538539              gpr_val = (gpr_val and can_gpr_use [ooo_engine][gpr_num_reg] and need_gpr[ooo_engine][gpr_num_reg]);
     
    554555              Tspecial_address_t spr_num_reg = rand()% _param->_nb_special_register;
    555556              Tcontrol_t         spr_val     = (_spr_val [spr_num_reg][ooo_engine]== 0)?((rand()%100) < percent_transaction_bypass):0;
    556               Tspecial_data_t    spr_data    = rand()%(1<<_param->_size_special_data);
     557              Tspecial_data_t    spr_data    = range<Tspecial_data_t>(rand(),_param->_size_special_data);
    557558             
    558559              spr_val = (spr_val and can_spr_use [ooo_engine][spr_num_reg] and need_spr[ooo_engine][spr_num_reg]);
     
    582583              Tgeneral_address_t num_reg = rand()% _param->_nb_general_register;
    583584              Tcontrol_t         val     = (_gpr_val [num_reg][ooo_engine]== 0)?((rand()%100) < percent_transaction_bypass):0;
    584               Tgeneral_data_t    data    = rand()%((1<<_param->_size_general_data)-1);
     585              Tgeneral_data_t    data    = range<Tgeneral_data_t>(rand(),_param->_size_general_data);
    585586             
    586587              val = (val and can_gpr_use [ooo_engine][num_reg] and need_gpr [ooo_engine][num_reg]);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/include/Parameters.h

    r69 r75  
    8585  public : ~Parameters () ;
    8686
    87   public : string msg_error (void);
     87  public :        std::string   msg_error (void);
    8888
    89   public :        string   print      (uint32_t depth);
    90   public : friend ostream& operator<< (ostream& output_stream,
    91                                        morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::reservation_station::Parameters & x);
     89  public :        std::string   print      (uint32_t depth);
     90  public : friend std::ostream& operator<< (std::ostream& output_stream,
     91                                            morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::reservation_station::Parameters & x);
    9292  };
    9393
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/include/Reservation_station.h

    r69 r75  
    2323#include "Behavioural/include/Types.h"
    2424#ifdef STATISTICS
    25 #include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/include/Statistics.h"
     25#include "Behavioural/include/Stat.h"
    2626#endif
    2727#include "Behavioural/include/Component.h"
     
    2929#include "Behavioural/include/Vhdl.h"
    3030#endif
    31 
    32 using namespace std;
    33 using namespace morpheo::behavioural::generic::queue_control;
    3431
    3532namespace morpheo {
     
    6966  public    : Tspecial_address_t _num_reg_re  ;
    7067
    71     friend ostream& operator<< (ostream& output_stream,
     68    friend std::ostream& operator<< (std::ostream& output_stream,
    7269                                morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::reservation_station::Treservation_station_entry_t & x)
    7370    {
    74       output_stream << " * _context_id     : " << toString(x._context_id     ) << endl
    75                     << " * _front_end_id   : " << toString(x._front_end_id   ) << endl
    76                     << " * _ooo_engine_id  : " << toString(x._ooo_engine_id  ) << endl
    77                     << " * _rob_id         : " << toString(x._rob_id         ) << endl
    78                     << " * _operation      : " << toString(x._operation      ) << endl
    79                     << " * _type           : " << toString(x._type           ) << endl
    80                     << " * _has_immediat   : " << toString(x._has_immediat   ) << endl
    81                     << " * _immediat       : " << toString(x._immediat       ) << endl
    82 //                  << " * _read_ra        : " << toString(x._read_ra        ) << endl
    83                     << " * _num_reg_ra     : " << toString(x._num_reg_ra     ) << endl
    84                     << " * _data_ra_val    : " << toString(x._data_ra_val    ) << endl
    85                     << " * _data_ra        : " << toString(x._data_ra        ) << endl
    86 //                  << " * _read_rb        : " << toString(x._read_rb        ) << endl
    87                     << " * _num_reg_rb     : " << toString(x._num_reg_rb     ) << endl
    88                     << " * _data_rb_val    : " << toString(x._data_rb_val    ) << endl
    89                     << " * _data_rb        : " << toString(x._data_rb        ) << endl
    90 //                  << " * _read_rc        : " << toString(x._read_rc        ) << endl
    91                     << " * _num_reg_rc     : " << toString(x._num_reg_rc     ) << endl
    92                     << " * _data_rc_val    : " << toString(x._data_rc_val    ) << endl
    93                     << " * _data_rc        : " << toString(x._data_rc        ) << endl
    94                     << " * _write_rd       : " << toString(x._write_rd       ) << endl
    95                     << " * _num_reg_rd     : " << toString(x._num_reg_rd     ) << endl
    96                     << " * _write_re       : " << toString(x._write_re       ) << endl
    97                     << " * _num_reg_re     : " << toString(x._num_reg_re     ) << endl;
     71      output_stream << " * _context_id     : " << toString(x._context_id     ) << std::endl
     72                    << " * _front_end_id   : " << toString(x._front_end_id   ) << std::endl
     73                    << " * _ooo_engine_id  : " << toString(x._ooo_engine_id  ) << std::endl
     74                    << " * _rob_id         : " << toString(x._rob_id         ) << std::endl
     75                    << " * _operation      : " << toString(x._operation      ) << std::endl
     76                    << " * _type           : " << toString(x._type           ) << std::endl
     77                    << " * _has_immediat   : " << toString(x._has_immediat   ) << std::endl
     78                    << " * _immediat       : " << toString(x._immediat       ) << std::endl
     79//                  << " * _read_ra        : " << toString(x._read_ra        ) << std::endl
     80                    << " * _num_reg_ra     : " << toString(x._num_reg_ra     ) << std::endl
     81                    << " * _data_ra_val    : " << toString(x._data_ra_val    ) << std::endl
     82                    << " * _data_ra        : " << toString(x._data_ra        ) << std::endl
     83//                  << " * _read_rb        : " << toString(x._read_rb        ) << std::endl
     84                    << " * _num_reg_rb     : " << toString(x._num_reg_rb     ) << std::endl
     85                    << " * _data_rb_val    : " << toString(x._data_rb_val    ) << std::endl
     86                    << " * _data_rb        : " << toString(x._data_rb        ) << std::endl
     87//                  << " * _read_rc        : " << toString(x._read_rc        ) << std::endl
     88                    << " * _num_reg_rc     : " << toString(x._num_reg_rc     ) << std::endl
     89                    << " * _data_rc_val    : " << toString(x._data_rc_val    ) << std::endl
     90                    << " * _data_rc        : " << toString(x._data_rc        ) << std::endl
     91                    << " * _write_rd       : " << toString(x._write_rd       ) << std::endl
     92                    << " * _num_reg_rd     : " << toString(x._num_reg_rd     ) << std::endl
     93                    << " * _write_re       : " << toString(x._write_re       ) << std::endl
     94                    << " * _num_reg_re     : " << toString(x._num_reg_re     ) << std::endl;
    9895
    9996      return output_stream;
     
    109106    // -----[ fields ]----------------------------------------------------
    110107    // Parameters
    111   protected : const string       _name;
     108  protected : const std::string       _name;
    112109
    113110  protected : const Parameters * _param;
    114 //#ifdef STATISTICS
    115 //  protected : const morpheo::behavioural::Parameters_Statistics * _param_statistics;
    116 //#endif
    117 
    118 #ifdef STATISTICS
    119   private   : Statistics                     * _stat;
     111
     112#ifdef STATISTICS
     113  public    : Stat                           * _stat;
    120114#endif
    121115
     
    233227  public  :          Reservation_station              (
    234228#ifdef SYSTEMC
    235                                               sc_module_name                                name,
     229                                                       sc_module_name                                name,
    236230#else                                         
    237                                               string                                        name,
     231                                                       string                                        name,
    238232#endif                                         
    239233#ifdef STATISTICS
    240                                               morpheo::behavioural::Parameters_Statistics * param_statistics,
    241 #endif
    242                                               Parameters                                  * param );
     234                                                       morpheo::behavioural::Parameters_Statistics * param_statistics,
     235#endif
     236                                                       Parameters                                  * param );
    243237  public  :          ~Reservation_station             (void);
    244238                                               
     
    250244  public  : void     genMoore                  (void);
    251245#endif                                         
    252 #ifdef STATISTICS
    253   public  : string   statistics                (uint32_t depth);
     246
     247#ifdef STATISTICS
     248  public  : void     statistics_declaration    (morpheo::behavioural::Parameters_Statistics * param_statistics);
    254249#endif
    255250                                               
     
    260255#endif                                         
    261256                                               
     257#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    262258  private : void     end_cycle                 (void);
     259#endif
    263260  };
    264261
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/src/Parameters_msg_error.cpp

    r69 r75  
    88#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/include/Parameters.h"
    99#include <sstream>
    10 using namespace std;
    1110
    1211namespace morpheo                    {
     
    2221#undef  FUNCTION
    2322#define FUNCTION "Reservation_station::msg_error"
    24   string Parameters::msg_error(void)
     23  std::string Parameters::msg_error(void)
    2524  {
    2625    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
    2726
    28     string msg = "";
     27    std::string msg = "";
    2928
    3029//     if (_size_queue < 2)
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/src/Parameters_print.cpp

    r69 r75  
    88#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/include/Parameters.h"
    99#include "Behavioural/include/XML.h"
    10 using namespace std;
    1110
    1211namespace morpheo                    {
     
    2221#undef  FUNCTION
    2322#define FUNCTION "Reservation_station::print"
    24   string Parameters::print (uint32_t depth)
     23  std::string Parameters::print (uint32_t depth)
    2524  {
    2625    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
     
    5453#undef  FUNCTION
    5554#define FUNCTION "Reservation_station::operator<<"
    56   ostream& operator<< (ostream& output_stream ,
    57                        morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::reservation_station::Parameters & x)
     55  std::ostream& operator<< (std::ostream& output_stream ,
     56                            morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::reservation_station::Parameters & x)
    5857  {
    5958    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/src/Reservation_station.cpp

    r55 r75  
    3131                              _name              (name)
    3232                              ,_param            (param)
    33 // #ifdef STATISTICS
    34 //                            ,_param_statistics (param_statistics)
    35 // #endif
    3633  {
    3734    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
     
    4643    log_printf(INFO,Reservation_station,FUNCTION,"Allocation of statistics");
    4744
    48     // Allocation of statistics
    49     _stat = new Statistics (static_cast<string>(_name),
    50                             param_statistics          ,
    51                             param);
     45    statistics_declaration(param_statistics);
    5246#endif
    5347
     
    9589    log_printf(INFO,Reservation_station,FUNCTION,"Generate Statistics file");
    9690
    97     _stat->generate_file(statistics(0));
    98    
    9991    delete _stat;
    10092#endif
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/src/Reservation_station_allocation.cpp

    r69 r75  
    2424  void Reservation_station::allocation (void)
    2525  {
    26     string rename;
    27 
    2826    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
    2927
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/src/Reservation_station_end_cycle.cpp

    r69 r75  
     1#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    12/*
    23 * $Id$
     
    2526
    2627#ifdef STATISTICS
    27     _stat->add();
     28    _stat->end_cycle();
    2829#endif   
    2930
     
    4546}; // end namespace behavioural
    4647}; // end namespace morpheo             
     48#endif
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/src/Reservation_station_statistics_declaration.cpp

    r59 r75  
    1818namespace reservation_station {
    1919
    20 
    2120#undef  FUNCTION
    22 #define FUNCTION "Reservation_station::statistics"
    23   string Reservation_station::statistics (uint32_t depth)
     21#define FUNCTION "Reservation_station::statistics_declaration"
     22  void Reservation_station::statistics_declaration (morpheo::behavioural::Parameters_Statistics * param_statistics)
    2423  {
    2524    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
    2625
    27     string txt = _stat->print(depth);
     26    _stat = new Stat (static_cast<std::string>(_name),
     27                      "Reservation_station",
     28                      param_statistics);
    2829   
    2930    log_printf(FUNC,Reservation_station,FUNCTION,"End");
    30 
    31     return txt;
    3231  };
    3332
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/src/Reservation_station_vhdl_body.cpp

    r70 r75  
    2222  void Reservation_station::vhdl_body (Vhdl * & vhdl)
    2323  {
    24     string range_retire, range_insert;
     24    std::string range_retire, range_insert;
    2525
    2626    if (_param->_size_queue == 1)
Note: See TracChangeset for help on using the changeset viewer.