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

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

Station de reservation : systemC et VHDL ok

File size: 5.2 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    _size_queue            (size_queue           ),
39    _nb_inst_retire        (nb_inst_retire       ),
40    _nb_context            (nb_context           ),
41    _nb_front_end          (nb_front_end         ),
42    _nb_ooo_engine         (nb_ooo_engine        ),
43    _nb_packet             (nb_packet            ),
44    _size_general_data     (size_general_data    ),
45    _size_special_data     (size_special_data    ),
46    _nb_general_register   (nb_general_register  ),
47    _nb_special_register   (nb_special_register  ),
48    _nb_operation          (nb_operation         ),
49    _nb_type               (nb_type              ),
50    _nb_gpr_write          (nb_gpr_write         ),
51    _nb_spr_write          (nb_spr_write         ),
52    _nb_bypass_write       (nb_bypass_write      ),
53    _nb_bypass_memory      (nb_bypass_memory     ),
54
55    _size_context_id       (static_cast<uint32_t>(log2(_nb_context         ))),
56    _size_front_end_id     (static_cast<uint32_t>(log2(_nb_front_end       ))),
57    _size_ooo_engine_id    (static_cast<uint32_t>(log2(_nb_ooo_engine      ))),
58    _size_rob_id           (static_cast<uint32_t>(log2(_nb_packet          ))),
59    _size_general_register (static_cast<uint32_t>(log2(_nb_general_register))),
60    _size_special_register (static_cast<uint32_t>(log2(_nb_special_register))),
61    _size_operation        (static_cast<uint32_t>(log2(_nb_operation       ))),
62    _size_type             (static_cast<uint32_t>(log2(_nb_type            ))),
63
64    _have_port_context_id    (_size_context_id    > 0),
65    _have_port_front_end_id  (_size_front_end_id  > 0),
66    _have_port_ooo_engine_id (_size_ooo_engine_id > 0),
67    _have_port_rob_id        (_size_rob_id        > 0)
68  {
69    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
70    test();
71    log_printf(FUNC,Reservation_station,FUNCTION,"End");
72  };
73 
74#undef  FUNCTION
75#define FUNCTION "Reservation_station::Parameters (copy)"
76  Parameters::Parameters (Parameters & param):
77    _size_queue            (param._size_queue            ),
78    _nb_inst_retire        (param._nb_inst_retire        ),
79    _nb_context            (param._nb_context            ),
80    _nb_front_end          (param._nb_front_end          ),
81    _nb_ooo_engine         (param._nb_ooo_engine         ),
82    _nb_packet             (param._nb_packet             ),
83    _size_general_data     (param._size_general_data     ),
84    _size_special_data     (param._size_special_data     ),
85    _nb_general_register   (param._nb_general_register   ),
86    _nb_special_register   (param._nb_special_register   ),
87    _nb_operation          (param._nb_operation          ),
88    _nb_type               (param._nb_type               ),
89    _nb_gpr_write          (param._nb_gpr_write          ),
90    _nb_spr_write          (param._nb_spr_write          ),
91    _nb_bypass_write       (param._nb_bypass_write       ),
92    _nb_bypass_memory      (param._nb_bypass_memory      ),
93
94    _size_context_id       (param._size_context_id       ),
95    _size_front_end_id     (param._size_front_end_id     ),
96    _size_ooo_engine_id    (param._size_ooo_engine_id    ),
97    _size_rob_id           (param._size_rob_id           ),
98    _size_general_register (param._size_general_register ),
99    _size_special_register (param._size_special_register ),
100    _size_operation        (param._size_operation        ),
101    _size_type             (param._size_type             ),
102
103    _have_port_context_id    (param._have_port_context_id   ),
104    _have_port_front_end_id  (param._have_port_front_end_id ),
105    _have_port_ooo_engine_id (param._have_port_ooo_engine_id),
106    _have_port_rob_id        (param._have_port_rob_id       )
107  {
108    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
109    test();
110    log_printf(FUNC,Reservation_station,FUNCTION,"End");
111  };
112
113#undef  FUNCTION
114#define FUNCTION "Reservation_station::~Parameters"
115  Parameters::~Parameters () 
116  {
117    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
118    log_printf(FUNC,Reservation_station,FUNCTION,"End");
119  };
120
121}; // end namespace reservation_station
122}; // end namespace read_unit
123}; // end namespace multi_read_unit
124}; // end namespace execute_loop
125}; // end namespace multi_execute_loop
126}; // end namespace core
127
128}; // end namespace behavioural
129}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.