source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Write_unit/Write_unit/Execute_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: 3.2 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    _size_queue              (size_queue         ),
30    _nb_context              (nb_context         ),
31    _nb_front_end            (nb_front_end       ),
32    _nb_ooo_engine           (nb_ooo_engine      ),
33    _nb_packet               (nb_packet          ),
34    _size_general_data       (size_general_data  ),
35    _size_special_data       (size_special_data  ),
36
37    _size_context_id         (log2(_nb_context         )),
38    _size_front_end_id       (log2(_nb_front_end       )),
39    _size_ooo_engine_id      (log2(_nb_ooo_engine      )),
40    _size_packet_id          (log2(_nb_packet          )),
41
42    _have_port_context_id    (_size_context_id    > 0),
43    _have_port_front_end_id  (_size_front_end_id  > 0),
44    _have_port_ooo_engine_id (_size_ooo_engine_id > 0),
45    _have_port_packet_id     (_size_packet_id     > 0)
46  {
47    log_printf(FUNC,Execute_queue,FUNCTION,"Begin");
48    test();
49    log_printf(FUNC,Execute_queue,FUNCTION,"End");
50  };
51 
52#undef  FUNCTION
53#define FUNCTION "Execute_queue::Parameters (copy)"
54  Parameters::Parameters (Parameters & param):
55    _size_queue              (param._size_queue             ),
56    _nb_context              (param._nb_context             ),
57    _nb_front_end            (param._nb_front_end           ),
58    _nb_ooo_engine           (param._nb_ooo_engine          ),
59    _nb_packet               (param._nb_packet              ),
60    _size_general_data       (param._size_general_data      ),
61    _size_special_data       (param._size_special_data      ),
62
63    _size_context_id         (param._size_context_id        ),
64    _size_front_end_id       (param._size_front_end_id      ),
65    _size_ooo_engine_id      (param._size_ooo_engine_id     ),
66    _size_packet_id          (param._size_packet_id         ),
67
68    _have_port_context_id    (param._have_port_context_id   ),
69    _have_port_front_end_id  (param._have_port_front_end_id ),
70    _have_port_ooo_engine_id (param._have_port_ooo_engine_id),
71    _have_port_packet_id     (param._have_port_packet_id    )
72  {
73    log_printf(FUNC,Execute_queue,FUNCTION,"Begin");
74    test();
75    log_printf(FUNC,Execute_queue,FUNCTION,"End");
76  };
77
78#undef  FUNCTION
79#define FUNCTION "Execute_queue::~Parameters"
80  Parameters::~Parameters () 
81  {
82    log_printf(FUNC,Execute_queue,FUNCTION,"Begin");
83    log_printf(FUNC,Execute_queue,FUNCTION,"End");
84  };
85
86}; // end namespace execute_queue
87}; // end namespace write_unit
88}; // end namespace multi_write_unit
89}; // end namespace execute_loop
90}; // end namespace multi_execute_loop
91}; // end namespace core
92
93}; // end namespace behavioural
94}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.