source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/src/Parameters.cpp @ 76

Last change on this file since 76 was 76, checked in by rosiere, 16 years ago

Add new component : Read_unit (no tested)
Change functionnal_unit : now use type and operation to execute the good function
Change New_Component's script

File size: 5.5 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Reservation_station/include/Parameters.h"
9
10namespace morpheo {
11namespace behavioural {
12namespace core {
13namespace multi_execute_loop {
14namespace execute_loop {
15namespace multi_read_unit {
16namespace read_unit {
17namespace reservation_station {
18
19
20#undef  FUNCTION
21#define FUNCTION "Reservation_station::Parameters"
22  Parameters::Parameters (uint32_t size_queue         ,
23                          uint32_t nb_inst_retire     ,
24                          uint32_t nb_context         ,
25                          uint32_t nb_front_end       ,
26                          uint32_t nb_ooo_engine      ,
27                          uint32_t nb_packet          ,
28                          uint32_t size_general_data  ,
29                          uint32_t size_special_data  ,
30                          uint32_t nb_general_register,
31                          uint32_t nb_special_register,
32                          uint32_t nb_operation       ,
33                          uint32_t nb_type            ,
34                          uint32_t nb_gpr_write       ,
35                          uint32_t nb_spr_write       ,
36                          uint32_t nb_bypass_write    ,
37                          uint32_t nb_bypass_memory   ,
38                          uint32_t size_store_queue   ,
39                          uint32_t size_load_queue    ):
40    _size_queue            (size_queue           ),
41    _nb_inst_retire        (nb_inst_retire       ),
42    _nb_context            (nb_context           ),
43    _nb_front_end          (nb_front_end         ),
44    _nb_ooo_engine         (nb_ooo_engine        ),
45    _nb_packet             (nb_packet            ),
46    _size_general_data     (size_general_data    ),
47    _size_special_data     (size_special_data    ),
48    _nb_general_register   (nb_general_register  ),
49    _nb_special_register   (nb_special_register  ),
50    _nb_operation          (nb_operation         ),
51    _nb_type               (nb_type              ),
52    _nb_gpr_write          (nb_gpr_write         ),
53    _nb_spr_write          (nb_spr_write         ),
54    _nb_bypass_write       (nb_bypass_write      ),
55    _nb_bypass_memory      (nb_bypass_memory     ),
56    _size_store_queue      (size_store_queue     ),
57    _size_load_queue       (size_load_queue      ),
58
59    _size_context_id       (static_cast<uint32_t>(log2(_nb_context         ))),
60    _size_front_end_id     (static_cast<uint32_t>(log2(_nb_front_end       ))),
61    _size_ooo_engine_id    (static_cast<uint32_t>(log2(_nb_ooo_engine      ))),
62    _size_rob_id           (static_cast<uint32_t>(log2(_nb_packet          ))),
63    _size_general_register (static_cast<uint32_t>(log2(_nb_general_register))),
64    _size_special_register (static_cast<uint32_t>(log2(_nb_special_register))),
65    _size_operation        (static_cast<uint32_t>(log2(_nb_operation       ))),
66    _size_type             (static_cast<uint32_t>(log2(_nb_type            ))),
67
68    _have_port_context_id    (_size_context_id    > 0),
69    _have_port_front_end_id  (_size_front_end_id  > 0),
70    _have_port_ooo_engine_id (_size_ooo_engine_id > 0),
71    _have_port_rob_id        (_size_rob_id        > 0)
72  {
73    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
74    test();
75    log_printf(FUNC,Reservation_station,FUNCTION,"End");
76  };
77 
78#undef  FUNCTION
79#define FUNCTION "Reservation_station::Parameters (copy)"
80  Parameters::Parameters (Parameters & param):
81    _size_queue            (param._size_queue            ),
82    _nb_inst_retire        (param._nb_inst_retire        ),
83    _nb_context            (param._nb_context            ),
84    _nb_front_end          (param._nb_front_end          ),
85    _nb_ooo_engine         (param._nb_ooo_engine         ),
86    _nb_packet             (param._nb_packet             ),
87    _size_general_data     (param._size_general_data     ),
88    _size_special_data     (param._size_special_data     ),
89    _nb_general_register   (param._nb_general_register   ),
90    _nb_special_register   (param._nb_special_register   ),
91    _nb_operation          (param._nb_operation          ),
92    _nb_type               (param._nb_type               ),
93    _nb_gpr_write          (param._nb_gpr_write          ),
94    _nb_spr_write          (param._nb_spr_write          ),
95    _nb_bypass_write       (param._nb_bypass_write       ),
96    _nb_bypass_memory      (param._nb_bypass_memory      ),
97    _size_store_queue      (param._size_store_queue      ),
98    _size_load_queue       (param._size_load_queue       ),
99
100    _size_context_id       (param._size_context_id       ),
101    _size_front_end_id     (param._size_front_end_id     ),
102    _size_ooo_engine_id    (param._size_ooo_engine_id    ),
103    _size_rob_id           (param._size_rob_id           ),
104    _size_general_register (param._size_general_register ),
105    _size_special_register (param._size_special_register ),
106    _size_operation        (param._size_operation        ),
107    _size_type             (param._size_type             ),
108
109    _have_port_context_id    (param._have_port_context_id   ),
110    _have_port_front_end_id  (param._have_port_front_end_id ),
111    _have_port_ooo_engine_id (param._have_port_ooo_engine_id),
112    _have_port_rob_id        (param._have_port_rob_id       )
113  {
114    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
115    test();
116    log_printf(FUNC,Reservation_station,FUNCTION,"End");
117  };
118
119#undef  FUNCTION
120#define FUNCTION "Reservation_station::~Parameters"
121  Parameters::~Parameters () 
122  {
123    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
124    log_printf(FUNC,Reservation_station,FUNCTION,"End");
125  };
126
127}; // end namespace reservation_station
128}; // end namespace read_unit
129}; // end namespace multi_read_unit
130}; // end namespace execute_loop
131}; // end namespace multi_execute_loop
132}; // end namespace core
133
134}; // end namespace behavioural
135}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.