source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Execute_loop/Execute_loop/Multi_Read_unit/Read_unit/Read_queue/include/Types.h @ 123

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

Modif for performance :
1) Load Store Unit : store send request to valid exeception
2) Commit_unit : retire can bypass store
3) Commit_unit : add stat to manage store instruction
4) Load Store Unit and Load Store Pointer Manager : add store_queue_ptr_read
5) Fix lot of bug

  • Property svn:keywords set to Id
File size: 10.2 KB
Line 
1#ifndef morpheo_behavioural_core_multi_execute_loop_execute_loop_multi_read_unit_read_unit_read_queue_Types_h
2#define morpheo_behavioural_core_multi_execute_loop_execute_loop_multi_read_unit_read_unit_read_queue_Types_h
3
4/*
5 * $Id: Types.h 122 2009-06-03 08:15:51Z rosiere $
6 *
7 * [ Description ]
8 *
9 */
10
11#include "Behavioural/include/Types.h"
12
13namespace morpheo {
14namespace behavioural {
15namespace core {
16namespace multi_execute_loop {
17namespace execute_loop {
18namespace multi_read_unit {
19namespace read_unit {
20namespace read_queue {
21 
22  class Tread_queue_entry_t
23  {
24  public    : Tcontext_t         _context_id   ;
25  public    : Tcontext_t         _front_end_id ;
26  public    : Tcontext_t         _ooo_engine_id;
27  public    : Tpacket_t          _rob_id       ;
28  public    : Toperation_t       _operation    ;
29  public    : Ttype_t            _type         ;
30  public    : Tlsq_ptr_t         _store_queue_ptr_write;
31  public    : Tlsq_ptr_t         _store_queue_ptr_read ;
32  public    : Tcontrol_t         _store_queue_empty    ;
33  public    : Tlsq_ptr_t         _load_queue_ptr_write;
34  public    : Tcontrol_t         _has_immediat ;
35  public    : Tgeneral_data_t    _immediat     ;
36  public    : Tcontrol_t         _read_ra      ;
37  public    : Tgeneral_address_t _num_reg_ra   ;
38  public    : Tcontrol_t         _read_rb      ;
39  public    : Tgeneral_address_t _num_reg_rb   ;
40  public    : Tcontrol_t         _read_rc      ;
41  public    : Tspecial_address_t _num_reg_rc   ;
42  public    : Tcontrol_t         _write_rd     ;
43  public    : Tgeneral_address_t _num_reg_rd   ;
44  public    : Tcontrol_t         _write_re     ;
45  public    : Tspecial_address_t _num_reg_re   ;
46
47    friend std::ostream& operator<< (std::ostream& output_stream,
48                                morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::read_queue::Tread_queue_entry_t & x)
49    {
50      output_stream << " * _context_id            : " << toString(x._context_id   ) << std::endl
51                    << " * _front_end_id          : " << toString(x._front_end_id ) << std::endl
52                    << " * _ooo_engine_id         : " << toString(x._ooo_engine_id) << std::endl
53                    << " * _rob_id                : " << toString(x._rob_id       ) << std::endl
54                    << " * _operation             : " << toString(x._operation    ) << std::endl
55                    << " * _type                  : " << toString(x._type         ) << std::endl
56                    << " * _store_queue_ptr_write : " << toString(x._store_queue_ptr_write) << std::endl
57                    << " * _store_queue_ptr_read  : " << toString(x._store_queue_ptr_read ) << std::endl
58                    << " * _store_queue_empty     : " << toString(x._store_queue_empty    ) << std::endl
59                    << " * _load_queue_ptr_write  : " << toString(x._load_queue_ptr_write ) << std::endl
60                    << " * _has_immediat          : " << toString(x._has_immediat ) << std::endl
61                    << " * _immediat              : " << toString(x._immediat     ) << std::endl
62                    << " * _read_ra               : " << toString(x._read_ra      ) << std::endl
63                    << " * _num_reg_ra            : " << toString(x._num_reg_ra   ) << std::endl
64                    << " * _read_rb               : " << toString(x._read_rb      ) << std::endl
65                    << " * _num_reg_rb            : " << toString(x._num_reg_rb   ) << std::endl
66                    << " * _read_rc               : " << toString(x._read_rc      ) << std::endl
67                    << " * _num_reg_rc            : " << toString(x._num_reg_rc   ) << std::endl
68                    << " * _write_rd              : " << toString(x._write_rd     ) << std::endl
69                    << " * _num_reg_rd            : " << toString(x._num_reg_rd   ) << std::endl
70                    << " * _write_re              : " << toString(x._write_re     ) << std::endl
71                    << " * _num_reg_re            : " << toString(x._num_reg_re   ) << std::endl;
72
73      return output_stream;
74    }
75
76  };
77
78  class Tread_queue_head_entry_t
79  {
80  public    : Tcontext_t         _context_id   ;
81  public    : Tcontext_t         _front_end_id ;
82  public    : Tcontext_t         _ooo_engine_id;
83  public    : Tpacket_t          _rob_id       ;
84  public    : Toperation_t       _operation    ;
85  public    : Ttype_t            _type         ;
86  public    : Tlsq_ptr_t         _store_queue_ptr_write;
87  public    : Tlsq_ptr_t         _store_queue_ptr_read ;
88  public    : Tcontrol_t         _store_queue_empty    ;
89  public    : Tlsq_ptr_t         _load_queue_ptr_write;
90  public    : Tcontrol_t         _has_immediat ;
91  public    : Tgeneral_data_t    _immediat     ;
92  public    : Tcontrol_t         _read_ra      ;
93  public    : Tcontrol_t         _read_ra_val  ; // 1 : must access at the registerFile (after access, is set at 0)
94  public    : Tgeneral_address_t _num_reg_ra   ;
95  public    : Tcontrol_t         _data_ra_val  ; // 1 : the read of registerFile is valid
96  public    : Tgeneral_data_t    _data_ra      ;
97  public    : Tcontrol_t         _read_rb      ;
98  public    : Tcontrol_t         _read_rb_val  ;
99  public    : Tgeneral_address_t _num_reg_rb   ;
100  public    : Tcontrol_t         _data_rb_val  ;
101  public    : Tgeneral_data_t    _data_rb      ;
102  public    : Tcontrol_t         _read_rc      ;
103  public    : Tcontrol_t         _read_rc_val  ;
104  public    : Tspecial_address_t _num_reg_rc   ;
105  public    : Tcontrol_t         _data_rc_val  ;
106  public    : Tspecial_data_t    _data_rc      ;
107  public    : Tcontrol_t         _write_rd     ;
108  public    : Tgeneral_address_t _num_reg_rd   ;
109  public    : Tcontrol_t         _write_re     ;
110  public    : Tspecial_address_t _num_reg_re   ;
111
112#undef  FUNCTION
113#define FUNCTION "Tread_queue_head_entry_t::operator="
114  public    : Tread_queue_head_entry_t& operator=(Tread_queue_entry_t x)
115    {
116      log_printf(FUNC,Read_queue,FUNCTION,"Begin");
117         
118      _context_id            = x._context_id   ;
119      _front_end_id          = x._front_end_id ;
120      _ooo_engine_id         = x._ooo_engine_id;
121      _rob_id                = x._rob_id       ;
122      _operation             = x._operation    ;
123      _type                  = x._type         ;
124      _store_queue_ptr_write = x._store_queue_ptr_write;
125      _store_queue_ptr_read  = x._store_queue_ptr_read ;
126      _store_queue_empty     = x._store_queue_empty    ;
127      _load_queue_ptr_write  = x._load_queue_ptr_write ;
128      _has_immediat          = x._has_immediat ;
129      _immediat              = x._immediat     ;
130      _read_ra               = x._read_ra      ;
131      _read_ra_val           = ((x._read_ra == 1) and (x._num_reg_ra != 0)); //if not must read, the registerFile is already access
132      _num_reg_ra            = x._num_reg_ra   ;
133//    _data_ra_val           = ((x._read_ra == 0) or  (x._num_reg_ra == 0)); //if not must read, the data is already valid
134      _data_ra_val           = not _read_ra_val;
135      _data_ra               = 0               ;
136      _read_rb               = x._read_rb      ;
137      _read_rb_val           = ((x._read_rb == 1) and (x._num_reg_rb != 0));
138      _num_reg_rb            = x._num_reg_rb   ;
139//    _data_rb_val           = ((x._read_rb == 0) or  (x._num_reg_rb == 0));
140      _data_rb_val           = not _read_rb_val;
141      _data_rb               = 0               ;
142      _read_rc               = x._read_rc      ;
143      _read_rc_val           = x._read_rc == 1 ;
144      _num_reg_rc            = x._num_reg_rc   ;
145      _data_rc_val           = x._read_rc == 0 ;
146      _data_rc               = 0               ;
147      _write_rd              = x._write_rd     ;
148      _num_reg_rd            = x._num_reg_rd   ;
149      _write_re              = x._write_re     ;
150      _num_reg_re            = x._num_reg_re   ;
151
152      log_printf(FUNC,Read_queue,FUNCTION,"End");
153
154      return *this;
155    }
156
157    friend std::ostream& operator<< (std::ostream& output_stream,
158                                morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::read_queue::Tread_queue_head_entry_t & x)
159    {
160      output_stream << " * _context_id            : " << x._context_id   << std::endl
161                    << " * _front_end_id          : " << x._front_end_id << std::endl
162                    << " * _ooo_engine_id         : " << x._ooo_engine_id<< std::endl
163                    << " * _rob_id                : " << x._rob_id       << std::endl
164                    << " * _operation             : " << x._operation    << std::endl
165                    << " * _type                  : " << x._type         << std::endl
166                    << " * _store_queue_ptr_write : " << toString(x._store_queue_ptr_write) << std::endl
167                    << " * _store_queue_ptr_read  : " << toString(x._store_queue_ptr_read ) << std::endl
168                    << " * _store_queue_empty     : " << toString(x._store_queue_empty    ) << std::endl
169                    << " * _load_queue_ptr_write  : " << toString(x._load_queue_ptr_write ) << std::endl
170                    << " * _has_immediat          : " << x._has_immediat << std::endl
171                    << " * _immediat              : " << x._immediat     << std::endl
172                    << " * _read_ra               : " << x._read_ra      << std::endl
173                    << " * _read_ra_val           : " << x._read_ra_val  << std::endl
174                    << " * _num_reg_ra            : " << x._num_reg_ra   << std::endl
175                    << " * _data_ra_val           : " << x._data_ra_val  << std::endl
176                    << " * _data_ra               : " << x._data_ra      << std::endl
177                    << " * _read_rb               : " << x._read_rb      << std::endl
178                    << " * _read_rb_val           : " << x._read_rb_val  << std::endl
179                    << " * _num_reg_rb            : " << x._num_reg_rb   << std::endl
180                    << " * _data_rb_val           : " << x._data_rb_val  << std::endl
181                    << " * _data_rb               : " << x._data_rb      << std::endl
182                    << " * _read_rc               : " << x._read_rc      << std::endl
183                    << " * _read_rc_val           : " << x._read_rc_val  << std::endl
184                    << " * _num_reg_rc            : " << x._num_reg_rc   << std::endl
185                    << " * _data_rc_val           : " << x._data_rc_val  << std::endl
186                    << " * _data_rc               : " << x._data_rc      << std::endl
187                    << " * _write_rd              : " << x._write_rd     << std::endl
188                    << " * _num_reg_rd            : " << x._num_reg_rd   << std::endl
189                    << " * _write_re              : " << x._write_re     << std::endl
190                    << " * _num_reg_re            : " << x._num_reg_re   << std::endl;
191
192      return output_stream;
193    }
194  };
195
196}; // end namespace read_queue
197}; // end namespace read_unit
198}; // end namespace multi_read_unit
199}; // end namespace execute_loop
200}; // end namespace multi_execute_loop
201}; // end namespace core
202
203}; // end namespace behavioural
204}; // end namespace morpheo             
205
206#endif
Note: See TracBrowser for help on using the repository browser.