source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Rename_unit_Glue/src/Parameters.cpp @ 139

Last change on this file since 139 was 139, checked in by rosiere, 14 years ago
  • Add test for all configuration
  • RAT : add rat scheme (depth_save)
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
1/*
2 * $Id: Parameters.cpp 139 2010-07-30 14:47:27Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Rename_unit_Glue/include/Parameters.h"
9#include "Common/include/Max.h"
10namespace morpheo {
11namespace behavioural {
12namespace core {
13namespace multi_ooo_engine {
14namespace ooo_engine {
15namespace rename_unit {
16namespace rename_unit_glue {
17
18
19#undef  FUNCTION
20#define FUNCTION "Rename_unit_Glue::Parameters"
21  Parameters::Parameters (uint32_t        nb_front_end          ,
22                          uint32_t      * nb_context            ,
23//                        uint32_t        size_front_end_id     ,
24//                        uint32_t        size_context_id       ,
25                          uint32_t        nb_inst_insert        ,
26                          uint32_t        nb_inst_retire        ,
27                          uint32_t        size_general_data     ,
28                          uint32_t        size_special_register ,
29                          Trat_scheme_t   rat_scheme           ,
30                          bool            is_toplevel
31                          )
32  {
33    log_begin(Rename_unit_Glue,FUNCTION);
34
35    _nb_front_end           = nb_front_end  ;
36    _nb_context             = nb_context    ;
37    _nb_inst_insert         = nb_inst_insert;
38    _nb_inst_retire         = nb_inst_retire;
39    _rat_scheme             = rat_scheme    ;
40
41    test();
42
43    if (is_toplevel)
44      {
45        _size_general_data      = size_general_data    ;
46        _size_special_register  = size_special_register;
47       
48        _size_front_end_id      = log2(_nb_front_end);
49        _size_context_id        = log2(max<uint32_t>(_nb_context,_nb_front_end));
50       
51        _have_port_front_end_id = _size_front_end_id > 0;
52        _have_port_context_id   = _size_context_id   > 0;
53       
54        copy();
55      }
56
57    log_end(Rename_unit_Glue,FUNCTION);
58  };
59 
60// #undef  FUNCTION
61// #define FUNCTION "Rename_unit_Glue::Parameters (copy)"
62//   Parameters::Parameters (Parameters & param)
63//   {
64//     log_begin(Rename_unit_Glue,FUNCTION);
65//     test();
66//     log_end(Rename_unit_Glue,FUNCTION);
67//   };
68
69#undef  FUNCTION
70#define FUNCTION "Rename_unit_Glue::~Parameters"
71  Parameters::~Parameters (void)
72  {
73    log_begin(Rename_unit_Glue,FUNCTION);
74    log_end(Rename_unit_Glue,FUNCTION);
75  };
76
77#undef  FUNCTION
78#define FUNCTION "Rename_unit_Glue::copy"
79  void Parameters::copy (void)
80  {
81    log_begin(Rename_unit_Glue,FUNCTION);
82    log_end(Rename_unit_Glue,FUNCTION);
83  };
84
85}; // end namespace rename_unit_glue
86}; // end namespace rename_unit
87}; // end namespace ooo_engine
88}; // end namespace multi_ooo_engine
89}; // end namespace core
90
91}; // end namespace behavioural
92}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.