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

Last change on this file since 97 was 97, checked in by rosiere, 15 years ago

1) Update Prediction Table : statistics
2) Size instruction address on 30 bits
3) Change Log File
4) Add debug_level in simulation configuration file

  • Property svn:keywords set to Id
File size: 3.7 KB
Line 
1/*
2 * $Id: Parameters.cpp 97 2008-12-19 15:34:00Z rosiere $
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                          bool     is_toplevel        )
30  {
31    log_printf(FUNC,Execute_queue,FUNCTION,"Begin");
32
33    _size_queue              = size_queue         ;
34    _nb_context              = nb_context         ;
35    _nb_front_end            = nb_front_end       ;
36    _nb_ooo_engine           = nb_ooo_engine      ;
37    _nb_packet               = nb_packet          ;
38
39    test();
40
41    if (is_toplevel)
42      {
43        _size_instruction_address= size_general_data-2;
44        _size_context_id         = log2(_nb_context   );
45        _size_front_end_id       = log2(_nb_front_end );
46        _size_ooo_engine_id      = log2(_nb_ooo_engine);
47        _size_rob_ptr            = log2(_nb_packet    );
48        _size_general_data       = size_general_data;
49        _size_special_data       = size_special_data;
50        _size_instruction_address= size_general_data;
51
52        _have_port_context_id    = _size_context_id    > 0;
53        _have_port_front_end_id  = _size_front_end_id  > 0;
54        _have_port_ooo_engine_id = _size_ooo_engine_id > 0;
55        _have_port_rob_ptr       = _size_rob_ptr       > 0;
56
57        copy();
58      }
59
60    log_printf(FUNC,Execute_queue,FUNCTION,"End");
61  };
62 
63// #undef  FUNCTION
64// #define FUNCTION "Execute_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//     _size_special_data       (param._size_special_data      ),
73
74//     _size_context_id         (param._size_context_id        ),
75//     _size_front_end_id       (param._size_front_end_id      ),
76//     _size_ooo_engine_id      (param._size_ooo_engine_id     ),
77//     _size_packet_id          (param._size_packet_id         ),
78
79//     _have_port_context_id    (param._have_port_context_id   ),
80//     _have_port_front_end_id  (param._have_port_front_end_id ),
81//     _have_port_ooo_engine_id (param._have_port_ooo_engine_id),
82//     _have_port_packet_id     (param._have_port_packet_id    )
83//   {
84//     log_printf(FUNC,Execute_queue,FUNCTION,"Begin");
85//     test();
86//     log_printf(FUNC,Execute_queue,FUNCTION,"End");
87//   };
88
89#undef  FUNCTION
90#define FUNCTION "Execute_queue::~Parameters"
91  Parameters::~Parameters (void)
92  {
93    log_printf(FUNC,Execute_queue,FUNCTION,"Begin");
94    log_printf(FUNC,Execute_queue,FUNCTION,"End");
95  };
96
97#undef  FUNCTION
98#define FUNCTION "Execute_queue::copy"
99  void Parameters::copy (void)
100  {
101    log_printf(FUNC,Execute_queue,FUNCTION,"Begin");
102    log_printf(FUNC,Execute_queue,FUNCTION,"End");
103  };
104
105}; // end namespace execute_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.