source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_queue/src/Parameters.cpp @ 73

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

add two component :

  • Write Queue (in Moore version)
  • Execute Queue

add macro to help the interface allocation : Allocation.h

File size: 3.7 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/Execute_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 execute_queue {
18
19
20#undef  FUNCTION
21#define FUNCTION "Execute_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 size_special_data  ,
29                          uint32_t nb_operation       ,
30                          uint32_t nb_type            ):
31    _size_queue              (size_queue         ),
32    _nb_context              (nb_context         ),
33    _nb_front_end            (nb_front_end       ),
34    _nb_ooo_engine           (nb_ooo_engine      ),
35    _nb_packet               (nb_packet          ),
36    _size_general_data       (size_general_data  ),
37    _size_special_data       (size_special_data  ),
38    _nb_operation            (nb_operation       ),
39    _nb_type                 (nb_type            ),
40
41    _size_context_id         (log2(_nb_context         )),
42    _size_front_end_id       (log2(_nb_front_end       )),
43    _size_ooo_engine_id      (log2(_nb_ooo_engine      )),
44    _size_packet_id          (log2(_nb_packet          )),
45    _size_operation          (log2(_nb_operation       )),
46    _size_type               (log2(_nb_type            )),
47
48    _have_port_context_id    (_size_context_id    > 0),
49    _have_port_front_end_id  (_size_front_end_id  > 0),
50    _have_port_ooo_engine_id (_size_ooo_engine_id > 0),
51    _have_port_packet_id     (_size_packet_id     > 0)
52  {
53    log_printf(FUNC,Execute_queue,FUNCTION,"Begin");
54    test();
55    log_printf(FUNC,Execute_queue,FUNCTION,"End");
56  };
57 
58#undef  FUNCTION
59#define FUNCTION "Execute_queue::Parameters (copy)"
60  Parameters::Parameters (Parameters & param):
61    _size_queue              (_size_queue             ),
62    _nb_context              (_nb_context             ),
63    _nb_front_end            (_nb_front_end           ),
64    _nb_ooo_engine           (_nb_ooo_engine          ),
65    _nb_packet               (_nb_packet              ),
66    _size_general_data       (_size_general_data      ),
67    _size_special_data       (_size_special_data      ),
68    _nb_operation            (_nb_operation           ),
69    _nb_type                 (_nb_type                ),
70
71    _size_context_id         (_size_context_id        ),
72    _size_front_end_id       (_size_front_end_id      ),
73    _size_ooo_engine_id      (_size_ooo_engine_id     ),
74    _size_packet_id          (_size_packet_id         ),
75    _size_operation          (_size_operation         ),
76    _size_type               (_size_type              ),
77
78    _have_port_context_id    (_have_port_context_id   ),
79    _have_port_front_end_id  (_have_port_front_end_id ),
80    _have_port_ooo_engine_id (_have_port_ooo_engine_id),
81    _have_port_packet_id     (_have_port_packet_id    )
82  {
83    log_printf(FUNC,Execute_queue,FUNCTION,"Begin");
84    test();
85    log_printf(FUNC,Execute_queue,FUNCTION,"End");
86  };
87
88#undef  FUNCTION
89#define FUNCTION "Execute_queue::~Parameters"
90  Parameters::~Parameters () 
91  {
92    log_printf(FUNC,Execute_queue,FUNCTION,"Begin");
93    log_printf(FUNC,Execute_queue,FUNCTION,"End");
94  };
95
96}; // end namespace execute_queue
97}; // end namespace write_unit
98}; // end namespace multi_write_unit
99}; // end namespace execute_loop
100}; // end namespace multi_execute_loop
101}; // end namespace core
102
103}; // end namespace behavioural
104}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.