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

Last change on this file since 77 was 77, checked in by rosiere, 16 years ago
  • Add two component :
    • network between read unit and execute unit
    • network between execute unit and write unit
  • remove parameters "nb_operation" and "nb_type"
  • in write_queue add the special case : load_speculative
File size: 4.9 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_gpr_write       ,
33                          uint32_t nb_spr_write       ,
34                          uint32_t nb_bypass_write    ,
35                          uint32_t nb_bypass_memory   ,
36                          uint32_t size_store_queue   ,
37                          uint32_t size_load_queue    ):
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_gpr_write          (nb_gpr_write         ),
49    _nb_spr_write          (nb_spr_write         ),
50    _nb_bypass_write       (nb_bypass_write      ),
51    _nb_bypass_memory      (nb_bypass_memory     ),
52    _size_store_queue      (size_store_queue     ),
53    _size_load_queue       (size_load_queue      ),
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
62    _have_port_context_id    (_size_context_id    > 0),
63    _have_port_front_end_id  (_size_front_end_id  > 0),
64    _have_port_ooo_engine_id (_size_ooo_engine_id > 0),
65    _have_port_rob_id        (_size_rob_id        > 0)
66  {
67    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
68    test();
69    log_printf(FUNC,Reservation_station,FUNCTION,"End");
70  };
71 
72#undef  FUNCTION
73#define FUNCTION "Reservation_station::Parameters (copy)"
74  Parameters::Parameters (Parameters & param):
75    _size_queue            (param._size_queue            ),
76    _nb_inst_retire        (param._nb_inst_retire        ),
77    _nb_context            (param._nb_context            ),
78    _nb_front_end          (param._nb_front_end          ),
79    _nb_ooo_engine         (param._nb_ooo_engine         ),
80    _nb_packet             (param._nb_packet             ),
81    _size_general_data     (param._size_general_data     ),
82    _size_special_data     (param._size_special_data     ),
83    _nb_general_register   (param._nb_general_register   ),
84    _nb_special_register   (param._nb_special_register   ),
85    _nb_gpr_write          (param._nb_gpr_write          ),
86    _nb_spr_write          (param._nb_spr_write          ),
87    _nb_bypass_write       (param._nb_bypass_write       ),
88    _nb_bypass_memory      (param._nb_bypass_memory      ),
89    _size_store_queue      (param._size_store_queue      ),
90    _size_load_queue       (param._size_load_queue       ),
91
92    _size_context_id       (param._size_context_id       ),
93    _size_front_end_id     (param._size_front_end_id     ),
94    _size_ooo_engine_id    (param._size_ooo_engine_id    ),
95    _size_rob_id           (param._size_rob_id           ),
96    _size_general_register (param._size_general_register ),
97    _size_special_register (param._size_special_register ),
98
99    _have_port_context_id    (param._have_port_context_id   ),
100    _have_port_front_end_id  (param._have_port_front_end_id ),
101    _have_port_ooo_engine_id (param._have_port_ooo_engine_id),
102    _have_port_rob_id        (param._have_port_rob_id       )
103  {
104    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
105    test();
106    log_printf(FUNC,Reservation_station,FUNCTION,"End");
107  };
108
109#undef  FUNCTION
110#define FUNCTION "Reservation_station::~Parameters"
111  Parameters::~Parameters () 
112  {
113    log_printf(FUNC,Reservation_station,FUNCTION,"Begin");
114    log_printf(FUNC,Reservation_station,FUNCTION,"End");
115  };
116
117}; // end namespace reservation_station
118}; // end namespace read_unit
119}; // end namespace multi_read_unit
120}; // end namespace execute_loop
121}; // end namespace multi_execute_loop
122}; // end namespace core
123
124}; // end namespace behavioural
125}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.