source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/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.1 KB
Line 
1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Write_queue/include/Parameters.h"
9
10namespace morpheo {
11namespace behavioural {
12namespace core {
13namespace multi_execute_loop {
14namespace execute_loop {
15namespace multi_write_unit {
16namespace write_unit {
17namespace write_queue {
18
19
20#undef  FUNCTION
21#define FUNCTION "Write_queue::Parameters"
22  Parameters::Parameters (uint32_t size_queue         ,
23                          uint32_t nb_context         ,
24                          uint32_t nb_front_end       ,
25                          uint32_t nb_ooo_engine      ,
26                          uint32_t nb_packet          ,
27                          uint32_t size_general_data  ,
28                          uint32_t nb_general_register,
29                          uint32_t size_special_data  ,
30                          uint32_t nb_special_register,
31                          uint32_t nb_bypass_write    ):
32    _size_queue              (size_queue         ),
33    _nb_context              (nb_context         ),
34    _nb_front_end            (nb_front_end       ),
35    _nb_ooo_engine           (nb_ooo_engine      ),
36    _nb_packet               (nb_packet          ),
37    _size_general_data       (size_general_data  ),
38    _nb_general_register     (nb_general_register),
39    _size_special_data       (size_special_data  ),
40    _nb_special_register     (nb_special_register),
41    _nb_bypass_write         (nb_bypass_write    ),
42
43    _nb_gpr_write            (1),
44    _nb_spr_write            (1),
45
46    _size_context_id         (log2(_nb_context         )),
47    _size_front_end_id       (log2(_nb_front_end       )),
48    _size_ooo_engine_id      (log2(_nb_ooo_engine      )),
49    _size_packet_id          (log2(_nb_packet          )),
50    _size_general_register   (log2(_nb_general_register)),
51    _size_special_register   (log2(_nb_special_register)),
52
53    _have_port_context_id    (_size_context_id    > 0),
54    _have_port_front_end_id  (_size_front_end_id  > 0),
55    _have_port_ooo_engine_id (_size_ooo_engine_id > 0),
56    _have_port_packet_id     (_size_packet_id     > 0)
57  {
58    log_printf(FUNC,Write_queue,FUNCTION,"Begin");
59    test();
60    log_printf(FUNC,Write_queue,FUNCTION,"End");
61  };
62 
63#undef  FUNCTION
64#define FUNCTION "Write_queue::Parameters (copy)"
65  Parameters::Parameters (Parameters & param):
66    _size_queue              (param._size_queue             ),
67    _nb_context              (param._nb_context             ),
68    _nb_front_end            (param._nb_front_end           ),
69    _nb_ooo_engine           (param._nb_ooo_engine          ),
70    _nb_packet               (param._nb_packet              ),
71    _size_general_data       (param._size_general_data      ),
72    _nb_general_register     (param._nb_general_register    ),
73    _size_special_data       (param._size_special_data      ),
74    _nb_special_register     (param._nb_special_register    ),
75    _nb_bypass_write         (param._nb_bypass_write        ),
76
77    _nb_gpr_write            (param._nb_gpr_write           ),
78    _nb_spr_write            (param._nb_spr_write           ),
79
80    _size_context_id         (param._size_context_id        ),
81    _size_front_end_id       (param._size_front_end_id      ),
82    _size_ooo_engine_id      (param._size_ooo_engine_id     ),
83    _size_packet_id          (param._size_packet_id         ),
84    _size_general_register   (param._size_general_register  ),
85    _size_special_register   (param._size_special_register  ),
86
87    _have_port_context_id    (param._have_port_context_id   ),
88    _have_port_front_end_id  (param._have_port_front_end_id ),
89    _have_port_ooo_engine_id (param._have_port_ooo_engine_id),
90    _have_port_packet_id     (param._have_port_packet_id    )
91  {
92    log_printf(FUNC,Write_queue,FUNCTION,"Begin");
93    test();
94    log_printf(FUNC,Write_queue,FUNCTION,"End");
95  };
96
97#undef  FUNCTION
98#define FUNCTION "Write_queue::~Parameters"
99  Parameters::~Parameters () 
100  {
101    log_printf(FUNC,Write_queue,FUNCTION,"Begin");
102    log_printf(FUNC,Write_queue,FUNCTION,"End");
103  };
104
105}; // end namespace write_queue
106}; // end namespace write_unit
107}; // end namespace multi_write_unit
108}; // end namespace execute_loop
109}; // end namespace multi_execute_loop
110}; // end namespace core
111
112}; // end namespace behavioural
113}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.