source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Commit_unit/include/Types.h @ 105

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

1) Bug fix : Load Miss Speculation (in Commit_unit, Update Prediction Table and Context State)
2) Change address, in rob write address_next.
3) Move Meta_Predictor in save directory

  • Property svn:keywords set to Id
File size: 11.2 KB
Line 
1#ifndef morpheo_behavioural_core_multi_ooo_engine_ooo_engine_commit_unit_Types_h
2#define morpheo_behavioural_core_multi_ooo_engine_ooo_engine_commit_unit_Types_h
3
4/*
5 * $Id: Types.h 105 2009-02-05 11:18:31Z rosiere $
6 *
7 * [ Description ]
8 *
9 */
10
11#include "Behavioural/include/Types.h"
12
13namespace morpheo {
14namespace behavioural {
15namespace core {
16namespace multi_ooo_engine {
17namespace ooo_engine {
18namespace commit_unit {
19
20  typedef enum
21    {
22      RETIRE_IN_ORDER       ,
23      RETIRE_OOO_RENAME_UNIT,
24      RETIRE_OOO_CONTEXT
25    } retire_ooo_t;
26
27  typedef enum
28    {
29      ROB_EMPTY                      , //
30      ROB_BRANCH_WAIT_END            , //
31      ROB_BRANCH_COMPLETE            , //
32      ROB_STORE_WAIT_HEAD_OK         , //
33//    ROB_STORE_WAIT_HEAD_KO         , //
34      ROB_STORE_HEAD_OK              , //
35      ROB_STORE_HEAD_KO              , //
36      ROB_OTHER_WAIT_END             , //
37      ROB_MISS_WAIT_END              , //
38      ROB_END_OK_SPECULATIVE         , //
39      ROB_END_OK                     , //
40      ROB_END_KO_SPECULATIVE         , //
41      ROB_END_KO                     , //
42      ROB_END_BRANCH_MISS_SPECULATIVE, //
43      ROB_END_BRANCH_MISS            , //
44      ROB_END_LOAD_MISS_SPECULATIVE  , //
45      ROB_END_LOAD_MISS_UPDATE       , //
46      ROB_END_LOAD_MISS              , //
47      ROB_END_MISS                   , //
48      ROB_END_EXCEPTION_WAIT_HEAD    , //
49      ROB_END_EXCEPTION_UPDATE       , //
50      ROB_END_EXCEPTION                //
51    } rob_state_t;
52
53  class entry_t
54  {
55  public  : rob_state_t        state                   ;
56  public  : uint32_t           ptr                     ;
57  public  : Tcontext_t         front_end_id            ;
58  public  : Tcontext_t         context_id              ;
59  public  : uint32_t           rename_unit_id          ;
60  public  : Tdepth_t           depth                   ;
61  public  : Ttype_t            type                    ;
62  public  : Toperation_t       operation               ;
63  public  : Tcontrol_t         is_delay_slot           ;
64//public  : Tgeneral_data_t    address                 ;
65  public  : Tcontrol_t         use_store_queue         ;
66  public  : Tcontrol_t         use_load_queue          ;
67  public  : Tlsq_ptr_t         store_queue_ptr_write   ;
68  public  : Tlsq_ptr_t         load_queue_ptr_write    ;
69  public  : Tcontrol_t         read_ra                 ;
70  public  : Tgeneral_address_t num_reg_ra_log          ;
71  public  : Tgeneral_address_t num_reg_ra_phy          ;
72  public  : Tcontrol_t         read_rb                 ;
73  public  : Tgeneral_address_t num_reg_rb_log          ;
74  public  : Tgeneral_address_t num_reg_rb_phy          ;
75  public  : Tcontrol_t         read_rc                 ;
76  public  : Tspecial_address_t num_reg_rc_log          ;
77  public  : Tspecial_address_t num_reg_rc_phy          ;
78  public  : Tcontrol_t         write_rd                ;
79  public  : Tgeneral_address_t num_reg_rd_log          ;
80  public  : Tgeneral_address_t num_reg_rd_phy_old      ;
81  public  : Tgeneral_address_t num_reg_rd_phy_new      ;
82  public  : Tcontrol_t         write_re                ;
83  public  : Tspecial_address_t num_reg_re_log          ;
84  public  : Tspecial_address_t num_reg_re_phy_old      ;
85  public  : Tspecial_address_t num_reg_re_phy_new      ;
86
87  public  : Texception_t       exception               ;
88  public  : Texception_t       exception_use           ;
89
90  public  : Tspecial_data_t    flags                   ;
91  public  : Tcontrol_t         no_sequence             ;
92//public  : Tgeneral_data_t    data_commit             ; // branch's destination
93  public  : Taddress_t         address_next            ;
94
95//   public  : entry_t (uint32_t           ptr                     ,
96//                   Tcontext_t         front_end_id            ,
97//                   Tcontext_t         context_id              ,
98//                   Tcontext_t         rename_unit_id          ,
99//                   Tdepth_t           depth                   ,
100//                   Ttype_t            type                    ,
101//                   Toperation_t       operation               ,
102//                   Tcontrol_t         is_delay_slot           ,
103//                   Tgeneral_data_t    address                 ,
104//                   Texception_t       exception               ,
105//                   Texception_t       exception_use           ,
106//                   Tlsq_ptr_t         store_queue_ptr_write   ,
107//                   Tlsq_ptr_t         load_queue_ptr_write    ,
108//                   Tcontrol_t         read_ra                 ,
109//                   Tgeneral_address_t num_reg_ra_log          ,
110//                   Tgeneral_address_t num_reg_ra_phy          ,
111//                   Tcontrol_t         read_rb                 ,
112//                   Tgeneral_address_t num_reg_rb_log          ,
113//                   Tgeneral_address_t num_reg_rb_phy          ,
114//                   Tcontrol_t         read_rc                 ,
115//                   Tspecial_address_t num_reg_rc_log          ,
116//                   Tspecial_address_t num_reg_rc_phy          ,
117//                   Tcontrol_t         write_rd                ,
118//                   Tgeneral_address_t num_reg_rd_log          ,
119//                   Tgeneral_address_t num_reg_rd_phy_old      ,
120//                   Tgeneral_address_t num_reg_rd_phy_new      ,
121//                   Tcontrol_t         write_re                ,
122//                   Tspecial_address_t num_reg_re_log          ,
123//                   Tspecial_address_t num_reg_re_phy_old      ,
124//                   Tspecial_address_t num_reg_re_phy_new      )
125//     {
126//       this->ptr                     = ptr                   ;
127//       this->front_end_id            = front_end_id          ;
128//       this->context_id              = context_id            ;
129//       this->rename_unit_id          = rename_unit_id        ;
130//       this->depth                   = depth                 ;
131//       this->type                    = type                  ;
132//       this->operation               = operation             ;
133//       this->is_delay_slot           = is_delay_slot         ;
134//       this->address                 = address               ;
135//       this->exception               = exception             ;
136//       this->exception_use           = exception_use         ;
137//       this->store_queue_ptr_write   = store_queue_ptr_write ;
138//       this->load_queue_ptr_write    = load_queue_ptr_write  ;
139//       this->read_ra                 = read_ra               ;
140//       this->num_reg_ra_log          = num_reg_ra_log        ;
141//       this->num_reg_ra_phy          = num_reg_ra_phy        ;
142//       this->read_rb                 = read_rb               ;
143//       this->num_reg_rb_log          = num_reg_rb_log        ;
144//       this->num_reg_rb_phy          = num_reg_rb_phy        ;
145//       this->read_rc                 = read_rc               ;
146//       this->num_reg_rc_log          = num_reg_rc_log        ;
147//       this->num_reg_rc_phy          = num_reg_rc_phy        ;
148//       this->write_rd                = write_rd              ;
149//       this->num_reg_rd_log          = num_reg_rd_log        ;
150//       this->num_reg_rd_phy_old      = num_reg_rd_phy_old    ;
151//       this->num_reg_rd_phy_new      = num_reg_rd_phy_new    ;
152//       this->write_re                = write_re              ;
153//       this->num_reg_re_log          = num_reg_re_log        ;
154//       this->num_reg_re_phy_old      = num_reg_re_phy_old    ;
155//       this->num_reg_re_phy_new      = num_reg_re_phy_new    ;
156//     }
157  };
158
159}; // end namespace commit_unit
160}; // end namespace ooo_engine
161}; // end namespace multi_ooo_engine
162}; // end namespace core
163}; // end namespace behavioural
164
165 template<> inline std::string toString<morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::rob_state_t>(const morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::rob_state_t& x)
166  {
167    switch (x)
168      {
169      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_EMPTY                      : return "ROB_EMPTY"                       ; break;
170      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_BRANCH_WAIT_END            : return "ROB_BRANCH_WAIT_END"             ; break;
171      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_BRANCH_COMPLETE            : return "ROB_BRANCH_COMPLETE"             ; break;
172      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_STORE_WAIT_HEAD_OK         : return "ROB_STORE_WAIT_HEAD_OK"          ; break;
173//    case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_STORE_WAIT_HEAD_KO         : return "ROB_STORE_WAIT_HEAD_KO"          ; break;
174      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_STORE_HEAD_OK              : return "ROB_STORE_HEAD_OK"               ; break;
175      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_STORE_HEAD_KO              : return "ROB_STORE_HEAD_KO"               ; break;
176      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_OTHER_WAIT_END             : return "ROB_OTHER_WAIT_END"              ; break;
177      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_MISS_WAIT_END              : return "ROB_MISS_WAIT_END"               ; break;
178      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_END_OK_SPECULATIVE         : return "ROB_END_OK_SPECULATIVE"          ; break;
179      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_END_OK                     : return "ROB_END_OK"                      ; break;
180      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_END_KO_SPECULATIVE         : return "ROB_END_KO_SPECULATIVE"          ; break;
181      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_END_KO                     : return "ROB_END_KO"                      ; break;
182      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_END_BRANCH_MISS_SPECULATIVE: return "ROB_END_BRANCH_MISS_SPECULATIVE" ; break;
183      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_END_BRANCH_MISS            : return "ROB_END_BRANCH_MISS"             ; break;
184      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_END_LOAD_MISS_SPECULATIVE  : return "ROB_END_LOAD_MISS_SPECULATIVE"   ; break;
185      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_END_LOAD_MISS_UPDATE       : return "ROB_END_LOAD_MISS_UPDATE"        ; break;
186      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_END_LOAD_MISS              : return "ROB_END_LOAD_MISS"               ; break;
187      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_END_MISS                   : return "ROB_END_MISS"                    ; break;
188      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_END_EXCEPTION_WAIT_HEAD    : return "ROB_END_EXCEPTION_WAIT_HEAD"     ; break;
189      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_END_EXCEPTION_UPDATE       : return "ROB_END_EXCEPTION_UPDATE"        ; break;
190      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_END_EXCEPTION              : return "ROB_END_EXCEPTION"               ; break;
191
192      default    : return ""      ; break;
193      }
194  };
195
196}; // end namespace morpheo             
197
198#endif
Note: See TracBrowser for help on using the repository browser.