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

Last change on this file since 88 was 88, checked in by rosiere, 16 years ago

Almost complete design
with Test and test platform

  • Property svn:keywords set to Id
File size: 9.7 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 88 2008-12-10 18:31:39Z 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_MISS                  , //
43      ROB_END_EXCEPTION_WAIT_HEAD   , //
44      ROB_END_EXCEPTION               //
45    } rob_state_t;
46
47  class entry_t
48  {
49  public  : rob_state_t        state                   ;
50  public  : uint32_t           ptr                     ;
51  public  : Tcontext_t         front_end_id            ;
52  public  : Tcontext_t         context_id              ;
53  public  : uint32_t           rename_unit_id          ;
54  public  : Tdepth_t           depth                   ;
55  public  : Ttype_t            type                    ;
56  public  : Toperation_t       operation               ;
57  public  : Tcontrol_t         is_delay_slot           ;
58  public  : Tgeneral_data_t    address                 ;
59  public  : Tcontrol_t         use_store_queue         ;
60  public  : Tcontrol_t         use_load_queue          ;
61  public  : Tlsq_ptr_t         store_queue_ptr_write   ;
62  public  : Tlsq_ptr_t         load_queue_ptr_write    ;
63  public  : Tcontrol_t         read_ra                 ;
64  public  : Tgeneral_address_t num_reg_ra_log          ;
65  public  : Tgeneral_address_t num_reg_ra_phy          ;
66  public  : Tcontrol_t         read_rb                 ;
67  public  : Tgeneral_address_t num_reg_rb_log          ;
68  public  : Tgeneral_address_t num_reg_rb_phy          ;
69  public  : Tcontrol_t         read_rc                 ;
70  public  : Tspecial_address_t num_reg_rc_log          ;
71  public  : Tspecial_address_t num_reg_rc_phy          ;
72  public  : Tcontrol_t         write_rd                ;
73  public  : Tgeneral_address_t num_reg_rd_log          ;
74  public  : Tgeneral_address_t num_reg_rd_phy_old      ;
75  public  : Tgeneral_address_t num_reg_rd_phy_new      ;
76  public  : Tcontrol_t         write_re                ;
77  public  : Tspecial_address_t num_reg_re_log          ;
78  public  : Tspecial_address_t num_reg_re_phy_old      ;
79  public  : Tspecial_address_t num_reg_re_phy_new      ;
80
81  public  : Tevent_state_t     event_state             ;
82  public  : Texception_t       exception               ;
83  public  : Texception_t       exception_use           ;
84
85  public  : Tspecial_data_t    flags                   ;
86  public  : Tcontrol_t         no_sequence             ;
87  public  : Tgeneral_data_t    data_commit             ; // branch's destination
88
89//   public  : entry_t (uint32_t           ptr                     ,
90//                   Tcontext_t         front_end_id            ,
91//                   Tcontext_t         context_id              ,
92//                   Tcontext_t         rename_unit_id          ,
93//                   Tdepth_t           depth                   ,
94//                   Ttype_t            type                    ,
95//                   Toperation_t       operation               ,
96//                   Tcontrol_t         is_delay_slot           ,
97//                   Tgeneral_data_t    address                 ,
98//                   Texception_t       exception               ,
99//                   Texception_t       exception_use           ,
100//                   Tlsq_ptr_t         store_queue_ptr_write   ,
101//                   Tlsq_ptr_t         load_queue_ptr_write    ,
102//                   Tcontrol_t         read_ra                 ,
103//                   Tgeneral_address_t num_reg_ra_log          ,
104//                   Tgeneral_address_t num_reg_ra_phy          ,
105//                   Tcontrol_t         read_rb                 ,
106//                   Tgeneral_address_t num_reg_rb_log          ,
107//                   Tgeneral_address_t num_reg_rb_phy          ,
108//                   Tcontrol_t         read_rc                 ,
109//                   Tspecial_address_t num_reg_rc_log          ,
110//                   Tspecial_address_t num_reg_rc_phy          ,
111//                   Tcontrol_t         write_rd                ,
112//                   Tgeneral_address_t num_reg_rd_log          ,
113//                   Tgeneral_address_t num_reg_rd_phy_old      ,
114//                   Tgeneral_address_t num_reg_rd_phy_new      ,
115//                   Tcontrol_t         write_re                ,
116//                   Tspecial_address_t num_reg_re_log          ,
117//                   Tspecial_address_t num_reg_re_phy_old      ,
118//                   Tspecial_address_t num_reg_re_phy_new      )
119//     {
120//       this->ptr                     = ptr                   ;
121//       this->front_end_id            = front_end_id          ;
122//       this->context_id              = context_id            ;
123//       this->rename_unit_id          = rename_unit_id        ;
124//       this->depth                   = depth                 ;
125//       this->type                    = type                  ;
126//       this->operation               = operation             ;
127//       this->is_delay_slot           = is_delay_slot         ;
128//       this->address                 = address               ;
129//       this->exception               = exception             ;
130//       this->exception_use           = exception_use         ;
131//       this->store_queue_ptr_write   = store_queue_ptr_write ;
132//       this->load_queue_ptr_write    = load_queue_ptr_write  ;
133//       this->read_ra                 = read_ra               ;
134//       this->num_reg_ra_log          = num_reg_ra_log        ;
135//       this->num_reg_ra_phy          = num_reg_ra_phy        ;
136//       this->read_rb                 = read_rb               ;
137//       this->num_reg_rb_log          = num_reg_rb_log        ;
138//       this->num_reg_rb_phy          = num_reg_rb_phy        ;
139//       this->read_rc                 = read_rc               ;
140//       this->num_reg_rc_log          = num_reg_rc_log        ;
141//       this->num_reg_rc_phy          = num_reg_rc_phy        ;
142//       this->write_rd                = write_rd              ;
143//       this->num_reg_rd_log          = num_reg_rd_log        ;
144//       this->num_reg_rd_phy_old      = num_reg_rd_phy_old    ;
145//       this->num_reg_rd_phy_new      = num_reg_rd_phy_new    ;
146//       this->write_re                = write_re              ;
147//       this->num_reg_re_log          = num_reg_re_log        ;
148//       this->num_reg_re_phy_old      = num_reg_re_phy_old    ;
149//       this->num_reg_re_phy_new      = num_reg_re_phy_new    ;
150//     }
151  };
152
153}; // end namespace commit_unit
154}; // end namespace ooo_engine
155}; // end namespace multi_ooo_engine
156}; // end namespace core
157}; // end namespace behavioural
158
159 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)
160  {
161    switch (x)
162      {
163      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_EMPTY                     : return "empty"                     ; break;
164      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_BRANCH_WAIT_END           : return "branch_wait_end"           ; break;
165      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_BRANCH_COMPLETE           : return "branch_complete"           ; break;
166      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_STORE_WAIT_HEAD_OK        : return "store_wait_head_ok"        ; break;
167//    case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_STORE_WAIT_HEAD_KO        : return "store_wait_head_ko"        ; break;
168      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_STORE_HEAD_OK             : return "store_head_ok"             ; break;
169      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_STORE_HEAD_KO             : return "store_head_ko"             ; break;
170      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_OTHER_WAIT_END            : return "other_wait_end"            ; break;
171      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_MISS_WAIT_END             : return "miss_wait_end"             ; break;
172      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_END_OK_SPECULATIVE        : return "end_ok_speculative"        ; break;
173      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_END_OK                    : return "end_ok"                    ; break;
174      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_END_KO_SPECULATIVE        : return "end_ko_speculative"        ; break;
175      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_END_KO                    : return "end_ko"                    ; break;
176      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_END_EXCEPTION_WAIT_HEAD   : return "end_exception_wait_head"   ; break;
177      case morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::ROB_END_EXCEPTION             : return "end_exception"             ; break;
178      default    : return ""      ; break;
179      }
180  };
181
182}; // end namespace morpheo             
183
184#endif
Note: See TracBrowser for help on using the repository browser.