[88] | 1 | #ifndef morpheo_behavioural_core_multi_ooo_engine_ooo_engine_ooo_engine_glue_OOO_Engine_Glue_h |
---|
| 2 | #define morpheo_behavioural_core_multi_ooo_engine_ooo_engine_ooo_engine_glue_OOO_Engine_Glue_h |
---|
| 3 | |
---|
| 4 | /* |
---|
| 5 | * $Id: OOO_Engine_Glue.h 110 2009-02-19 16:31:47Z rosiere $ |
---|
| 6 | * |
---|
| 7 | * [ Description ] |
---|
| 8 | * |
---|
| 9 | */ |
---|
| 10 | |
---|
| 11 | #ifdef SYSTEMC |
---|
| 12 | #include "systemc.h" |
---|
| 13 | #endif |
---|
| 14 | |
---|
| 15 | |
---|
| 16 | #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/OOO_Engine_Glue/include/Parameters.h" |
---|
| 17 | #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/OOO_Engine_Glue/include/Types.h" |
---|
| 18 | #ifdef STATISTICS |
---|
| 19 | #include "Behavioural/include/Stat.h" |
---|
| 20 | #endif |
---|
| 21 | #include "Behavioural/include/Component.h" |
---|
| 22 | #ifdef VHDL |
---|
| 23 | #include "Behavioural/include/Vhdl.h" |
---|
| 24 | #endif |
---|
| 25 | #include "Behavioural/include/Usage.h" |
---|
| 26 | |
---|
| 27 | #include "Common/include/ToString.h" |
---|
| 28 | #include "Common/include/Debug.h" |
---|
| 29 | |
---|
| 30 | #include <iostream> |
---|
| 31 | |
---|
| 32 | namespace morpheo { |
---|
| 33 | namespace behavioural { |
---|
| 34 | |
---|
| 35 | namespace core { |
---|
| 36 | namespace multi_ooo_engine { |
---|
| 37 | namespace ooo_engine { |
---|
| 38 | namespace ooo_engine_glue { |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | class OOO_Engine_Glue |
---|
| 42 | #if SYSTEMC |
---|
| 43 | : public sc_module |
---|
| 44 | #endif |
---|
| 45 | { |
---|
| 46 | // -----[ fields ]---------------------------------------------------- |
---|
| 47 | // Parameters |
---|
| 48 | protected : const std::string _name; |
---|
| 49 | protected : const Parameters * _param; |
---|
| 50 | private : const Tusage_t _usage; |
---|
| 51 | |
---|
| 52 | #ifdef STATISTICS |
---|
| 53 | public : Stat * _stat; |
---|
[110] | 54 | |
---|
| 55 | private : counter_t * _stat_nb_inst_issue_stall_by_registerfile; |
---|
| 56 | //private : counter_t * _stat_nb_inst_issue_stall_by_rename_unit ; |
---|
| 57 | private : counter_t * _stat_nb_inst_issue_stall_by_commit_unit ; |
---|
| 58 | private : counter_t * _stat_nb_inst_issue_stall_by_issue_queue ; |
---|
[88] | 59 | #endif |
---|
| 60 | |
---|
| 61 | public : Component * _component; |
---|
| 62 | private : Interfaces * _interfaces; |
---|
| 63 | |
---|
| 64 | #ifdef SYSTEMC |
---|
| 65 | // ~~~~~[ Interface ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 66 | // ~~~~~[ Interface : "" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 67 | public : SC_CLOCK * in_CLOCK ; |
---|
| 68 | public : SC_IN (Tcontrol_t) * in_NRESET ; |
---|
| 69 | |
---|
| 70 | // ~~~~~[ Interface : "rename" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 71 | public : SC_IN (Tcontext_t ) *** in_RENAME_FRONT_END_ID ;//[nb_front_end][nb_inst_decod] |
---|
| 72 | public : SC_OUT(Tcontext_t ) *** out_RENAME_RENAME_UNIT_FRONT_END_ID ;//[nb_front_end][nb_inst_decod] |
---|
| 73 | |
---|
| 74 | // ~~~~~[ Interface : "insert" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 75 | public : SC_OUT(Tcontrol_t ) ** out_INSERT_VAL ;//[sum_inst_insert] |
---|
| 76 | public : SC_IN (Tcontrol_t ) ** in_INSERT_ACK ;//[sum_inst_insert] |
---|
| 77 | public : SC_OUT(Tcontrol_t ) ** out_INSERT_RD_USE ;//[sum_inst_insert] |
---|
| 78 | public : SC_OUT(Tgeneral_address_t ) ** out_INSERT_RD_NUM_REG ;//[sum_inst_insert] |
---|
| 79 | public : SC_OUT(Tcontrol_t ) ** out_INSERT_RE_USE ;//[sum_inst_insert] |
---|
| 80 | public : SC_OUT(Tspecial_address_t ) ** out_INSERT_RE_NUM_REG ;//[sum_inst_insert] |
---|
| 81 | |
---|
| 82 | public : SC_IN (Tcontrol_t ) *** in_INSERT_RENAME_UNIT_VAL ;//[nb_rename_unit][nb_inst_insert] |
---|
| 83 | public : SC_OUT(Tcontrol_t ) *** out_INSERT_RENAME_UNIT_ACK ;//[nb_rename_unit][nb_inst_insert] |
---|
| 84 | public : SC_IN (Tcontrol_t ) *** in_INSERT_RENAME_UNIT_NO_EXECUTE ;//[nb_rename_unit][nb_inst_insert] |
---|
| 85 | public : SC_IN (Tcontext_t ) *** in_INSERT_RENAME_UNIT_FRONT_END_ID ;//[nb_rename_unit][nb_inst_insert] |
---|
| 86 | public : SC_IN (Tcontext_t ) *** in_INSERT_RENAME_UNIT_CONTEXT_ID ;//[nb_rename_unit][nb_inst_insert] |
---|
| 87 | public : SC_IN (Ttype_t ) *** in_INSERT_RENAME_UNIT_TYPE ;//[nb_rename_unit][nb_inst_insert] |
---|
| 88 | public : SC_IN (Toperation_t ) *** in_INSERT_RENAME_UNIT_OPERATION ;//[nb_rename_unit][nb_inst_insert] |
---|
| 89 | public : SC_IN (Tcontrol_t ) *** in_INSERT_RENAME_UNIT_HAS_IMMEDIAT ;//[nb_rename_unit][nb_inst_insert] |
---|
| 90 | public : SC_IN (Tgeneral_data_t ) *** in_INSERT_RENAME_UNIT_IMMEDIAT ;//[nb_rename_unit][nb_inst_insert] |
---|
| 91 | public : SC_IN (Tlsq_ptr_t ) *** in_INSERT_RENAME_UNIT_STORE_QUEUE_PTR_WRITE ;//[nb_rename_unit][nb_inst_insert] |
---|
| 92 | public : SC_IN (Tlsq_ptr_t ) *** in_INSERT_RENAME_UNIT_LOAD_QUEUE_PTR_WRITE ;//[nb_rename_unit][nb_inst_insert] |
---|
| 93 | public : SC_IN (Tcontrol_t ) *** in_INSERT_RENAME_UNIT_READ_RA ;//[nb_rename_unit][nb_inst_insert] |
---|
| 94 | public : SC_IN (Tgeneral_address_t ) *** in_INSERT_RENAME_UNIT_NUM_REG_RA_PHY ;//[nb_rename_unit][nb_inst_insert] |
---|
| 95 | public : SC_IN (Tcontrol_t ) *** in_INSERT_RENAME_UNIT_READ_RB ;//[nb_rename_unit][nb_inst_insert] |
---|
| 96 | public : SC_IN (Tgeneral_address_t ) *** in_INSERT_RENAME_UNIT_NUM_REG_RB_PHY ;//[nb_rename_unit][nb_inst_insert] |
---|
| 97 | public : SC_IN (Tcontrol_t ) *** in_INSERT_RENAME_UNIT_READ_RC ;//[nb_rename_unit][nb_inst_insert] |
---|
| 98 | public : SC_IN (Tspecial_address_t ) *** in_INSERT_RENAME_UNIT_NUM_REG_RC_PHY ;//[nb_rename_unit][nb_inst_insert] |
---|
| 99 | public : SC_IN (Tcontrol_t ) *** in_INSERT_RENAME_UNIT_WRITE_RD ;//[nb_rename_unit][nb_inst_insert] |
---|
| 100 | public : SC_IN (Tgeneral_address_t ) *** in_INSERT_RENAME_UNIT_NUM_REG_RD_PHY_OLD ;//[nb_rename_unit][nb_inst_insert] |
---|
| 101 | public : SC_IN (Tgeneral_address_t ) *** in_INSERT_RENAME_UNIT_NUM_REG_RD_PHY_NEW ;//[nb_rename_unit][nb_inst_insert] |
---|
| 102 | public : SC_IN (Tcontrol_t ) *** in_INSERT_RENAME_UNIT_WRITE_RE ;//[nb_rename_unit][nb_inst_insert] |
---|
| 103 | public : SC_IN (Tspecial_address_t ) *** in_INSERT_RENAME_UNIT_NUM_REG_RE_PHY_OLD ;//[nb_rename_unit][nb_inst_insert] |
---|
| 104 | public : SC_IN (Tspecial_address_t ) *** in_INSERT_RENAME_UNIT_NUM_REG_RE_PHY_NEW ;//[nb_rename_unit][nb_inst_insert] |
---|
| 105 | |
---|
| 106 | public : SC_OUT(Tcontrol_t ) *** out_INSERT_COMMIT_UNIT_VAL ;//[nb_rename_unit][nb_inst_insert] |
---|
| 107 | public : SC_IN (Tcontrol_t ) *** in_INSERT_COMMIT_UNIT_ACK ;//[nb_rename_unit][nb_inst_insert] |
---|
| 108 | public : SC_OUT(Tcontext_t ) *** out_INSERT_COMMIT_UNIT_FRONT_END_ID ;//[nb_rename_unit][nb_inst_insert] |
---|
| 109 | public : SC_OUT(Tcontext_t ) *** out_INSERT_COMMIT_UNIT_CONTEXT_ID ;//[nb_rename_unit][nb_inst_insert] |
---|
| 110 | //public : SC_OUT(Tcontext_t ) *** out_INSERT_COMMIT_UNIT_RENAME_UNIT_ID ;//[nb_rename_unit][nb_inst_insert] |
---|
| 111 | public : SC_OUT(Ttype_t ) *** out_INSERT_COMMIT_UNIT_TYPE ;//[nb_rename_unit][nb_inst_insert] |
---|
| 112 | public : SC_OUT(Toperation_t ) *** out_INSERT_COMMIT_UNIT_OPERATION ;//[nb_rename_unit][nb_inst_insert] |
---|
| 113 | public : SC_OUT(Tcontrol_t ) *** out_INSERT_COMMIT_UNIT_NO_EXECUTE ;//[nb_rename_unit][nb_inst_insert] |
---|
| 114 | public : SC_OUT(Tlsq_ptr_t ) *** out_INSERT_COMMIT_UNIT_STORE_QUEUE_PTR_WRITE ;//[nb_rename_unit][nb_inst_insert] |
---|
| 115 | public : SC_OUT(Tlsq_ptr_t ) *** out_INSERT_COMMIT_UNIT_LOAD_QUEUE_PTR_WRITE ;//[nb_rename_unit][nb_inst_insert] |
---|
| 116 | public : SC_OUT(Tcontrol_t ) *** out_INSERT_COMMIT_UNIT_READ_RA ;//[nb_rename_unit][nb_inst_insert] |
---|
| 117 | public : SC_OUT(Tgeneral_address_t ) *** out_INSERT_COMMIT_UNIT_NUM_REG_RA_PHY ;//[nb_rename_unit][nb_inst_insert] |
---|
| 118 | public : SC_OUT(Tcontrol_t ) *** out_INSERT_COMMIT_UNIT_READ_RB ;//[nb_rename_unit][nb_inst_insert] |
---|
| 119 | public : SC_OUT(Tgeneral_address_t ) *** out_INSERT_COMMIT_UNIT_NUM_REG_RB_PHY ;//[nb_rename_unit][nb_inst_insert] |
---|
| 120 | public : SC_OUT(Tcontrol_t ) *** out_INSERT_COMMIT_UNIT_READ_RC ;//[nb_rename_unit][nb_inst_insert] |
---|
| 121 | public : SC_OUT(Tspecial_address_t ) *** out_INSERT_COMMIT_UNIT_NUM_REG_RC_PHY ;//[nb_rename_unit][nb_inst_insert] |
---|
| 122 | public : SC_OUT(Tcontrol_t ) *** out_INSERT_COMMIT_UNIT_WRITE_RD ;//[nb_rename_unit][nb_inst_insert] |
---|
| 123 | public : SC_OUT(Tgeneral_address_t ) *** out_INSERT_COMMIT_UNIT_NUM_REG_RD_PHY_OLD ;//[nb_rename_unit][nb_inst_insert] |
---|
| 124 | public : SC_OUT(Tgeneral_address_t ) *** out_INSERT_COMMIT_UNIT_NUM_REG_RD_PHY_NEW ;//[nb_rename_unit][nb_inst_insert] |
---|
| 125 | public : SC_OUT(Tcontrol_t ) *** out_INSERT_COMMIT_UNIT_WRITE_RE ;//[nb_rename_unit][nb_inst_insert] |
---|
| 126 | public : SC_OUT(Tspecial_address_t ) *** out_INSERT_COMMIT_UNIT_NUM_REG_RE_PHY_OLD ;//[nb_rename_unit][nb_inst_insert] |
---|
| 127 | public : SC_OUT(Tspecial_address_t ) *** out_INSERT_COMMIT_UNIT_NUM_REG_RE_PHY_NEW ;//[nb_rename_unit][nb_inst_insert] |
---|
| 128 | |
---|
[110] | 129 | public : SC_OUT(Tcontrol_t ) *** out_INSERT_ISSUE_QUEUE_VAL ;//[nb_rename_unit][nb_inst_insert] |
---|
| 130 | public : SC_IN (Tcontrol_t ) *** in_INSERT_ISSUE_QUEUE_ACK ;//[nb_rename_unit][nb_inst_insert] |
---|
| 131 | public : SC_OUT(Tcontext_t ) *** out_INSERT_ISSUE_QUEUE_CONTEXT_ID ;//[nb_rename_unit][nb_inst_insert] |
---|
| 132 | public : SC_OUT(Tcontext_t ) *** out_INSERT_ISSUE_QUEUE_FRONT_END_ID ;//[nb_rename_unit][nb_inst_insert] |
---|
| 133 | public : SC_OUT(Toperation_t ) *** out_INSERT_ISSUE_QUEUE_OPERATION ;//[nb_rename_unit][nb_inst_insert] |
---|
| 134 | public : SC_OUT(Ttype_t ) *** out_INSERT_ISSUE_QUEUE_TYPE ;//[nb_rename_unit][nb_inst_insert] |
---|
| 135 | public : SC_OUT(Tlsq_ptr_t ) *** out_INSERT_ISSUE_QUEUE_STORE_QUEUE_PTR_WRITE ;//[nb_rename_unit][nb_inst_insert] |
---|
| 136 | public : SC_OUT(Tlsq_ptr_t ) *** out_INSERT_ISSUE_QUEUE_LOAD_QUEUE_PTR_WRITE ;//[nb_rename_unit][nb_inst_insert] |
---|
| 137 | public : SC_OUT(Tcontrol_t ) *** out_INSERT_ISSUE_QUEUE_HAS_IMMEDIAT ;//[nb_rename_unit][nb_inst_insert] |
---|
| 138 | public : SC_OUT(Tgeneral_data_t ) *** out_INSERT_ISSUE_QUEUE_IMMEDIAT ;//[nb_rename_unit][nb_inst_insert] |
---|
| 139 | public : SC_OUT(Tcontrol_t ) *** out_INSERT_ISSUE_QUEUE_READ_RA ;//[nb_rename_unit][nb_inst_insert] |
---|
| 140 | public : SC_OUT(Tgeneral_address_t ) *** out_INSERT_ISSUE_QUEUE_NUM_REG_RA ;//[nb_rename_unit][nb_inst_insert] |
---|
| 141 | public : SC_OUT(Tcontrol_t ) *** out_INSERT_ISSUE_QUEUE_READ_RB ;//[nb_rename_unit][nb_inst_insert] |
---|
| 142 | public : SC_OUT(Tgeneral_address_t ) *** out_INSERT_ISSUE_QUEUE_NUM_REG_RB ;//[nb_rename_unit][nb_inst_insert] |
---|
| 143 | public : SC_OUT(Tcontrol_t ) *** out_INSERT_ISSUE_QUEUE_READ_RC ;//[nb_rename_unit][nb_inst_insert] |
---|
| 144 | public : SC_OUT(Tspecial_address_t ) *** out_INSERT_ISSUE_QUEUE_NUM_REG_RC ;//[nb_rename_unit][nb_inst_insert] |
---|
| 145 | public : SC_OUT(Tcontrol_t ) *** out_INSERT_ISSUE_QUEUE_WRITE_RD ;//[nb_rename_unit][nb_inst_insert] |
---|
| 146 | public : SC_OUT(Tgeneral_address_t ) *** out_INSERT_ISSUE_QUEUE_NUM_REG_RD ;//[nb_rename_unit][nb_inst_insert] |
---|
| 147 | public : SC_OUT(Tcontrol_t ) *** out_INSERT_ISSUE_QUEUE_WRITE_RE ;//[nb_rename_unit][nb_inst_insert] |
---|
| 148 | public : SC_OUT(Tspecial_address_t ) *** out_INSERT_ISSUE_QUEUE_NUM_REG_RE ;//[nb_rename_unit][nb_inst_insert] |
---|
[88] | 149 | |
---|
| 150 | // // ~~~~~[ Interface "retire" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 151 | // public : SC_OUT(Tcontrol_t ) ** out_RETIRE_VAL ;//[sum_inst_retire] |
---|
| 152 | // public : SC_IN (Tcontrol_t ) ** in_RETIRE_ACK ;//[sum_inst_retire] |
---|
| 153 | // public : SC_OUT(Tcontrol_t ) ** out_RETIRE_RD_OLD_USE ;//[sum_inst_retire] |
---|
| 154 | // public : SC_OUT(Tgeneral_address_t ) ** out_RETIRE_RD_OLD_NUM_REG ;//[sum_inst_retire] |
---|
| 155 | // public : SC_OUT(Tcontrol_t ) ** out_RETIRE_RD_NEW_USE ;//[sum_inst_retire] |
---|
| 156 | // public : SC_OUT(Tgeneral_address_t ) ** out_RETIRE_RD_NEW_NUM_REG ;//[sum_inst_retire] |
---|
| 157 | // public : SC_OUT(Tcontrol_t ) ** out_RETIRE_RE_OLD_USE ;//[sum_inst_retire] |
---|
| 158 | // public : SC_OUT(Tspecial_address_t ) ** out_RETIRE_RE_OLD_NUM_REG ;//[sum_inst_retire] |
---|
| 159 | // public : SC_OUT(Tcontrol_t ) ** out_RETIRE_RE_NEW_USE ;//[sum_inst_retire] |
---|
| 160 | // public : SC_OUT(Tspecial_address_t ) ** out_RETIRE_RE_NEW_NUM_REG ;//[sum_inst_retire] |
---|
| 161 | |
---|
| 162 | // public : SC_OUT(Tcontrol_t ) *** out_RETIRE_RENAME_UNIT_VAL ;//[nb_rename_unit][nb_inst_retire] |
---|
| 163 | // public : SC_IN (Tcontrol_t ) *** in_RETIRE_RENAME_UNIT_ACK ;//[nb_rename_unit][nb_inst_retire] |
---|
| 164 | // public : SC_OUT(Tcontext_t ) *** out_RETIRE_RENAME_UNIT_FRONT_END_ID ;//[nb_rename_unit][nb_inst_retire] |
---|
| 165 | // public : SC_OUT(Tcontrol_t ) *** out_RETIRE_RENAME_UNIT_WRITE_RD ;//[nb_rename_unit][nb_inst_retire] |
---|
| 166 | // public : SC_OUT(Tgeneral_address_t ) *** out_RETIRE_RENAME_UNIT_NUM_REG_RD_PHY_OLD ;//[nb_rename_unit][nb_inst_retire] |
---|
| 167 | // public : SC_OUT(Tgeneral_address_t ) *** out_RETIRE_RENAME_UNIT_NUM_REG_RD_PHY_NEW ;//[nb_rename_unit][nb_inst_retire] |
---|
| 168 | // public : SC_OUT(Tcontrol_t ) *** out_RETIRE_RENAME_UNIT_WRITE_RE ;//[nb_rename_unit][nb_inst_retire] |
---|
| 169 | // public : SC_OUT(Tspecial_address_t ) *** out_RETIRE_RENAME_UNIT_NUM_REG_RE_PHY_OLD ;//[nb_rename_unit][nb_inst_retire] |
---|
| 170 | // public : SC_OUT(Tspecial_address_t ) *** out_RETIRE_RENAME_UNIT_NUM_REG_RE_PHY_NEW ;//[nb_rename_unit][nb_inst_retire] |
---|
| 171 | // public : SC_OUT(Tevent_state_t ) *** out_RETIRE_RENAME_UNIT_EVENT_STATE ;//[nb_rename_unit][nb_inst_retire] |
---|
| 172 | |
---|
| 173 | // public : SC_IN (Tcontrol_t ) *** in_RETIRE_COMMIT_UNIT_VAL ;//[nb_rename_unit][nb_inst_retire] |
---|
| 174 | // public : SC_OUT(Tcontrol_t ) *** out_RETIRE_COMMIT_UNIT_ACK ;//[nb_rename_unit][nb_inst_retire] |
---|
| 175 | // public : SC_IN (Tcontext_t ) *** in_RETIRE_COMMIT_UNIT_FRONT_END_ID ;//[nb_rename_unit][nb_inst_retire] |
---|
| 176 | // public : SC_IN (Tcontrol_t ) *** in_RETIRE_COMMIT_UNIT_WRITE_RD ;//[nb_rename_unit][nb_inst_retire] |
---|
| 177 | // public : SC_IN (Tgeneral_address_t ) *** in_RETIRE_COMMIT_UNIT_NUM_REG_RD_PHY_OLD ;//[nb_rename_unit][nb_inst_retire] |
---|
| 178 | // public : SC_IN (Tgeneral_address_t ) *** in_RETIRE_COMMIT_UNIT_NUM_REG_RD_PHY_NEW ;//[nb_rename_unit][nb_inst_retire] |
---|
| 179 | // public : SC_IN (Tcontrol_t ) *** in_RETIRE_COMMIT_UNIT_WRITE_RE ;//[nb_rename_unit][nb_inst_retire] |
---|
| 180 | // public : SC_IN (Tspecial_address_t ) *** in_RETIRE_COMMIT_UNIT_NUM_REG_RE_PHY_OLD ;//[nb_rename_unit][nb_inst_retire] |
---|
| 181 | // public : SC_IN (Tspecial_address_t ) *** in_RETIRE_COMMIT_UNIT_NUM_REG_RE_PHY_NEW ;//[nb_rename_unit][nb_inst_retire] |
---|
| 182 | // public : SC_IN (Tevent_state_t ) *** in_RETIRE_COMMIT_UNIT_EVENT_STATE ;//[nb_rename_unit][nb_inst_retire] |
---|
| 183 | |
---|
| 184 | // ~~~~~[ Interface : "spr" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 185 | public : SC_OUT(Tcontrol_t ) *** out_SPR_SR_IEE ;//[nb_front_end][nb_context] - Interrupt Exception Enabled |
---|
| 186 | public : SC_OUT(Tcontrol_t ) *** out_SPR_SR_EPH ;//[nb_front_end][nb_context] - Exception Prefix High |
---|
| 187 | public : SC_OUT(Tspr_t ) *** out_SPR_RENAME_UNIT_SR ;//[nb_front_end][nb_context] |
---|
| 188 | public : SC_OUT(Tcontrol_t ) *** out_SPR_COMMIT_UNIT_SR_OVE ;//[nb_front_end][nb_context] |
---|
| 189 | public : SC_IN (Tspr_t ) *** in_SPR_SPECIAL_REGISTER_UNIT_SR ;//[nb_front_end][nb_context] |
---|
| 190 | |
---|
| 191 | // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 192 | |
---|
| 193 | // ~~~~~[ Register ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 194 | |
---|
| 195 | // ~~~~~[ Internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
---|
| 196 | #endif |
---|
| 197 | |
---|
| 198 | // -----[ Methods ]--------------------------------------------------- |
---|
| 199 | |
---|
| 200 | #ifdef SYSTEMC |
---|
| 201 | SC_HAS_PROCESS (OOO_Engine_Glue); |
---|
| 202 | #endif |
---|
| 203 | public : OOO_Engine_Glue |
---|
| 204 | ( |
---|
| 205 | #ifdef SYSTEMC |
---|
| 206 | sc_module_name name, |
---|
| 207 | #else |
---|
| 208 | std::string name, |
---|
| 209 | #endif |
---|
| 210 | #ifdef STATISTICS |
---|
| 211 | morpheo::behavioural::Parameters_Statistics * param_statistics, |
---|
| 212 | #endif |
---|
| 213 | Parameters * param, |
---|
| 214 | morpheo::behavioural::Tusage_t usage |
---|
| 215 | ); |
---|
| 216 | public : ~OOO_Engine_Glue (void); |
---|
| 217 | |
---|
| 218 | private : void allocation ( |
---|
| 219 | #ifdef STATISTICS |
---|
| 220 | morpheo::behavioural::Parameters_Statistics * param_statistics |
---|
| 221 | #else |
---|
| 222 | void |
---|
| 223 | #endif |
---|
| 224 | ); |
---|
| 225 | private : void deallocation (void); |
---|
| 226 | |
---|
| 227 | #ifdef SYSTEMC |
---|
| 228 | public : void transition (void); |
---|
| 229 | //public : void genMoore (void); |
---|
| 230 | public : void genMealy_rename (void); |
---|
| 231 | public : void genMealy_insert_valack (void); |
---|
| 232 | public : void genMealy_insert (void); |
---|
| 233 | public : void genMealy_retire_valack (void); |
---|
| 234 | public : void genMealy_retire (void); |
---|
| 235 | public : void genMealy_spr (void); |
---|
| 236 | #endif |
---|
| 237 | |
---|
| 238 | #if VHDL |
---|
| 239 | public : void vhdl (void); |
---|
| 240 | private : void vhdl_declaration (Vhdl * & vhdl); |
---|
| 241 | private : void vhdl_body (Vhdl * & vhdl); |
---|
| 242 | #endif |
---|
| 243 | |
---|
| 244 | #ifdef STATISTICS |
---|
| 245 | public : void statistics_allocation (morpheo::behavioural::Parameters_Statistics * param_statistics); |
---|
| 246 | public : void statistics_deallocation (void); |
---|
| 247 | #endif |
---|
| 248 | #if defined(STATISTICS) or defined(VHDL_TESTBENCH) |
---|
| 249 | private : void end_cycle (void); |
---|
| 250 | #endif |
---|
| 251 | }; |
---|
| 252 | |
---|
| 253 | }; // end namespace ooo_engine_glue |
---|
| 254 | }; // end namespace ooo_engine |
---|
| 255 | }; // end namespace multi_ooo_engine |
---|
| 256 | }; // end namespace core |
---|
| 257 | |
---|
| 258 | }; // end namespace behavioural |
---|
| 259 | }; // end namespace morpheo |
---|
| 260 | |
---|
| 261 | #endif |
---|