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

Last change on this file since 82 was 82, checked in by rosiere, 16 years ago
  • support locale (now must "just" translate)
  • update all component with new test format
  • update all component with usage
  • New component : decod queue and prediction_unit
  • Property svn:keywords set to Id
File size: 9.1 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 82 2008-05-01 16:48:45Z 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         _load_queue_ptr_write;
32  public    : Tcontrol_t         _has_immediat ;
33  public    : Tgeneral_data_t    _immediat     ;
34  public    : Tcontrol_t         _read_ra      ;
35  public    : Tgeneral_address_t _num_reg_ra   ;
36  public    : Tcontrol_t         _read_rb      ;
37  public    : Tgeneral_address_t _num_reg_rb   ;
38  public    : Tcontrol_t         _read_rc      ;
39  public    : Tspecial_address_t _num_reg_rc   ;
40  public    : Tcontrol_t         _write_rd     ;
41  public    : Tgeneral_address_t _num_reg_rd   ;
42  public    : Tcontrol_t         _write_re     ;
43  public    : Tspecial_address_t _num_reg_re   ;
44
45    friend std::ostream& operator<< (std::ostream& output_stream,
46                                morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::read_queue::Tread_queue_entry_t & x)
47    {
48      output_stream << " * _context_id            : " << toString(x._context_id   ) << std::endl
49                    << " * _front_end_id          : " << toString(x._front_end_id ) << std::endl
50                    << " * _ooo_engine_id         : " << toString(x._ooo_engine_id) << std::endl
51                    << " * _rob_id                : " << toString(x._rob_id       ) << std::endl
52                    << " * _operation             : " << toString(x._operation    ) << std::endl
53                    << " * _type                  : " << toString(x._type         ) << std::endl
54                    << " * _store_queue_ptr_write : " << toString(x._store_queue_ptr_write) << std::endl
55                    << " * _load_queue_ptr_write  : " << toString(x._load_queue_ptr_write ) << std::endl
56                    << " * _has_immediat          : " << toString(x._has_immediat ) << std::endl
57                    << " * _immediat              : " << toString(x._immediat     ) << std::endl
58                    << " * _read_ra               : " << toString(x._read_ra      ) << std::endl
59                    << " * _num_reg_ra            : " << toString(x._num_reg_ra   ) << std::endl
60                    << " * _read_rb               : " << toString(x._read_rb      ) << std::endl
61                    << " * _num_reg_rb            : " << toString(x._num_reg_rb   ) << std::endl
62                    << " * _read_rc               : " << toString(x._read_rc      ) << std::endl
63                    << " * _num_reg_rc            : " << toString(x._num_reg_rc   ) << std::endl
64                    << " * _write_rd              : " << toString(x._write_rd     ) << std::endl
65                    << " * _num_reg_rd            : " << toString(x._num_reg_rd   ) << std::endl
66                    << " * _write_re              : " << toString(x._write_re     ) << std::endl
67                    << " * _num_reg_re            : " << toString(x._num_reg_re   ) << std::endl;
68
69      return output_stream;
70    }
71
72  };
73
74  class Tread_queue_head_entry_t
75  {
76  public    : Tcontext_t         _context_id   ;
77  public    : Tcontext_t         _front_end_id ;
78  public    : Tcontext_t         _ooo_engine_id;
79  public    : Tpacket_t          _rob_id       ;
80  public    : Toperation_t       _operation    ;
81  public    : Ttype_t            _type         ;
82  public    : Tlsq_ptr_t         _store_queue_ptr_write;
83  public    : Tlsq_ptr_t         _load_queue_ptr_write;
84  public    : Tcontrol_t         _has_immediat ;
85  public    : Tgeneral_data_t    _immediat     ;
86  public    : Tcontrol_t         _read_ra      ;
87  public    : Tcontrol_t         _read_ra_val  ; // 1 : must access at the registerFile (after access, is set at 0)
88  public    : Tgeneral_address_t _num_reg_ra   ;
89  public    : Tcontrol_t         _data_ra_val  ; // 1 : the read of registerFile is valid
90  public    : Tgeneral_data_t    _data_ra      ;
91  public    : Tcontrol_t         _read_rb      ;
92  public    : Tcontrol_t         _read_rb_val  ;
93  public    : Tgeneral_address_t _num_reg_rb   ;
94  public    : Tcontrol_t         _data_rb_val  ;
95  public    : Tgeneral_data_t    _data_rb      ;
96  public    : Tcontrol_t         _read_rc      ;
97  public    : Tcontrol_t         _read_rc_val  ;
98  public    : Tspecial_address_t _num_reg_rc   ;
99  public    : Tcontrol_t         _data_rc_val  ;
100  public    : Tspecial_data_t    _data_rc      ;
101  public    : Tcontrol_t         _write_rd     ;
102  public    : Tgeneral_address_t _num_reg_rd   ;
103  public    : Tcontrol_t         _write_re     ;
104  public    : Tspecial_address_t _num_reg_re   ;
105
106#undef  FUNCTION
107#define FUNCTION "Tread_queue_head_entry_t::operator="
108  public    : Tread_queue_head_entry_t& operator=(Tread_queue_entry_t x)
109    {
110      log_printf(FUNC,Read_queue,FUNCTION,"Begin");
111         
112      _context_id   = x._context_id   ;
113      _front_end_id = x._front_end_id ;
114      _ooo_engine_id= x._ooo_engine_id;
115      _rob_id       = x._rob_id       ;
116      _operation    = x._operation    ;
117      _type         = x._type         ;
118      _store_queue_ptr_write = x._store_queue_ptr_write;
119      _load_queue_ptr_write  = x._load_queue_ptr_write ;
120      _has_immediat = x._has_immediat ;
121      _immediat     = x._immediat     ;
122      _read_ra      = x._read_ra      ;
123      _read_ra_val  = x._read_ra == 1 ; //if not must read, the registerFile is already access
124      _num_reg_ra   = x._num_reg_ra   ;
125      _data_ra_val  = x._read_ra == 0 ; //if not must read, the data is already valid
126      _data_ra      = 0               ;
127      _read_rb      = x._read_rb      ;
128      _read_rb_val  = x._read_rb == 1 ;
129      _num_reg_rb   = x._num_reg_rb   ;
130      _data_rb_val  = x._read_rb == 0 ;
131      _data_rb      = 0               ;
132      _read_rc      = x._read_rc      ;
133      _read_rc_val  = x._read_rc == 1 ;
134      _num_reg_rc   = x._num_reg_rc   ;
135      _data_rc_val  = x._read_rc == 0 ;
136      _data_rc      = 0               ;
137      _write_rd     = x._write_rd     ;
138      _num_reg_rd   = x._num_reg_rd   ;
139      _write_re     = x._write_re     ;
140      _num_reg_re   = x._num_reg_re   ;
141
142      log_printf(FUNC,Read_queue,FUNCTION,"End");
143
144      return *this;
145    }
146
147    friend std::ostream& operator<< (std::ostream& output_stream,
148                                morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::read_queue::Tread_queue_head_entry_t & x)
149    {
150      output_stream << " * _context_id            : " << x._context_id   << std::endl
151                    << " * _front_end_id          : " << x._front_end_id << std::endl
152                    << " * _ooo_engine_id         : " << x._ooo_engine_id<< std::endl
153                    << " * _rob_id                : " << x._rob_id       << std::endl
154                    << " * _operation             : " << x._operation    << std::endl
155                    << " * _type                  : " << x._type         << std::endl
156                    << " * _store_queue_ptr_write : " << toString(x._store_queue_ptr_write) << std::endl
157                    << " * _load_queue_ptr_write  : " << toString(x._load_queue_ptr_write ) << std::endl
158                    << " * _has_immediat          : " << x._has_immediat << std::endl
159                    << " * _immediat              : " << x._immediat     << std::endl
160                    << " * _read_ra               : " << x._read_ra      << std::endl
161                    << " * _read_ra_val           : " << x._read_ra_val  << std::endl
162                    << " * _num_reg_ra            : " << x._num_reg_ra   << std::endl
163                    << " * _data_ra_val           : " << x._data_ra_val  << std::endl
164                    << " * _data_ra               : " << x._data_ra      << std::endl
165                    << " * _read_rb               : " << x._read_rb      << std::endl
166                    << " * _read_rb_val           : " << x._read_rb_val  << std::endl
167                    << " * _num_reg_rb            : " << x._num_reg_rb   << std::endl
168                    << " * _data_rb_val           : " << x._data_rb_val  << std::endl
169                    << " * _data_rb               : " << x._data_rb      << std::endl
170                    << " * _read_rc               : " << x._read_rc      << std::endl
171                    << " * _read_rc_val           : " << x._read_rc_val  << std::endl
172                    << " * _num_reg_rc            : " << x._num_reg_rc   << std::endl
173                    << " * _data_rc_val           : " << x._data_rc_val  << std::endl
174                    << " * _data_rc               : " << x._data_rc      << std::endl
175                    << " * _write_rd              : " << x._write_rd     << std::endl
176                    << " * _num_reg_rd            : " << x._num_reg_rd   << std::endl
177                    << " * _write_re              : " << x._write_re     << std::endl
178                    << " * _num_reg_re            : " << x._num_reg_re   << std::endl;
179
180      return output_stream;
181    }
182  };
183
184}; // end namespace read_queue
185}; // end namespace read_unit
186}; // end namespace multi_read_unit
187}; // end namespace execute_loop
188}; // end namespace multi_execute_loop
189}; // end namespace core
190
191}; // end namespace behavioural
192}; // end namespace morpheo             
193
194#endif
Note: See TracBrowser for help on using the repository browser.