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

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

1) Platforms : add new organization for test
2) Load_Store_Unit : add array to count nb_check in store_queue
3) Issue_queue and Core_Glue : rewrite the issue network
4) Special_Register_Unit : add reset value to register CID
5) Softwares : add multicontext test
6) Softwares : add SPECINT
7) Softwares : add MiBench?
7) Read_queue : inhib access for r0
8) Change Core_Glue (network) - dont yet support priority and load balancing scheme

  • Property svn:keywords set to Id
File size: 9.5 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 117 2009-05-16 14:42:39Z 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) and (x._num_reg_ra != 0)); //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) or  (x._num_reg_ra == 0)); //if not must read, the data is already valid
126      _data_ra_val           = not _read_ra_val;
127      _data_ra               = 0               ;
128      _read_rb               = x._read_rb      ;
129      _read_rb_val           = ((x._read_rb == 1) and (x._num_reg_rb != 0));
130      _num_reg_rb            = x._num_reg_rb   ;
131//    _data_rb_val           = ((x._read_rb == 0) or  (x._num_reg_rb == 0));
132      _data_rb_val           = not _read_rb_val;
133      _data_rb               = 0               ;
134      _read_rc               = x._read_rc      ;
135      _read_rc_val           = x._read_rc == 1 ;
136      _num_reg_rc            = x._num_reg_rc   ;
137      _data_rc_val           = x._read_rc == 0 ;
138      _data_rc               = 0               ;
139      _write_rd              = x._write_rd     ;
140      _num_reg_rd            = x._num_reg_rd   ;
141      _write_re              = x._write_re     ;
142      _num_reg_re            = x._num_reg_re   ;
143
144      log_printf(FUNC,Read_queue,FUNCTION,"End");
145
146      return *this;
147    }
148
149    friend std::ostream& operator<< (std::ostream& output_stream,
150                                morpheo::behavioural::core::multi_execute_loop::execute_loop::multi_read_unit::read_unit::read_queue::Tread_queue_head_entry_t & x)
151    {
152      output_stream << " * _context_id            : " << x._context_id   << std::endl
153                    << " * _front_end_id          : " << x._front_end_id << std::endl
154                    << " * _ooo_engine_id         : " << x._ooo_engine_id<< std::endl
155                    << " * _rob_id                : " << x._rob_id       << std::endl
156                    << " * _operation             : " << x._operation    << std::endl
157                    << " * _type                  : " << x._type         << std::endl
158                    << " * _store_queue_ptr_write : " << toString(x._store_queue_ptr_write) << std::endl
159                    << " * _load_queue_ptr_write  : " << toString(x._load_queue_ptr_write ) << std::endl
160                    << " * _has_immediat          : " << x._has_immediat << std::endl
161                    << " * _immediat              : " << x._immediat     << std::endl
162                    << " * _read_ra               : " << x._read_ra      << std::endl
163                    << " * _read_ra_val           : " << x._read_ra_val  << std::endl
164                    << " * _num_reg_ra            : " << x._num_reg_ra   << std::endl
165                    << " * _data_ra_val           : " << x._data_ra_val  << std::endl
166                    << " * _data_ra               : " << x._data_ra      << std::endl
167                    << " * _read_rb               : " << x._read_rb      << std::endl
168                    << " * _read_rb_val           : " << x._read_rb_val  << std::endl
169                    << " * _num_reg_rb            : " << x._num_reg_rb   << std::endl
170                    << " * _data_rb_val           : " << x._data_rb_val  << std::endl
171                    << " * _data_rb               : " << x._data_rb      << std::endl
172                    << " * _read_rc               : " << x._read_rc      << std::endl
173                    << " * _read_rc_val           : " << x._read_rc_val  << std::endl
174                    << " * _num_reg_rc            : " << x._num_reg_rc   << std::endl
175                    << " * _data_rc_val           : " << x._data_rc_val  << std::endl
176                    << " * _data_rc               : " << x._data_rc      << std::endl
177                    << " * _write_rd              : " << x._write_rd     << std::endl
178                    << " * _num_reg_rd            : " << x._num_reg_rd   << std::endl
179                    << " * _write_re              : " << x._write_re     << std::endl
180                    << " * _num_reg_re            : " << x._num_reg_re   << std::endl;
181
182      return output_stream;
183    }
184  };
185
186}; // end namespace read_queue
187}; // end namespace read_unit
188}; // end namespace multi_read_unit
189}; // end namespace execute_loop
190}; // end namespace multi_execute_loop
191}; // end namespace core
192
193}; // end namespace behavioural
194}; // end namespace morpheo             
195
196#endif
Note: See TracBrowser for help on using the repository browser.