[88] | 1 | /* |
---|
| 2 | * $Id: test.cpp 129 2009-06-29 16:38:40Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | * Test |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Commit_unit/SelfTest/include/test.h" |
---|
| 10 | #include "Behavioural/include/Allocation.h" |
---|
[110] | 11 | #include "Behavioural/include/Simulation.h" |
---|
[88] | 12 | #include "Common/include/Max.h" |
---|
| 13 | |
---|
| 14 | class rob_entry_t |
---|
| 15 | { |
---|
| 16 | public: bool val; |
---|
| 17 | public : Taddress_t address; |
---|
| 18 | }; |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | void test (string name, |
---|
| 23 | morpheo::behavioural::core::multi_ooo_engine::ooo_engine::commit_unit::Parameters * _param) |
---|
| 24 | { |
---|
| 25 | msg(_("<%s> : Simulation SystemC.\n"),name.c_str()); |
---|
| 26 | |
---|
| 27 | #ifdef STATISTICS |
---|
| 28 | morpheo::behavioural::Parameters_Statistics * _parameters_statistics = new morpheo::behavioural::Parameters_Statistics (5,CYCLE_MAX); |
---|
| 29 | #endif |
---|
| 30 | |
---|
[128] | 31 | simulation_init(0,0,0,false,false); |
---|
[129] | 32 | _model.set_model(NAME_Commit_unit, MODEL_SYSTEMC, true); |
---|
[110] | 33 | |
---|
| 34 | debug_idle_cycle = CYCLE_MAX; |
---|
| 35 | |
---|
[88] | 36 | Tusage_t _usage = USE_ALL; |
---|
| 37 | |
---|
| 38 | // _usage = usage_unset(_usage,USE_SYSTEMC ); |
---|
| 39 | // _usage = usage_unset(_usage,USE_VHDL ); |
---|
| 40 | // _usage = usage_unset(_usage,USE_VHDL_TESTBENCH ); |
---|
| 41 | // _usage = usage_unset(_usage,USE_VHDL_TESTBENCH_ASSERT); |
---|
| 42 | // _usage = usage_unset(_usage,USE_POSITION ); |
---|
[98] | 43 | // _usage = usage_unset(_usage,USE_STATISTICS ); |
---|
[88] | 44 | // _usage = usage_unset(_usage,USE_INFORMATION ); |
---|
| 45 | |
---|
| 46 | Commit_unit * _Commit_unit = new Commit_unit |
---|
| 47 | (name.c_str(), |
---|
| 48 | #ifdef STATISTICS |
---|
| 49 | _parameters_statistics, |
---|
| 50 | #endif |
---|
| 51 | _param, |
---|
| 52 | _usage); |
---|
| 53 | |
---|
| 54 | #ifdef SYSTEMC |
---|
| 55 | if (usage_is_set(_usage,USE_SYSTEMC)) |
---|
| 56 | { |
---|
| 57 | /********************************************************************* |
---|
| 58 | * Déclarations des signaux |
---|
| 59 | *********************************************************************/ |
---|
| 60 | string rename; |
---|
| 61 | |
---|
| 62 | sc_clock * in_CLOCK = new sc_clock ("clock", 1.0, 0.5); |
---|
| 63 | sc_signal<Tcontrol_t> * in_NRESET = new sc_signal<Tcontrol_t> ("NRESET"); |
---|
| 64 | |
---|
[128] | 65 | sc_signal<Tcontrol_t > *** in_INSERT_VAL ; |
---|
| 66 | sc_signal<Tcontrol_t > *** out_INSERT_ACK ; |
---|
| 67 | sc_signal<Tcontext_t > *** in_INSERT_FRONT_END_ID ; |
---|
| 68 | sc_signal<Tcontext_t > *** in_INSERT_CONTEXT_ID ; |
---|
| 69 | sc_signal<Tpacket_t > *** out_INSERT_PACKET_ID ; |
---|
| 70 | //sc_signal<Tcontext_t > *** in_INSERT_RENAME_UNIT_ID ; |
---|
| 71 | sc_signal<Tdepth_t > *** in_INSERT_DEPTH ; |
---|
| 72 | sc_signal<Ttype_t > *** in_INSERT_TYPE ; |
---|
| 73 | sc_signal<Toperation_t > *** in_INSERT_OPERATION ; |
---|
| 74 | sc_signal<Tcontrol_t > *** in_INSERT_NO_EXECUTE ; |
---|
| 75 | sc_signal<Tcontrol_t > *** in_INSERT_LAST_EVENT ; |
---|
| 76 | sc_signal<Tcontrol_t > *** in_INSERT_IS_DELAY_SLOT ; |
---|
| 77 | sc_signal<Taddress_t > *** in_INSERT_ADDRESS ; |
---|
| 78 | sc_signal<Taddress_t > *** in_INSERT_ADDRESS_NEXT ; |
---|
| 79 | sc_signal<Texception_t > *** in_INSERT_EXCEPTION ; |
---|
| 80 | sc_signal<Texception_t > *** in_INSERT_EXCEPTION_USE ; |
---|
| 81 | sc_signal<Tlsq_ptr_t > *** in_INSERT_STORE_QUEUE_PTR_WRITE ; |
---|
| 82 | sc_signal<Tlsq_ptr_t > *** in_INSERT_LOAD_QUEUE_PTR_WRITE ; |
---|
| 83 | sc_signal<Tcontrol_t > *** in_INSERT_READ_RA ; |
---|
| 84 | sc_signal<Tgeneral_address_t> *** in_INSERT_NUM_REG_RA_LOG ; |
---|
| 85 | sc_signal<Tgeneral_address_t> *** in_INSERT_NUM_REG_RA_PHY ; |
---|
| 86 | sc_signal<Tcontrol_t > *** in_INSERT_READ_RB ; |
---|
| 87 | sc_signal<Tgeneral_address_t> *** in_INSERT_NUM_REG_RB_LOG ; |
---|
| 88 | sc_signal<Tgeneral_address_t> *** in_INSERT_NUM_REG_RB_PHY ; |
---|
| 89 | sc_signal<Tcontrol_t > *** in_INSERT_READ_RC ; |
---|
| 90 | sc_signal<Tspecial_address_t> *** in_INSERT_NUM_REG_RC_LOG ; |
---|
| 91 | sc_signal<Tspecial_address_t> *** in_INSERT_NUM_REG_RC_PHY ; |
---|
| 92 | sc_signal<Tcontrol_t > *** in_INSERT_WRITE_RD ; |
---|
| 93 | sc_signal<Tgeneral_address_t> *** in_INSERT_NUM_REG_RD_LOG ; |
---|
| 94 | sc_signal<Tgeneral_address_t> *** in_INSERT_NUM_REG_RD_PHY_OLD ; |
---|
| 95 | sc_signal<Tgeneral_address_t> *** in_INSERT_NUM_REG_RD_PHY_NEW ; |
---|
| 96 | sc_signal<Tcontrol_t > *** in_INSERT_WRITE_RE ; |
---|
| 97 | sc_signal<Tspecial_address_t> *** in_INSERT_NUM_REG_RE_LOG ; |
---|
| 98 | sc_signal<Tspecial_address_t> *** in_INSERT_NUM_REG_RE_PHY_OLD ; |
---|
| 99 | sc_signal<Tspecial_address_t> *** in_INSERT_NUM_REG_RE_PHY_NEW ; |
---|
| 100 | |
---|
| 101 | sc_signal<Tcontrol_t > *** out_RETIRE_VAL ; |
---|
| 102 | sc_signal<Tcontrol_t > *** in_RETIRE_ACK ; |
---|
| 103 | sc_signal<Tcontext_t > *** out_RETIRE_FRONT_END_ID ; |
---|
| 104 | sc_signal<Tcontext_t > *** out_RETIRE_CONTEXT_ID ; |
---|
| 105 | //sc_signal<Tcontext_t > *** out_RETIRE_RENAME_UNIT_ID ; |
---|
| 106 | sc_signal<Tcontrol_t > *** out_RETIRE_USE_STORE_QUEUE ; |
---|
| 107 | sc_signal<Tcontrol_t > *** out_RETIRE_USE_LOAD_QUEUE ; |
---|
| 108 | sc_signal<Tlsq_ptr_t > *** out_RETIRE_STORE_QUEUE_PTR_WRITE ; |
---|
| 109 | sc_signal<Tlsq_ptr_t > *** out_RETIRE_LOAD_QUEUE_PTR_WRITE ; |
---|
| 110 | sc_signal<Tcontrol_t > *** out_RETIRE_READ_RA ; |
---|
| 111 | sc_signal<Tgeneral_address_t> *** out_RETIRE_NUM_REG_RA_PHY ; |
---|
| 112 | sc_signal<Tcontrol_t > *** out_RETIRE_READ_RB ; |
---|
| 113 | sc_signal<Tgeneral_address_t> *** out_RETIRE_NUM_REG_RB_PHY ; |
---|
| 114 | sc_signal<Tcontrol_t > *** out_RETIRE_READ_RC ; |
---|
| 115 | sc_signal<Tspecial_address_t> *** out_RETIRE_NUM_REG_RC_PHY ; |
---|
| 116 | sc_signal<Tcontrol_t > *** out_RETIRE_WRITE_RD ; |
---|
| 117 | sc_signal<Tgeneral_address_t> *** out_RETIRE_NUM_REG_RD_LOG ; |
---|
| 118 | sc_signal<Tgeneral_address_t> *** out_RETIRE_NUM_REG_RD_PHY_OLD ; |
---|
| 119 | sc_signal<Tgeneral_address_t> *** out_RETIRE_NUM_REG_RD_PHY_NEW ; |
---|
| 120 | sc_signal<Tcontrol_t > *** out_RETIRE_WRITE_RE ; |
---|
| 121 | sc_signal<Tspecial_address_t> *** out_RETIRE_NUM_REG_RE_LOG ; |
---|
| 122 | sc_signal<Tspecial_address_t> *** out_RETIRE_NUM_REG_RE_PHY_OLD ; |
---|
| 123 | sc_signal<Tspecial_address_t> *** out_RETIRE_NUM_REG_RE_PHY_NEW ; |
---|
| 124 | |
---|
| 125 | sc_signal<Tcontrol_t > *** out_RETIRE_EVENT_VAL ; |
---|
| 126 | sc_signal<Tcontrol_t > *** in_RETIRE_EVENT_ACK ; |
---|
| 127 | sc_signal<Tevent_state_t > *** out_RETIRE_EVENT_STATE ; |
---|
| 128 | sc_signal<Tcontrol_t > *** out_RETIRE_EVENT_STOP ; |
---|
| 129 | |
---|
| 130 | sc_signal<Tcontrol_t > ** in_COMMIT_VAL ; |
---|
| 131 | sc_signal<Tcontrol_t > ** out_COMMIT_ACK ; |
---|
| 132 | sc_signal<Tcontrol_t > ** in_COMMIT_WEN ; |
---|
| 133 | sc_signal<Tpacket_t > ** in_COMMIT_PACKET_ID ; |
---|
| 134 | //sc_signal<Toperation_t > ** in_COMMIT_OPERATION ; |
---|
| 135 | //sc_signal<Ttype_t > ** in_COMMIT_TYPE ; |
---|
| 136 | sc_signal<Tspecial_data_t > ** in_COMMIT_FLAGS ; |
---|
| 137 | sc_signal<Texception_t > ** in_COMMIT_EXCEPTION ; |
---|
| 138 | sc_signal<Tcontrol_t > ** in_COMMIT_NO_SEQUENCE ; |
---|
| 139 | sc_signal<Taddress_t > ** in_COMMIT_ADDRESS ; |
---|
| 140 | sc_signal<Tgeneral_address_t> ** out_COMMIT_NUM_REG_RD ; |
---|
| 141 | |
---|
| 142 | sc_signal<Tcontrol_t > ** out_REEXECUTE_VAL ; |
---|
| 143 | sc_signal<Tcontrol_t > ** in_REEXECUTE_ACK ; |
---|
| 144 | sc_signal<Tcontext_t > ** out_REEXECUTE_CONTEXT_ID ; |
---|
| 145 | sc_signal<Tcontext_t > ** out_REEXECUTE_FRONT_END_ID ; |
---|
| 146 | sc_signal<Tpacket_t > ** out_REEXECUTE_PACKET_ID ; |
---|
| 147 | sc_signal<Toperation_t > ** out_REEXECUTE_OPERATION ; |
---|
| 148 | sc_signal<Ttype_t > ** out_REEXECUTE_TYPE ; |
---|
| 149 | sc_signal<Tlsq_ptr_t > ** out_REEXECUTE_STORE_QUEUE_PTR_WRITE; |
---|
| 150 | |
---|
| 151 | sc_signal<Tcontrol_t > ** out_BRANCH_COMPLETE_VAL ; |
---|
| 152 | sc_signal<Tcontrol_t > ** in_BRANCH_COMPLETE_ACK ; |
---|
| 153 | sc_signal<Tcontext_t > ** out_BRANCH_COMPLETE_CONTEXT_ID ; |
---|
| 154 | sc_signal<Tcontext_t > ** out_BRANCH_COMPLETE_FRONT_END_ID ; |
---|
| 155 | sc_signal<Tdepth_t > ** out_BRANCH_COMPLETE_DEPTH ; |
---|
| 156 | sc_signal<Taddress_t > ** out_BRANCH_COMPLETE_ADDRESS ; |
---|
| 157 | sc_signal<Tcontrol_t > ** out_BRANCH_COMPLETE_NO_SEQUENCE ; |
---|
| 158 | sc_signal<Tcontrol_t > ** in_BRANCH_COMPLETE_MISS_PREDICTION; |
---|
| 159 | |
---|
| 160 | sc_signal<Tcontrol_t > * out_UPDATE_VAL ; |
---|
| 161 | sc_signal<Tcontrol_t > * in_UPDATE_ACK ; |
---|
| 162 | sc_signal<Tcontext_t > * out_UPDATE_CONTEXT_ID ; |
---|
| 163 | sc_signal<Tcontext_t > * out_UPDATE_FRONT_END_ID ; |
---|
| 164 | sc_signal<Tdepth_t > * out_UPDATE_DEPTH ; |
---|
| 165 | sc_signal<Tevent_type_t > * out_UPDATE_TYPE ; |
---|
| 166 | sc_signal<Tcontrol_t > * out_UPDATE_IS_DELAY_SLOT ; |
---|
| 167 | sc_signal<Taddress_t > * out_UPDATE_ADDRESS ; |
---|
| 168 | sc_signal<Tcontrol_t > * out_UPDATE_ADDRESS_EPCR_VAL ; |
---|
| 169 | sc_signal<Taddress_t > * out_UPDATE_ADDRESS_EPCR ; |
---|
| 170 | sc_signal<Tcontrol_t > * out_UPDATE_ADDRESS_EEAR_VAL ; |
---|
| 171 | sc_signal<Tgeneral_data_t > * out_UPDATE_ADDRESS_EEAR ; |
---|
| 172 | |
---|
| 173 | sc_signal<Tcontrol_t > *** in_EVENT_VAL ; |
---|
| 174 | sc_signal<Tcontrol_t > *** out_EVENT_ACK ; |
---|
| 175 | sc_signal<Taddress_t > *** in_EVENT_ADDRESS ; |
---|
| 176 | sc_signal<Taddress_t > *** in_EVENT_ADDRESS_NEXT ; |
---|
| 177 | sc_signal<Tcontrol_t > *** in_EVENT_ADDRESS_NEXT_VAL ; |
---|
| 178 | sc_signal<Tcontrol_t > *** in_EVENT_IS_DS_TAKE ; |
---|
| 179 | |
---|
| 180 | sc_signal<Tcounter_t > *** out_NB_INST_COMMIT_ALL ; |
---|
| 181 | sc_signal<Tcounter_t > *** out_NB_INST_COMMIT_MEM ; |
---|
| 182 | sc_signal<Tcounter_t > *** in_NB_INST_DECOD_ALL ; |
---|
| 183 | sc_signal<Tdepth_t > *** in_DEPTH_MIN ; |
---|
| 184 | sc_signal<Tdepth_t > *** in_DEPTH_MAX ; |
---|
| 185 | sc_signal<Tcontrol_t > *** in_DEPTH_FULL ; |
---|
| 186 | |
---|
| 187 | sc_signal<Tcontrol_t > *** in_SPR_READ_SR_OVE ; |
---|
| 188 | |
---|
| 189 | sc_signal<Tcontrol_t > *** out_SPR_WRITE_VAL ; |
---|
| 190 | sc_signal<Tcontrol_t > *** in_SPR_WRITE_ACK ; |
---|
| 191 | sc_signal<Tcontrol_t > *** out_SPR_WRITE_SR_F_VAL ; |
---|
| 192 | sc_signal<Tcontrol_t > *** out_SPR_WRITE_SR_F ; |
---|
| 193 | sc_signal<Tcontrol_t > *** out_SPR_WRITE_SR_CY_VAL ; |
---|
| 194 | sc_signal<Tcontrol_t > *** out_SPR_WRITE_SR_CY ; |
---|
| 195 | sc_signal<Tcontrol_t > *** out_SPR_WRITE_SR_OV_VAL ; |
---|
| 196 | sc_signal<Tcontrol_t > *** out_SPR_WRITE_SR_OV ; |
---|
| 197 | |
---|
| 198 | sc_signal<bool > * out_INFO_ROB_EMPTY ; |
---|
| 199 | |
---|
[88] | 200 | ALLOC2_SC_SIGNAL( in_INSERT_VAL ," in_INSERT_VAL ",Tcontrol_t ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 201 | ALLOC2_SC_SIGNAL(out_INSERT_ACK ,"out_INSERT_ACK ",Tcontrol_t ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 202 | ALLOC2_SC_SIGNAL( in_INSERT_FRONT_END_ID ," in_INSERT_FRONT_END_ID ",Tcontext_t ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 203 | ALLOC2_SC_SIGNAL( in_INSERT_CONTEXT_ID ," in_INSERT_CONTEXT_ID ",Tcontext_t ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 204 | ALLOC2_SC_SIGNAL(out_INSERT_PACKET_ID ,"out_INSERT_PACKET_ID ",Tpacket_t ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 205 | //ALLOC2_SC_SIGNAL( in_INSERT_RENAME_UNIT_ID ," in_INSERT_RENAME_UNIT_ID ",Tcontext_t ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 206 | ALLOC2_SC_SIGNAL( in_INSERT_DEPTH ," in_INSERT_DEPTH ",Tdepth_t ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 207 | ALLOC2_SC_SIGNAL( in_INSERT_TYPE ," in_INSERT_TYPE ",Ttype_t ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 208 | ALLOC2_SC_SIGNAL( in_INSERT_OPERATION ," in_INSERT_OPERATION ",Toperation_t ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 209 | ALLOC2_SC_SIGNAL( in_INSERT_NO_EXECUTE ," in_INSERT_NO_EXECUTE ",Tcontrol_t ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
[128] | 210 | ALLOC2_SC_SIGNAL( in_INSERT_LAST_EVENT ," in_INSERT_LAST_EVENT ",Tcontrol_t ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
[88] | 211 | ALLOC2_SC_SIGNAL( in_INSERT_IS_DELAY_SLOT ," in_INSERT_IS_DELAY_SLOT ",Tcontrol_t ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
[108] | 212 | ALLOC2_SC_SIGNAL( in_INSERT_ADDRESS ," in_INSERT_ADDRESS ",Taddress_t ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
[105] | 213 | ALLOC2_SC_SIGNAL( in_INSERT_ADDRESS_NEXT ," in_INSERT_ADDRESS_NEXT ",Taddress_t ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
[88] | 214 | ALLOC2_SC_SIGNAL( in_INSERT_EXCEPTION ," in_INSERT_EXCEPTION ",Texception_t ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 215 | ALLOC2_SC_SIGNAL( in_INSERT_EXCEPTION_USE ," in_INSERT_EXCEPTION_USE ",Texception_t ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 216 | ALLOC2_SC_SIGNAL( in_INSERT_STORE_QUEUE_PTR_WRITE ," in_INSERT_STORE_QUEUE_PTR_WRITE ",Tlsq_ptr_t ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 217 | ALLOC2_SC_SIGNAL( in_INSERT_LOAD_QUEUE_PTR_WRITE ," in_INSERT_LOAD_QUEUE_PTR_WRITE ",Tlsq_ptr_t ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 218 | ALLOC2_SC_SIGNAL( in_INSERT_READ_RA ," in_INSERT_READ_RA ",Tcontrol_t ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 219 | ALLOC2_SC_SIGNAL( in_INSERT_NUM_REG_RA_LOG ," in_INSERT_NUM_REG_RA_LOG ",Tgeneral_address_t,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 220 | ALLOC2_SC_SIGNAL( in_INSERT_NUM_REG_RA_PHY ," in_INSERT_NUM_REG_RA_PHY ",Tgeneral_address_t,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 221 | ALLOC2_SC_SIGNAL( in_INSERT_READ_RB ," in_INSERT_READ_RB ",Tcontrol_t ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 222 | ALLOC2_SC_SIGNAL( in_INSERT_NUM_REG_RB_LOG ," in_INSERT_NUM_REG_RB_LOG ",Tgeneral_address_t,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 223 | ALLOC2_SC_SIGNAL( in_INSERT_NUM_REG_RB_PHY ," in_INSERT_NUM_REG_RB_PHY ",Tgeneral_address_t,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 224 | ALLOC2_SC_SIGNAL( in_INSERT_READ_RC ," in_INSERT_READ_RC ",Tcontrol_t ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 225 | ALLOC2_SC_SIGNAL( in_INSERT_NUM_REG_RC_LOG ," in_INSERT_NUM_REG_RC_LOG ",Tspecial_address_t,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 226 | ALLOC2_SC_SIGNAL( in_INSERT_NUM_REG_RC_PHY ," in_INSERT_NUM_REG_RC_PHY ",Tspecial_address_t,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 227 | ALLOC2_SC_SIGNAL( in_INSERT_WRITE_RD ," in_INSERT_WRITE_RD ",Tcontrol_t ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 228 | ALLOC2_SC_SIGNAL( in_INSERT_NUM_REG_RD_LOG ," in_INSERT_NUM_REG_RD_LOG ",Tgeneral_address_t,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 229 | ALLOC2_SC_SIGNAL( in_INSERT_NUM_REG_RD_PHY_OLD ," in_INSERT_NUM_REG_RD_PHY_OLD ",Tgeneral_address_t,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 230 | ALLOC2_SC_SIGNAL( in_INSERT_NUM_REG_RD_PHY_NEW ," in_INSERT_NUM_REG_RD_PHY_NEW ",Tgeneral_address_t,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 231 | ALLOC2_SC_SIGNAL( in_INSERT_WRITE_RE ," in_INSERT_WRITE_RE ",Tcontrol_t ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 232 | ALLOC2_SC_SIGNAL( in_INSERT_NUM_REG_RE_LOG ," in_INSERT_NUM_REG_RE_LOG ",Tspecial_address_t,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 233 | ALLOC2_SC_SIGNAL( in_INSERT_NUM_REG_RE_PHY_OLD ," in_INSERT_NUM_REG_RE_PHY_OLD ",Tspecial_address_t,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 234 | ALLOC2_SC_SIGNAL( in_INSERT_NUM_REG_RE_PHY_NEW ," in_INSERT_NUM_REG_RE_PHY_NEW ",Tspecial_address_t,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 235 | ALLOC2_SC_SIGNAL(out_RETIRE_VAL ,"out_RETIRE_VAL ",Tcontrol_t ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 236 | ALLOC2_SC_SIGNAL( in_RETIRE_ACK ," in_RETIRE_ACK ",Tcontrol_t ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 237 | ALLOC2_SC_SIGNAL(out_RETIRE_FRONT_END_ID ,"out_RETIRE_FRONT_END_ID ",Tcontext_t ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 238 | ALLOC2_SC_SIGNAL(out_RETIRE_CONTEXT_ID ,"out_RETIRE_CONTEXT_ID ",Tcontext_t ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 239 | //ALLOC2_SC_SIGNAL(out_RETIRE_RENAME_UNIT_ID ,"out_RETIRE_RENAME_UNIT_ID ",Tcontext_t ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 240 | ALLOC2_SC_SIGNAL(out_RETIRE_USE_STORE_QUEUE ,"out_RETIRE_USE_STORE_QUEUE ",Tcontrol_t ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 241 | ALLOC2_SC_SIGNAL(out_RETIRE_USE_LOAD_QUEUE ,"out_RETIRE_USE_LOAD_QUEUE ",Tcontrol_t ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 242 | ALLOC2_SC_SIGNAL(out_RETIRE_STORE_QUEUE_PTR_WRITE ,"out_RETIRE_STORE_QUEUE_PTR_WRITE ",Tlsq_ptr_t ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 243 | ALLOC2_SC_SIGNAL(out_RETIRE_LOAD_QUEUE_PTR_WRITE ,"out_RETIRE_LOAD_QUEUE_PTR_WRITE ",Tlsq_ptr_t ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
[121] | 244 | // ALLOC2_SC_SIGNAL(out_RETIRE_READ_RA ,"out_RETIRE_READ_RA ",Tcontrol_t ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 245 | // ALLOC2_SC_SIGNAL(out_RETIRE_NUM_REG_RA_PHY ,"out_RETIRE_NUM_REG_RA_PHY ",Tgeneral_address_t,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 246 | // ALLOC2_SC_SIGNAL(out_RETIRE_READ_RB ,"out_RETIRE_READ_RB ",Tcontrol_t ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 247 | // ALLOC2_SC_SIGNAL(out_RETIRE_NUM_REG_RB_PHY ,"out_RETIRE_NUM_REG_RB_PHY ",Tgeneral_address_t,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 248 | // ALLOC2_SC_SIGNAL(out_RETIRE_READ_RC ,"out_RETIRE_READ_RC ",Tcontrol_t ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 249 | // ALLOC2_SC_SIGNAL(out_RETIRE_NUM_REG_RC_PHY ,"out_RETIRE_NUM_REG_RC_PHY ",Tspecial_address_t,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
[88] | 250 | ALLOC2_SC_SIGNAL(out_RETIRE_WRITE_RD ,"out_RETIRE_WRITE_RD ",Tcontrol_t ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 251 | ALLOC2_SC_SIGNAL(out_RETIRE_NUM_REG_RD_LOG ,"out_RETIRE_NUM_REG_RD_LOG ",Tgeneral_address_t,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 252 | ALLOC2_SC_SIGNAL(out_RETIRE_NUM_REG_RD_PHY_OLD ,"out_RETIRE_NUM_REG_RD_PHY_OLD ",Tgeneral_address_t,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 253 | ALLOC2_SC_SIGNAL(out_RETIRE_NUM_REG_RD_PHY_NEW ,"out_RETIRE_NUM_REG_RD_PHY_NEW ",Tgeneral_address_t,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 254 | ALLOC2_SC_SIGNAL(out_RETIRE_WRITE_RE ,"out_RETIRE_WRITE_RE ",Tcontrol_t ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 255 | ALLOC2_SC_SIGNAL(out_RETIRE_NUM_REG_RE_LOG ,"out_RETIRE_NUM_REG_RE_LOG ",Tspecial_address_t,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 256 | ALLOC2_SC_SIGNAL(out_RETIRE_NUM_REG_RE_PHY_OLD ,"out_RETIRE_NUM_REG_RE_PHY_OLD ",Tspecial_address_t,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 257 | ALLOC2_SC_SIGNAL(out_RETIRE_NUM_REG_RE_PHY_NEW ,"out_RETIRE_NUM_REG_RE_PHY_NEW ",Tspecial_address_t,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
[104] | 258 | |
---|
| 259 | ALLOC2_SC_SIGNAL(out_RETIRE_EVENT_VAL ,"out_RETIRE_EVENT_VAL ",Tcontrol_t ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 260 | ALLOC2_SC_SIGNAL( in_RETIRE_EVENT_ACK ," in_RETIRE_EVENT_ACK ",Tcontrol_t ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 261 | ALLOC2_SC_SIGNAL(out_RETIRE_EVENT_STATE ,"out_RETIRE_EVENT_STATE ",Tevent_state_t ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
[128] | 262 | ALLOC2_SC_SIGNAL(out_RETIRE_EVENT_STOP ,"out_RETIRE_EVENT_STOP ",Tcontrol_t ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
[104] | 263 | |
---|
[88] | 264 | ALLOC1_SC_SIGNAL( in_COMMIT_VAL ," in_COMMIT_VAL ",Tcontrol_t ,_param->_nb_inst_commit); |
---|
| 265 | ALLOC1_SC_SIGNAL(out_COMMIT_ACK ,"out_COMMIT_ACK ",Tcontrol_t ,_param->_nb_inst_commit); |
---|
| 266 | ALLOC1_SC_SIGNAL( in_COMMIT_WEN ," in_COMMIT_WEN ",Tcontrol_t ,_param->_nb_inst_commit); |
---|
| 267 | ALLOC1_SC_SIGNAL( in_COMMIT_PACKET_ID ," in_COMMIT_PACKET_ID ",Tpacket_t ,_param->_nb_inst_commit); |
---|
| 268 | //ALLOC1_SC_SIGNAL( in_COMMIT_OPERATION ," in_COMMIT_OPERATION ",Toperation_t ,_param->_nb_inst_commit); |
---|
| 269 | //ALLOC1_SC_SIGNAL( in_COMMIT_TYPE ," in_COMMIT_TYPE ",Ttype_t ,_param->_nb_inst_commit); |
---|
| 270 | ALLOC1_SC_SIGNAL( in_COMMIT_FLAGS ," in_COMMIT_FLAGS ",Tspecial_data_t ,_param->_nb_inst_commit); |
---|
| 271 | ALLOC1_SC_SIGNAL( in_COMMIT_EXCEPTION ," in_COMMIT_EXCEPTION ",Texception_t ,_param->_nb_inst_commit); |
---|
| 272 | ALLOC1_SC_SIGNAL( in_COMMIT_NO_SEQUENCE ," in_COMMIT_NO_SEQUENCE ",Tcontrol_t ,_param->_nb_inst_commit); |
---|
[97] | 273 | ALLOC1_SC_SIGNAL( in_COMMIT_ADDRESS ," in_COMMIT_ADDRESS ",Taddress_t ,_param->_nb_inst_commit); |
---|
[88] | 274 | ALLOC1_SC_SIGNAL(out_COMMIT_NUM_REG_RD ,"out_COMMIT_NUM_REG_RD ",Tgeneral_address_t,_param->_nb_inst_commit); |
---|
[128] | 275 | |
---|
[88] | 276 | ALLOC1_SC_SIGNAL(out_REEXECUTE_VAL ,"out_REEXECUTE_VAL ",Tcontrol_t ,_param->_nb_inst_reexecute); |
---|
| 277 | ALLOC1_SC_SIGNAL( in_REEXECUTE_ACK ," in_REEXECUTE_ACK ",Tcontrol_t ,_param->_nb_inst_reexecute); |
---|
| 278 | ALLOC1_SC_SIGNAL(out_REEXECUTE_CONTEXT_ID ,"out_REEXECUTE_CONTEXT_ID ",Tcontext_t ,_param->_nb_inst_reexecute); |
---|
| 279 | ALLOC1_SC_SIGNAL(out_REEXECUTE_FRONT_END_ID ,"out_REEXECUTE_FRONT_END_ID ",Tcontext_t ,_param->_nb_inst_reexecute); |
---|
| 280 | ALLOC1_SC_SIGNAL(out_REEXECUTE_PACKET_ID ,"out_REEXECUTE_PACKET_ID ",Tpacket_t ,_param->_nb_inst_reexecute); |
---|
| 281 | ALLOC1_SC_SIGNAL(out_REEXECUTE_OPERATION ,"out_REEXECUTE_OPERATION ",Toperation_t ,_param->_nb_inst_reexecute); |
---|
| 282 | ALLOC1_SC_SIGNAL(out_REEXECUTE_TYPE ,"out_REEXECUTE_TYPE ",Ttype_t ,_param->_nb_inst_reexecute); |
---|
| 283 | ALLOC1_SC_SIGNAL(out_REEXECUTE_STORE_QUEUE_PTR_WRITE,"out_REEXECUTE_STORE_QUEUE_PTR_WRITE",Tlsq_ptr_t ,_param->_nb_inst_reexecute); |
---|
| 284 | ALLOC1_SC_SIGNAL(out_BRANCH_COMPLETE_VAL ,"out_BRANCH_COMPLETE_VAL ",Tcontrol_t ,_param->_nb_inst_branch_complete); |
---|
| 285 | ALLOC1_SC_SIGNAL( in_BRANCH_COMPLETE_ACK ," in_BRANCH_COMPLETE_ACK ",Tcontrol_t ,_param->_nb_inst_branch_complete); |
---|
| 286 | ALLOC1_SC_SIGNAL(out_BRANCH_COMPLETE_CONTEXT_ID ,"out_BRANCH_COMPLETE_CONTEXT_ID ",Tcontext_t ,_param->_nb_inst_branch_complete); |
---|
| 287 | ALLOC1_SC_SIGNAL(out_BRANCH_COMPLETE_FRONT_END_ID ,"out_BRANCH_COMPLETE_FRONT_END_ID ",Tcontext_t ,_param->_nb_inst_branch_complete); |
---|
| 288 | ALLOC1_SC_SIGNAL(out_BRANCH_COMPLETE_DEPTH ,"out_BRANCH_COMPLETE_DEPTH ",Tdepth_t ,_param->_nb_inst_branch_complete); |
---|
| 289 | ALLOC1_SC_SIGNAL(out_BRANCH_COMPLETE_ADDRESS ,"out_BRANCH_COMPLETE_ADDRESS ",Taddress_t ,_param->_nb_inst_branch_complete); |
---|
[98] | 290 | ALLOC1_SC_SIGNAL(out_BRANCH_COMPLETE_NO_SEQUENCE ,"out_BRANCH_COMPLETE_NO_SEQUENCE ",Tcontrol_t ,_param->_nb_inst_branch_complete); |
---|
[88] | 291 | ALLOC1_SC_SIGNAL( in_BRANCH_COMPLETE_MISS_PREDICTION," in_BRANCH_COMPLETE_MISS_PREDICTION",Tcontrol_t ,_param->_nb_inst_branch_complete); |
---|
[112] | 292 | ALLOC0_SC_SIGNAL(out_UPDATE_VAL ,"out_UPDATE_VAL ",Tcontrol_t ); |
---|
| 293 | ALLOC0_SC_SIGNAL( in_UPDATE_ACK ," in_UPDATE_ACK ",Tcontrol_t ); |
---|
| 294 | ALLOC0_SC_SIGNAL(out_UPDATE_CONTEXT_ID ,"out_UPDATE_CONTEXT_ID ",Tcontext_t ); |
---|
| 295 | ALLOC0_SC_SIGNAL(out_UPDATE_FRONT_END_ID ,"out_UPDATE_FRONT_END_ID ",Tcontext_t ); |
---|
| 296 | ALLOC0_SC_SIGNAL(out_UPDATE_DEPTH ,"out_UPDATE_DEPTH ",Tdepth_t ); |
---|
| 297 | ALLOC0_SC_SIGNAL(out_UPDATE_TYPE ,"out_UPDATE_TYPE ",Tevent_type_t ); |
---|
| 298 | ALLOC0_SC_SIGNAL(out_UPDATE_IS_DELAY_SLOT ,"out_UPDATE_IS_DELAY_SLOT ",Tcontrol_t ); |
---|
| 299 | ALLOC0_SC_SIGNAL(out_UPDATE_ADDRESS ,"out_UPDATE_ADDRESS ",Taddress_t ); |
---|
| 300 | ALLOC0_SC_SIGNAL(out_UPDATE_ADDRESS_EPCR_VAL ,"out_UPDATE_ADDRESS_EPCR_VAL ",Tcontrol_t ); |
---|
| 301 | ALLOC0_SC_SIGNAL(out_UPDATE_ADDRESS_EPCR ,"out_UPDATE_ADDRESS_EPCR ",Taddress_t ); |
---|
| 302 | ALLOC0_SC_SIGNAL(out_UPDATE_ADDRESS_EEAR_VAL ,"out_UPDATE_ADDRESS_EEAR_VAL ",Tcontrol_t ); |
---|
| 303 | ALLOC0_SC_SIGNAL(out_UPDATE_ADDRESS_EEAR ,"out_UPDATE_ADDRESS_EEAR ",Tgeneral_data_t ); |
---|
[88] | 304 | |
---|
| 305 | ALLOC2_SC_SIGNAL( in_EVENT_VAL ," in_EVENT_VAL ",Tcontrol_t,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 306 | ALLOC2_SC_SIGNAL(out_EVENT_ACK ,"out_EVENT_ACK ",Tcontrol_t,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 307 | ALLOC2_SC_SIGNAL( in_EVENT_ADDRESS ," in_EVENT_ADDRESS ",Taddress_t,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 308 | ALLOC2_SC_SIGNAL( in_EVENT_ADDRESS_NEXT ," in_EVENT_ADDRESS_NEXT ",Taddress_t,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 309 | ALLOC2_SC_SIGNAL( in_EVENT_ADDRESS_NEXT_VAL," in_EVENT_ADDRESS_NEXT_VAL",Tcontrol_t,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 310 | ALLOC2_SC_SIGNAL( in_EVENT_IS_DS_TAKE ," in_EVENT_IS_DS_TAKE ",Tcontrol_t,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 311 | |
---|
| 312 | ALLOC2_SC_SIGNAL(out_NB_INST_COMMIT_ALL ,"out_NB_INST_COMMIT_ALL ",Tcounter_t ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 313 | ALLOC2_SC_SIGNAL(out_NB_INST_COMMIT_MEM ,"out_NB_INST_COMMIT_MEM ",Tcounter_t ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
[108] | 314 | ALLOC2_SC_SIGNAL( in_NB_INST_DECOD_ALL ," in_NB_INST_DECOD_ALL ",Tcounter_t ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
[88] | 315 | ALLOC2_SC_SIGNAL( in_DEPTH_MIN ," in_DEPTH_MIN ",Tdepth_t ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 316 | ALLOC2_SC_SIGNAL( in_DEPTH_MAX ," in_DEPTH_MAX ",Tdepth_t ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
[101] | 317 | ALLOC2_SC_SIGNAL( in_DEPTH_FULL ," in_DEPTH_FULL ",Tcontrol_t ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
[88] | 318 | |
---|
| 319 | ALLOC2_SC_SIGNAL( in_SPR_READ_SR_OVE ," in_SPR_READ_SR_OVE ",Tcontrol_t ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 320 | |
---|
| 321 | ALLOC2_SC_SIGNAL(out_SPR_WRITE_VAL ,"out_SPR_WRITE_VAL ",Tcontrol_t ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 322 | ALLOC2_SC_SIGNAL( in_SPR_WRITE_ACK ," in_SPR_WRITE_ACK ",Tcontrol_t ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 323 | ALLOC2_SC_SIGNAL(out_SPR_WRITE_SR_F_VAL ,"out_SPR_WRITE_SR_F_VAL ",Tcontrol_t ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 324 | ALLOC2_SC_SIGNAL(out_SPR_WRITE_SR_F ,"out_SPR_WRITE_SR_F ",Tcontrol_t ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 325 | ALLOC2_SC_SIGNAL(out_SPR_WRITE_SR_CY_VAL ,"out_SPR_WRITE_SR_CY_VAL ",Tcontrol_t ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 326 | ALLOC2_SC_SIGNAL(out_SPR_WRITE_SR_CY ,"out_SPR_WRITE_SR_CY ",Tcontrol_t ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 327 | ALLOC2_SC_SIGNAL(out_SPR_WRITE_SR_OV_VAL ,"out_SPR_WRITE_SR_OV_VAL ",Tcontrol_t ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 328 | ALLOC2_SC_SIGNAL(out_SPR_WRITE_SR_OV ,"out_SPR_WRITE_SR_OV ",Tcontrol_t ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 329 | |
---|
[128] | 330 | ALLOC0_SC_SIGNAL(out_INFO_ROB_EMPTY ,"out_INFO_ROB_EMPTY ",bool ); |
---|
| 331 | |
---|
[88] | 332 | /******************************************************** |
---|
| 333 | * Instanciation |
---|
| 334 | ********************************************************/ |
---|
| 335 | |
---|
| 336 | msg(_("<%s> : Instanciation of _Commit_unit.\n"),name.c_str()); |
---|
| 337 | |
---|
| 338 | (*(_Commit_unit->in_CLOCK)) (*(in_CLOCK)); |
---|
| 339 | (*(_Commit_unit->in_NRESET)) (*(in_NRESET)); |
---|
| 340 | |
---|
| 341 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_VAL ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 342 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_INSERT_ACK ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 343 | if (_param->_have_port_front_end_id) |
---|
| 344 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_FRONT_END_ID ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 345 | if (_param->_have_port_context_id) |
---|
| 346 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_CONTEXT_ID ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 347 | if (_param->_have_port_rob_ptr ) |
---|
| 348 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_INSERT_PACKET_ID ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 349 | //INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_RENAME_UNIT_ID ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 350 | if (_param->_have_port_depth) |
---|
| 351 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_DEPTH ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 352 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_TYPE ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 353 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_OPERATION ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 354 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_IS_DELAY_SLOT ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 355 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_NO_EXECUTE ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
[128] | 356 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_LAST_EVENT ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
[108] | 357 | #ifdef DEBUG |
---|
| 358 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_ADDRESS ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 359 | #endif |
---|
[105] | 360 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_ADDRESS_NEXT ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
[88] | 361 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_EXCEPTION ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 362 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_EXCEPTION_USE ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 363 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_STORE_QUEUE_PTR_WRITE ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 364 | if (_param->_have_port_load_queue_ptr) |
---|
| 365 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_LOAD_QUEUE_PTR_WRITE ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
[121] | 366 | #ifdef DEBUG |
---|
[88] | 367 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_READ_RA ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 368 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_NUM_REG_RA_LOG ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 369 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_NUM_REG_RA_PHY ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 370 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_READ_RB ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 371 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_NUM_REG_RB_LOG ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 372 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_NUM_REG_RB_PHY ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 373 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_READ_RC ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 374 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_NUM_REG_RC_LOG ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 375 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_NUM_REG_RC_PHY ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
[121] | 376 | #endif |
---|
[88] | 377 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_WRITE_RD ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 378 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_NUM_REG_RD_LOG ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 379 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_NUM_REG_RD_PHY_OLD ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 380 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_NUM_REG_RD_PHY_NEW ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 381 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_WRITE_RE ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 382 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_NUM_REG_RE_LOG ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 383 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_NUM_REG_RE_PHY_OLD ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 384 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_INSERT_NUM_REG_RE_PHY_NEW ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 385 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_RETIRE_VAL ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 386 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_RETIRE_ACK ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 387 | if (_param->_have_port_front_end_id) |
---|
| 388 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_RETIRE_FRONT_END_ID ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 389 | if (_param->_have_port_context_id) |
---|
| 390 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_RETIRE_CONTEXT_ID ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 391 | //INSTANCE2_SC_SIGNAL(_Commit_unit,out_RETIRE_RENAME_UNIT_ID ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 392 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_RETIRE_USE_STORE_QUEUE ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 393 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_RETIRE_USE_LOAD_QUEUE ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 394 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_RETIRE_STORE_QUEUE_PTR_WRITE ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 395 | if (_param->_have_port_load_queue_ptr) |
---|
| 396 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_RETIRE_LOAD_QUEUE_PTR_WRITE ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
[121] | 397 | // INSTANCE2_SC_SIGNAL(_Commit_unit,out_RETIRE_READ_RA ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 398 | // INSTANCE2_SC_SIGNAL(_Commit_unit,out_RETIRE_NUM_REG_RA_PHY ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 399 | // INSTANCE2_SC_SIGNAL(_Commit_unit,out_RETIRE_READ_RB ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 400 | // INSTANCE2_SC_SIGNAL(_Commit_unit,out_RETIRE_NUM_REG_RB_PHY ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 401 | // INSTANCE2_SC_SIGNAL(_Commit_unit,out_RETIRE_READ_RC ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 402 | // INSTANCE2_SC_SIGNAL(_Commit_unit,out_RETIRE_NUM_REG_RC_PHY ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
[88] | 403 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_RETIRE_WRITE_RD ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 404 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_RETIRE_NUM_REG_RD_LOG ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 405 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_RETIRE_NUM_REG_RD_PHY_OLD ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 406 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_RETIRE_NUM_REG_RD_PHY_NEW ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 407 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_RETIRE_WRITE_RE ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 408 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_RETIRE_NUM_REG_RE_LOG ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 409 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_RETIRE_NUM_REG_RE_PHY_OLD ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 410 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_RETIRE_NUM_REG_RE_PHY_NEW ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
[104] | 411 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_RETIRE_EVENT_VAL ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 412 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_RETIRE_EVENT_ACK ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 413 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_RETIRE_EVENT_STATE ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
[128] | 414 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_RETIRE_EVENT_STOP ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
[104] | 415 | INSTANCE1_SC_SIGNAL(_Commit_unit, in_COMMIT_VAL ,_param->_nb_inst_commit); |
---|
| 416 | INSTANCE1_SC_SIGNAL(_Commit_unit,out_COMMIT_ACK ,_param->_nb_inst_commit); |
---|
| 417 | INSTANCE1_SC_SIGNAL(_Commit_unit, in_COMMIT_WEN ,_param->_nb_inst_commit); |
---|
| 418 | if (_param->_have_port_rob_ptr ) |
---|
| 419 | INSTANCE1_SC_SIGNAL(_Commit_unit, in_COMMIT_PACKET_ID ,_param->_nb_inst_commit); |
---|
| 420 | //INSTANCE1_SC_SIGNAL(_Commit_unit, in_COMMIT_OPERATION ,_param->_nb_inst_commit); |
---|
| 421 | //INSTANCE1_SC_SIGNAL(_Commit_unit, in_COMMIT_TYPE ,_param->_nb_inst_commit); |
---|
| 422 | INSTANCE1_SC_SIGNAL(_Commit_unit, in_COMMIT_FLAGS ,_param->_nb_inst_commit); |
---|
| 423 | INSTANCE1_SC_SIGNAL(_Commit_unit, in_COMMIT_EXCEPTION ,_param->_nb_inst_commit); |
---|
| 424 | INSTANCE1_SC_SIGNAL(_Commit_unit, in_COMMIT_NO_SEQUENCE ,_param->_nb_inst_commit); |
---|
| 425 | INSTANCE1_SC_SIGNAL(_Commit_unit, in_COMMIT_ADDRESS ,_param->_nb_inst_commit); |
---|
| 426 | INSTANCE1_SC_SIGNAL(_Commit_unit,out_COMMIT_NUM_REG_RD ,_param->_nb_inst_commit); |
---|
[88] | 427 | INSTANCE1_SC_SIGNAL(_Commit_unit,out_REEXECUTE_VAL ,_param->_nb_inst_reexecute); |
---|
| 428 | INSTANCE1_SC_SIGNAL(_Commit_unit, in_REEXECUTE_ACK ,_param->_nb_inst_reexecute); |
---|
| 429 | if (_param->_have_port_context_id) |
---|
| 430 | INSTANCE1_SC_SIGNAL(_Commit_unit,out_REEXECUTE_CONTEXT_ID ,_param->_nb_inst_reexecute); |
---|
| 431 | if (_param->_have_port_front_end_id) |
---|
| 432 | INSTANCE1_SC_SIGNAL(_Commit_unit,out_REEXECUTE_FRONT_END_ID ,_param->_nb_inst_reexecute); |
---|
| 433 | if (_param->_have_port_rob_ptr ) |
---|
| 434 | INSTANCE1_SC_SIGNAL(_Commit_unit,out_REEXECUTE_PACKET_ID ,_param->_nb_inst_reexecute); |
---|
| 435 | INSTANCE1_SC_SIGNAL(_Commit_unit,out_REEXECUTE_OPERATION ,_param->_nb_inst_reexecute); |
---|
| 436 | INSTANCE1_SC_SIGNAL(_Commit_unit,out_REEXECUTE_TYPE ,_param->_nb_inst_reexecute); |
---|
| 437 | INSTANCE1_SC_SIGNAL(_Commit_unit,out_REEXECUTE_STORE_QUEUE_PTR_WRITE,_param->_nb_inst_reexecute); |
---|
| 438 | INSTANCE1_SC_SIGNAL(_Commit_unit,out_BRANCH_COMPLETE_VAL ,_param->_nb_inst_branch_complete); |
---|
| 439 | INSTANCE1_SC_SIGNAL(_Commit_unit, in_BRANCH_COMPLETE_ACK ,_param->_nb_inst_branch_complete); |
---|
| 440 | if (_param->_have_port_context_id) |
---|
| 441 | INSTANCE1_SC_SIGNAL(_Commit_unit,out_BRANCH_COMPLETE_CONTEXT_ID ,_param->_nb_inst_branch_complete); |
---|
| 442 | if (_param->_have_port_front_end_id) |
---|
| 443 | INSTANCE1_SC_SIGNAL(_Commit_unit,out_BRANCH_COMPLETE_FRONT_END_ID ,_param->_nb_inst_branch_complete); |
---|
| 444 | if (_param->_have_port_depth) |
---|
| 445 | INSTANCE1_SC_SIGNAL(_Commit_unit,out_BRANCH_COMPLETE_DEPTH ,_param->_nb_inst_branch_complete); |
---|
| 446 | INSTANCE1_SC_SIGNAL(_Commit_unit,out_BRANCH_COMPLETE_ADDRESS ,_param->_nb_inst_branch_complete); |
---|
[98] | 447 | INSTANCE1_SC_SIGNAL(_Commit_unit,out_BRANCH_COMPLETE_NO_SEQUENCE ,_param->_nb_inst_branch_complete); |
---|
[88] | 448 | INSTANCE1_SC_SIGNAL(_Commit_unit, in_BRANCH_COMPLETE_MISS_PREDICTION,_param->_nb_inst_branch_complete); |
---|
[112] | 449 | INSTANCE0_SC_SIGNAL(_Commit_unit,out_UPDATE_VAL ); |
---|
| 450 | INSTANCE0_SC_SIGNAL(_Commit_unit, in_UPDATE_ACK ); |
---|
[88] | 451 | if (_param->_have_port_context_id) |
---|
[112] | 452 | INSTANCE0_SC_SIGNAL(_Commit_unit,out_UPDATE_CONTEXT_ID ); |
---|
[88] | 453 | if (_param->_have_port_front_end_id) |
---|
[112] | 454 | INSTANCE0_SC_SIGNAL(_Commit_unit,out_UPDATE_FRONT_END_ID ); |
---|
[88] | 455 | if (_param->_have_port_depth) |
---|
[112] | 456 | INSTANCE0_SC_SIGNAL(_Commit_unit,out_UPDATE_DEPTH ); |
---|
| 457 | INSTANCE0_SC_SIGNAL(_Commit_unit,out_UPDATE_TYPE ); |
---|
| 458 | INSTANCE0_SC_SIGNAL(_Commit_unit,out_UPDATE_IS_DELAY_SLOT ); |
---|
| 459 | INSTANCE0_SC_SIGNAL(_Commit_unit,out_UPDATE_ADDRESS ); |
---|
| 460 | INSTANCE0_SC_SIGNAL(_Commit_unit,out_UPDATE_ADDRESS_EPCR_VAL ); |
---|
| 461 | INSTANCE0_SC_SIGNAL(_Commit_unit,out_UPDATE_ADDRESS_EPCR ); |
---|
| 462 | INSTANCE0_SC_SIGNAL(_Commit_unit,out_UPDATE_ADDRESS_EEAR_VAL ); |
---|
| 463 | INSTANCE0_SC_SIGNAL(_Commit_unit,out_UPDATE_ADDRESS_EEAR ); |
---|
[88] | 464 | |
---|
| 465 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_EVENT_VAL ,_param->_nb_front_end, _param->_nb_context[it1]); |
---|
| 466 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_EVENT_ACK ,_param->_nb_front_end, _param->_nb_context[it1]); |
---|
| 467 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_EVENT_ADDRESS ,_param->_nb_front_end, _param->_nb_context[it1]); |
---|
| 468 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_EVENT_ADDRESS_NEXT ,_param->_nb_front_end, _param->_nb_context[it1]); |
---|
| 469 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_EVENT_ADDRESS_NEXT_VAL ,_param->_nb_front_end, _param->_nb_context[it1]); |
---|
| 470 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_EVENT_IS_DS_TAKE ,_param->_nb_front_end, _param->_nb_context[it1]); |
---|
| 471 | |
---|
| 472 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_NB_INST_COMMIT_ALL ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 473 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_NB_INST_COMMIT_MEM ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
[108] | 474 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_NB_INST_DECOD_ALL ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
[101] | 475 | |
---|
| 476 | if (_param->_have_port_depth) |
---|
| 477 | { |
---|
| 478 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_DEPTH_MIN ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
[88] | 479 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_DEPTH_MAX ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
[101] | 480 | } |
---|
| 481 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_DEPTH_FULL ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
[88] | 482 | |
---|
| 483 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_SPR_READ_SR_OVE ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 484 | |
---|
| 485 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_SPR_WRITE_VAL ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 486 | INSTANCE2_SC_SIGNAL(_Commit_unit, in_SPR_WRITE_ACK ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 487 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_SPR_WRITE_SR_F_VAL ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 488 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_SPR_WRITE_SR_F ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 489 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_SPR_WRITE_SR_CY_VAL ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 490 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_SPR_WRITE_SR_CY ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 491 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_SPR_WRITE_SR_OV_VAL ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 492 | INSTANCE2_SC_SIGNAL(_Commit_unit,out_SPR_WRITE_SR_OV ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 493 | |
---|
[128] | 494 | #ifdef DEBUG_TEST |
---|
| 495 | INSTANCE0_SC_SIGNAL(_Commit_unit,out_INFO_ROB_EMPTY ); |
---|
| 496 | #endif |
---|
| 497 | |
---|
[88] | 498 | msg(_("<%s> : Start Simulation ............\n"),name.c_str()); |
---|
| 499 | |
---|
| 500 | Time * _time = new Time(); |
---|
| 501 | |
---|
| 502 | /******************************************************** |
---|
| 503 | * Simulation - Begin |
---|
| 504 | ********************************************************/ |
---|
| 505 | |
---|
| 506 | // Initialisation |
---|
| 507 | |
---|
| 508 | const uint32_t seed = 0; |
---|
| 509 | //const uint32_t seed = static_cast<uint32_t>(time(NULL)); |
---|
| 510 | |
---|
| 511 | srand(seed); |
---|
| 512 | |
---|
| 513 | SC_START(0); |
---|
| 514 | LABEL("Initialisation"); |
---|
| 515 | |
---|
| 516 | const int32_t percent_transaction_insert = 75; |
---|
| 517 | const int32_t percent_transaction_retire = 75; |
---|
| 518 | const int32_t percent_transaction_commit = 75; |
---|
| 519 | |
---|
| 520 | LABEL("Reset"); |
---|
| 521 | in_NRESET->write(0); |
---|
| 522 | SC_START(5); |
---|
| 523 | in_NRESET->write(1); |
---|
| 524 | |
---|
[128] | 525 | #ifdef SELFTEST |
---|
[88] | 526 | LABEL("Loop of Test"); |
---|
| 527 | for (uint32_t iteration=0; iteration<NB_ITERATION; iteration ++) |
---|
| 528 | { |
---|
| 529 | LABEL("Iteration %d",iteration); |
---|
| 530 | uint32_t nb_transaction = 512; |
---|
| 531 | uint32_t address_insert_min = 0xa000; |
---|
| 532 | uint32_t address_insert_max = address_insert_min + nb_transaction; |
---|
| 533 | uint32_t address_insert_next = address_insert_min; |
---|
| 534 | Taddress_t tab_address_insert [_param->_nb_rename_unit][max<uint32_t>(_param->_nb_inst_insert,_param->_nb_rename_unit)]; |
---|
| 535 | list<Tpacket_t> tab_address_commit; |
---|
| 536 | |
---|
| 537 | uint32_t nb_transaction_insert = 0; |
---|
| 538 | uint32_t nb_transaction_retire = 0; |
---|
| 539 | uint32_t nb_transaction_commit = 0; |
---|
| 540 | |
---|
| 541 | |
---|
| 542 | uint32_t packet_id_head_grp = 0; |
---|
| 543 | uint32_t packet_id_head_elt = 0; |
---|
| 544 | |
---|
| 545 | uint32_t packet_id_tail_grp = 0; |
---|
| 546 | uint32_t packet_id_tail_elt = 0; |
---|
| 547 | |
---|
| 548 | rob_entry_t rob [_param->_nb_bank*_param->_size_bank]; |
---|
| 549 | |
---|
| 550 | for (uint32_t i=0; i<_param->_nb_bank*_param->_size_bank; i++) |
---|
| 551 | rob[i].val = false; |
---|
| 552 | |
---|
| 553 | for (uint32_t i=0; i<_param->_nb_rename_unit; i++) |
---|
| 554 | for (uint32_t j=0; j<_param->_nb_inst_insert[i]; j++) |
---|
| 555 | tab_address_insert [i][j] = address_insert_next ++; |
---|
| 556 | |
---|
| 557 | // while ((address_insert_next < address_insert_max) or |
---|
| 558 | // (not tab_address_commit.empty()) or |
---|
| 559 | // (nb_transaction_retire < (address_insert_max-address_insert_min))) |
---|
| 560 | while (nb_transaction_retire < nb_transaction) |
---|
| 561 | { |
---|
| 562 | LABEL("Condition d'arrêt :"); |
---|
| 563 | LABEL(" * total of transaction : %d",nb_transaction); |
---|
| 564 | LABEL(" * nb_transaction_insert : %d",nb_transaction_insert); |
---|
| 565 | LABEL(" * nb_transaction_commit : %d",nb_transaction_commit); |
---|
| 566 | LABEL(" * nb_transaction_retire : %d",nb_transaction_retire); |
---|
| 567 | |
---|
| 568 | for (uint32_t i=0; i<_param->_nb_rename_unit; i++) |
---|
| 569 | { |
---|
| 570 | bool val = ((rand()%100)<percent_transaction_insert); |
---|
| 571 | uint32_t nb_val = (rand()%_param->_nb_inst_insert[i]); |
---|
| 572 | for (uint32_t j=0; j<_param->_nb_inst_insert[i]; j++) |
---|
| 573 | { |
---|
| 574 | Taddress_t addr = tab_address_insert [i][j]; |
---|
| 575 | in_INSERT_VAL [i][j]->write(val and (i <= nb_val) and ((nb_transaction_insert+i*_param->_nb_rename_unit+j)<nb_transaction)); |
---|
| 576 | in_INSERT_FRONT_END_ID [i][j]->write(0); |
---|
| 577 | in_INSERT_CONTEXT_ID [i][j]->write(0); |
---|
| 578 | in_INSERT_DEPTH [i][j]->write(0); |
---|
| 579 | in_INSERT_TYPE [i][j]->write(0); |
---|
| 580 | in_INSERT_OPERATION [i][j]->write(0); |
---|
| 581 | in_INSERT_IS_DELAY_SLOT [i][j]->write(0); |
---|
| 582 | in_INSERT_NO_EXECUTE [i][j]->write(0); |
---|
[128] | 583 | in_INSERT_LAST_EVENT [i][j]->write(0); |
---|
[105] | 584 | in_INSERT_ADDRESS_NEXT [i][j]->write(addr); |
---|
[88] | 585 | in_INSERT_EXCEPTION [i][j]->write(0); |
---|
| 586 | in_INSERT_EXCEPTION_USE [i][j]->write(0); |
---|
| 587 | in_INSERT_STORE_QUEUE_PTR_WRITE [i][j]->write(0); |
---|
| 588 | in_INSERT_LOAD_QUEUE_PTR_WRITE [i][j]->write(0); |
---|
| 589 | in_INSERT_READ_RA [i][j]->write(0); |
---|
| 590 | in_INSERT_NUM_REG_RA_LOG [i][j]->write(0); |
---|
| 591 | in_INSERT_NUM_REG_RA_PHY [i][j]->write(0); |
---|
| 592 | in_INSERT_READ_RB [i][j]->write(0); |
---|
| 593 | in_INSERT_NUM_REG_RB_LOG [i][j]->write(0); |
---|
| 594 | in_INSERT_NUM_REG_RB_PHY [i][j]->write(0); |
---|
| 595 | in_INSERT_READ_RC [i][j]->write(0); |
---|
| 596 | in_INSERT_NUM_REG_RC_LOG [i][j]->write(0); |
---|
| 597 | in_INSERT_NUM_REG_RC_PHY [i][j]->write(0); |
---|
| 598 | in_INSERT_WRITE_RD [i][j]->write(0); |
---|
| 599 | in_INSERT_NUM_REG_RD_LOG [i][j]->write(0); |
---|
| 600 | in_INSERT_NUM_REG_RD_PHY_OLD [i][j]->write(0); |
---|
| 601 | in_INSERT_NUM_REG_RD_PHY_NEW [i][j]->write(0); |
---|
| 602 | in_INSERT_WRITE_RE [i][j]->write(0); |
---|
| 603 | in_INSERT_NUM_REG_RE_LOG [i][j]->write(0); |
---|
| 604 | in_INSERT_NUM_REG_RE_PHY_OLD [i][j]->write(0); |
---|
| 605 | in_INSERT_NUM_REG_RE_PHY_NEW [i][j]->write(0); |
---|
| 606 | } |
---|
| 607 | } |
---|
| 608 | |
---|
| 609 | for (uint32_t i=0; i<_param->_nb_rename_unit; i++) |
---|
| 610 | { |
---|
| 611 | bool ack = ((rand()%100)<percent_transaction_retire); |
---|
| 612 | uint32_t nb_ack = rand()%_param->_nb_inst_retire[i]; |
---|
| 613 | for (uint32_t j=0; j<_param->_nb_inst_retire[i]; j++) |
---|
| 614 | { |
---|
| 615 | in_RETIRE_ACK [i][j]->write(ack and (i <= nb_ack)); |
---|
| 616 | |
---|
| 617 | } |
---|
| 618 | } |
---|
| 619 | |
---|
| 620 | { |
---|
| 621 | list<Tpacket_t>::iterator it=tab_address_commit.begin(); |
---|
| 622 | |
---|
| 623 | for (uint32_t j=0; j<_param->_nb_inst_commit; j++) |
---|
| 624 | { |
---|
| 625 | Tcontrol_t val = ((rand()%100)<percent_transaction_commit) and (it!=tab_address_commit.end()); |
---|
| 626 | |
---|
| 627 | in_COMMIT_VAL [j]->write(val); |
---|
| 628 | |
---|
| 629 | if (val) |
---|
| 630 | { |
---|
| 631 | Tpacket_t packet = *(it); |
---|
| 632 | |
---|
| 633 | in_COMMIT_WEN [j]->write(1); |
---|
| 634 | in_COMMIT_PACKET_ID [j]->write(packet); |
---|
| 635 | //in_COMMIT_OPERATION [j]->write(0); |
---|
| 636 | //in_COMMIT_TYPE [j]->write(0); |
---|
| 637 | in_COMMIT_FLAGS [j]->write(0); |
---|
| 638 | in_COMMIT_EXCEPTION [j]->write(0); |
---|
| 639 | in_COMMIT_NO_SEQUENCE [j]->write(0); |
---|
| 640 | in_COMMIT_ADDRESS [j]->write(0); |
---|
| 641 | } |
---|
| 642 | |
---|
| 643 | if (it != tab_address_commit.end()) |
---|
| 644 | it++; |
---|
| 645 | } |
---|
| 646 | } |
---|
| 647 | |
---|
| 648 | SC_START(0); |
---|
| 649 | |
---|
| 650 | for (uint32_t i=0; i<_param->_nb_rename_unit; i++) |
---|
| 651 | for (uint32_t j=0; j<_param->_nb_inst_insert[i]; j++) |
---|
| 652 | { |
---|
| 653 | LABEL("INSERT [%d][%d] - %d %d",i,j,in_INSERT_VAL [i][j]->read(),out_INSERT_ACK [i][j]->read()); |
---|
| 654 | if ( in_INSERT_VAL [i][j]->read() and |
---|
| 655 | out_INSERT_ACK [i][j]->read()) |
---|
| 656 | { |
---|
| 657 | LABEL("INSERT [%d][%d] Transaction Accepted",i,j); |
---|
| 658 | LABEL(" * packet_id_tail_grp (old) : %d",packet_id_tail_grp); |
---|
| 659 | LABEL(" * packet_id_tail_elt (old) : %d",packet_id_tail_elt); |
---|
| 660 | |
---|
| 661 | Tpacket_t packet = (_param->_have_port_rob_ptr )?out_INSERT_PACKET_ID [i][j]->read():0; |
---|
| 662 | |
---|
| 663 | TEST(Tpacket_t, packet, (packet_id_tail_grp << _param->_shift_num_bank) + packet_id_tail_elt); |
---|
| 664 | |
---|
| 665 | TEST(bool, rob[packet].val, false); |
---|
| 666 | |
---|
| 667 | rob[packet].val = true; |
---|
| 668 | rob[packet].address = tab_address_insert [i][j]; |
---|
| 669 | |
---|
| 670 | tab_address_commit.push_back(packet); |
---|
| 671 | tab_address_insert [i][j] = address_insert_next ++; |
---|
| 672 | |
---|
| 673 | packet_id_tail_grp ++; |
---|
| 674 | |
---|
| 675 | if (packet_id_tail_grp >= _param->_nb_bank) |
---|
| 676 | { |
---|
| 677 | packet_id_tail_grp = 0; |
---|
| 678 | packet_id_tail_elt = (packet_id_tail_elt+1)%_param->_size_bank; |
---|
| 679 | } |
---|
| 680 | |
---|
| 681 | LABEL(" * packet_id_tail_grp (new) : %d",packet_id_tail_grp); |
---|
| 682 | LABEL(" * packet_id_tail_elt (new) : %d",packet_id_tail_elt); |
---|
| 683 | |
---|
| 684 | nb_transaction_insert ++; |
---|
| 685 | } |
---|
| 686 | } |
---|
| 687 | |
---|
| 688 | for (uint32_t i=0; i<_param->_nb_rename_unit; i++) |
---|
| 689 | for (uint32_t j=0; j<_param->_nb_inst_retire[i]; j++) |
---|
| 690 | { |
---|
| 691 | LABEL("RETIRE [%d][%d] - %d %d",i,j,out_RETIRE_VAL [i][j]->read(),in_RETIRE_ACK [i][j]->read()); |
---|
| 692 | if (out_RETIRE_VAL [i][j]->read() and |
---|
| 693 | in_RETIRE_ACK [i][j]->read()) |
---|
| 694 | { |
---|
| 695 | LABEL("RETIRE [%d][%d] Transaction Accepted",i,j); |
---|
| 696 | LABEL(" * packet_id_head_grp (old) : %d",packet_id_head_grp); |
---|
| 697 | LABEL(" * packet_id_head_elt (old) : %d",packet_id_head_elt); |
---|
| 698 | |
---|
| 699 | Tpacket_t packet = ((packet_id_head_grp << _param->_shift_num_bank) + packet_id_head_elt); |
---|
| 700 | |
---|
| 701 | TEST(bool, rob[packet].val, true); |
---|
| 702 | |
---|
| 703 | rob[packet].val = false; |
---|
| 704 | |
---|
| 705 | packet_id_head_grp ++; |
---|
| 706 | |
---|
| 707 | if (packet_id_head_grp >= _param->_nb_bank) |
---|
| 708 | { |
---|
| 709 | packet_id_head_grp = 0; |
---|
| 710 | packet_id_head_elt = (packet_id_head_elt+1)%_param->_size_bank; |
---|
| 711 | } |
---|
| 712 | |
---|
| 713 | LABEL(" * packet_id_head_grp (new) : %d",packet_id_head_grp); |
---|
| 714 | LABEL(" * packet_id_head_elt (new) : %d",packet_id_head_elt); |
---|
| 715 | |
---|
| 716 | nb_transaction_retire ++; |
---|
| 717 | } |
---|
| 718 | } |
---|
| 719 | |
---|
| 720 | LABEL("Dump tab_address_commit (before)"); |
---|
| 721 | for (list<Tpacket_t>::iterator it=tab_address_commit.begin(); |
---|
| 722 | it!=tab_address_commit.end(); |
---|
| 723 | ++it) |
---|
| 724 | LABEL(" * %d",*it); |
---|
| 725 | |
---|
| 726 | { |
---|
| 727 | list<Tpacket_t>::iterator it=tab_address_commit.begin(); |
---|
| 728 | |
---|
| 729 | for (uint32_t j=0; j<_param->_nb_inst_commit; j++) |
---|
| 730 | { |
---|
| 731 | if ( in_COMMIT_VAL [j]->read() and |
---|
| 732 | out_COMMIT_ACK [j]->read()) |
---|
| 733 | { |
---|
| 734 | LABEL("COMMIT [%d] Transaction Accepted",j); |
---|
| 735 | |
---|
| 736 | it = tab_address_commit.erase(it); |
---|
| 737 | |
---|
| 738 | nb_transaction_commit ++; |
---|
| 739 | } |
---|
| 740 | else |
---|
| 741 | if (it != tab_address_commit.end()) |
---|
| 742 | it++; |
---|
| 743 | } |
---|
| 744 | } |
---|
| 745 | |
---|
| 746 | LABEL("Dump tab_address_commit (after )"); |
---|
| 747 | for (list<Tpacket_t>::iterator it=tab_address_commit.begin(); |
---|
| 748 | it!=tab_address_commit.end(); |
---|
| 749 | ++it) |
---|
| 750 | LABEL(" * %d",*it); |
---|
| 751 | |
---|
| 752 | |
---|
| 753 | SC_START(1); |
---|
| 754 | } |
---|
| 755 | |
---|
| 756 | } |
---|
[128] | 757 | #else |
---|
| 758 | SC_START(10); |
---|
| 759 | #endif |
---|
[88] | 760 | |
---|
| 761 | /******************************************************** |
---|
| 762 | * Simulation - End |
---|
| 763 | ********************************************************/ |
---|
| 764 | |
---|
| 765 | TEST_OK ("End of Simulation"); |
---|
| 766 | delete _time; |
---|
| 767 | |
---|
| 768 | msg(_("<%s> : ............ Stop Simulation\n"),name.c_str()); |
---|
| 769 | |
---|
| 770 | delete in_CLOCK; |
---|
| 771 | delete in_NRESET; |
---|
| 772 | |
---|
| 773 | DELETE2_SC_SIGNAL( in_INSERT_VAL ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 774 | DELETE2_SC_SIGNAL(out_INSERT_ACK ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 775 | DELETE2_SC_SIGNAL( in_INSERT_FRONT_END_ID ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 776 | DELETE2_SC_SIGNAL( in_INSERT_CONTEXT_ID ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 777 | DELETE2_SC_SIGNAL(out_INSERT_PACKET_ID ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 778 | //DELETE2_SC_SIGNAL( in_INSERT_RENAME_UNIT_ID ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 779 | DELETE2_SC_SIGNAL( in_INSERT_DEPTH ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 780 | DELETE2_SC_SIGNAL( in_INSERT_TYPE ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 781 | DELETE2_SC_SIGNAL( in_INSERT_OPERATION ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 782 | DELETE2_SC_SIGNAL( in_INSERT_NO_EXECUTE ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
[128] | 783 | DELETE2_SC_SIGNAL( in_INSERT_LAST_EVENT ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
[88] | 784 | DELETE2_SC_SIGNAL( in_INSERT_IS_DELAY_SLOT ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
[108] | 785 | DELETE2_SC_SIGNAL( in_INSERT_ADDRESS ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
[105] | 786 | DELETE2_SC_SIGNAL( in_INSERT_ADDRESS_NEXT ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
[88] | 787 | DELETE2_SC_SIGNAL( in_INSERT_EXCEPTION ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 788 | DELETE2_SC_SIGNAL( in_INSERT_EXCEPTION_USE ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 789 | DELETE2_SC_SIGNAL( in_INSERT_STORE_QUEUE_PTR_WRITE ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 790 | DELETE2_SC_SIGNAL( in_INSERT_LOAD_QUEUE_PTR_WRITE ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 791 | DELETE2_SC_SIGNAL( in_INSERT_READ_RA ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 792 | DELETE2_SC_SIGNAL( in_INSERT_NUM_REG_RA_LOG ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 793 | DELETE2_SC_SIGNAL( in_INSERT_NUM_REG_RA_PHY ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 794 | DELETE2_SC_SIGNAL( in_INSERT_READ_RB ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 795 | DELETE2_SC_SIGNAL( in_INSERT_NUM_REG_RB_LOG ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 796 | DELETE2_SC_SIGNAL( in_INSERT_NUM_REG_RB_PHY ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 797 | DELETE2_SC_SIGNAL( in_INSERT_READ_RC ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 798 | DELETE2_SC_SIGNAL( in_INSERT_NUM_REG_RC_LOG ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 799 | DELETE2_SC_SIGNAL( in_INSERT_NUM_REG_RC_PHY ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 800 | DELETE2_SC_SIGNAL( in_INSERT_WRITE_RD ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 801 | DELETE2_SC_SIGNAL( in_INSERT_NUM_REG_RD_LOG ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 802 | DELETE2_SC_SIGNAL( in_INSERT_NUM_REG_RD_PHY_OLD ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 803 | DELETE2_SC_SIGNAL( in_INSERT_NUM_REG_RD_PHY_NEW ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 804 | DELETE2_SC_SIGNAL( in_INSERT_WRITE_RE ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 805 | DELETE2_SC_SIGNAL( in_INSERT_NUM_REG_RE_LOG ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 806 | DELETE2_SC_SIGNAL( in_INSERT_NUM_REG_RE_PHY_OLD ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 807 | DELETE2_SC_SIGNAL( in_INSERT_NUM_REG_RE_PHY_NEW ,_param->_nb_rename_unit,_param->_nb_inst_insert[it1]); |
---|
| 808 | DELETE2_SC_SIGNAL(out_RETIRE_VAL ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 809 | DELETE2_SC_SIGNAL( in_RETIRE_ACK ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 810 | DELETE2_SC_SIGNAL(out_RETIRE_FRONT_END_ID ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 811 | DELETE2_SC_SIGNAL(out_RETIRE_CONTEXT_ID ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 812 | //DELETE2_SC_SIGNAL(out_RETIRE_RENAME_UNIT_ID ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 813 | DELETE2_SC_SIGNAL(out_RETIRE_USE_STORE_QUEUE ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 814 | DELETE2_SC_SIGNAL(out_RETIRE_USE_LOAD_QUEUE ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 815 | DELETE2_SC_SIGNAL(out_RETIRE_STORE_QUEUE_PTR_WRITE ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 816 | DELETE2_SC_SIGNAL(out_RETIRE_LOAD_QUEUE_PTR_WRITE ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
[128] | 817 | //DELETE2_SC_SIGNAL(out_RETIRE_READ_RA ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 818 | //DELETE2_SC_SIGNAL(out_RETIRE_NUM_REG_RA_PHY ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 819 | //DELETE2_SC_SIGNAL(out_RETIRE_READ_RB ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 820 | //DELETE2_SC_SIGNAL(out_RETIRE_NUM_REG_RB_PHY ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 821 | //DELETE2_SC_SIGNAL(out_RETIRE_READ_RC ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 822 | //DELETE2_SC_SIGNAL(out_RETIRE_NUM_REG_RC_PHY ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
[88] | 823 | DELETE2_SC_SIGNAL(out_RETIRE_WRITE_RD ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 824 | DELETE2_SC_SIGNAL(out_RETIRE_NUM_REG_RD_LOG ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 825 | DELETE2_SC_SIGNAL(out_RETIRE_NUM_REG_RD_PHY_OLD ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 826 | DELETE2_SC_SIGNAL(out_RETIRE_NUM_REG_RD_PHY_NEW ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 827 | DELETE2_SC_SIGNAL(out_RETIRE_WRITE_RE ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 828 | DELETE2_SC_SIGNAL(out_RETIRE_NUM_REG_RE_LOG ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 829 | DELETE2_SC_SIGNAL(out_RETIRE_NUM_REG_RE_PHY_OLD ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
| 830 | DELETE2_SC_SIGNAL(out_RETIRE_NUM_REG_RE_PHY_NEW ,_param->_nb_rename_unit,_param->_nb_inst_retire[it1]); |
---|
[104] | 831 | DELETE2_SC_SIGNAL(out_RETIRE_EVENT_VAL ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 832 | DELETE2_SC_SIGNAL( in_RETIRE_EVENT_ACK ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 833 | DELETE2_SC_SIGNAL(out_RETIRE_EVENT_STATE ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
[128] | 834 | DELETE2_SC_SIGNAL(out_RETIRE_EVENT_STOP ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
[88] | 835 | DELETE1_SC_SIGNAL( in_COMMIT_VAL ,_param->_nb_inst_commit); |
---|
| 836 | DELETE1_SC_SIGNAL(out_COMMIT_ACK ,_param->_nb_inst_commit); |
---|
| 837 | DELETE1_SC_SIGNAL( in_COMMIT_WEN ,_param->_nb_inst_commit); |
---|
| 838 | DELETE1_SC_SIGNAL( in_COMMIT_PACKET_ID ,_param->_nb_inst_commit); |
---|
| 839 | //DELETE1_SC_SIGNAL( in_COMMIT_OPERATION ,_param->_nb_inst_commit); |
---|
| 840 | //DELETE1_SC_SIGNAL( in_COMMIT_TYPE ,_param->_nb_inst_commit); |
---|
| 841 | DELETE1_SC_SIGNAL( in_COMMIT_FLAGS ,_param->_nb_inst_commit); |
---|
| 842 | DELETE1_SC_SIGNAL( in_COMMIT_EXCEPTION ,_param->_nb_inst_commit); |
---|
| 843 | DELETE1_SC_SIGNAL( in_COMMIT_NO_SEQUENCE ,_param->_nb_inst_commit); |
---|
| 844 | DELETE1_SC_SIGNAL( in_COMMIT_ADDRESS ,_param->_nb_inst_commit); |
---|
| 845 | DELETE1_SC_SIGNAL(out_COMMIT_NUM_REG_RD ,_param->_nb_inst_commit); |
---|
| 846 | DELETE1_SC_SIGNAL(out_REEXECUTE_VAL ,_param->_nb_inst_reexecute); |
---|
| 847 | DELETE1_SC_SIGNAL( in_REEXECUTE_ACK ,_param->_nb_inst_reexecute); |
---|
| 848 | DELETE1_SC_SIGNAL(out_REEXECUTE_CONTEXT_ID ,_param->_nb_inst_reexecute); |
---|
| 849 | DELETE1_SC_SIGNAL(out_REEXECUTE_FRONT_END_ID ,_param->_nb_inst_reexecute); |
---|
| 850 | DELETE1_SC_SIGNAL(out_REEXECUTE_PACKET_ID ,_param->_nb_inst_reexecute); |
---|
| 851 | DELETE1_SC_SIGNAL(out_REEXECUTE_OPERATION ,_param->_nb_inst_reexecute); |
---|
| 852 | DELETE1_SC_SIGNAL(out_REEXECUTE_TYPE ,_param->_nb_inst_reexecute); |
---|
| 853 | DELETE1_SC_SIGNAL(out_REEXECUTE_STORE_QUEUE_PTR_WRITE,_param->_nb_inst_reexecute); |
---|
| 854 | DELETE1_SC_SIGNAL(out_BRANCH_COMPLETE_VAL ,_param->_nb_inst_branch_complete); |
---|
| 855 | DELETE1_SC_SIGNAL( in_BRANCH_COMPLETE_ACK ,_param->_nb_inst_branch_complete); |
---|
| 856 | DELETE1_SC_SIGNAL(out_BRANCH_COMPLETE_CONTEXT_ID ,_param->_nb_inst_branch_complete); |
---|
| 857 | DELETE1_SC_SIGNAL(out_BRANCH_COMPLETE_FRONT_END_ID ,_param->_nb_inst_branch_complete); |
---|
| 858 | DELETE1_SC_SIGNAL(out_BRANCH_COMPLETE_DEPTH ,_param->_nb_inst_branch_complete); |
---|
| 859 | DELETE1_SC_SIGNAL(out_BRANCH_COMPLETE_ADDRESS ,_param->_nb_inst_branch_complete); |
---|
[98] | 860 | DELETE1_SC_SIGNAL(out_BRANCH_COMPLETE_NO_SEQUENCE ,_param->_nb_inst_branch_complete); |
---|
[88] | 861 | DELETE1_SC_SIGNAL( in_BRANCH_COMPLETE_MISS_PREDICTION,_param->_nb_inst_branch_complete); |
---|
[112] | 862 | DELETE0_SC_SIGNAL(out_UPDATE_VAL ); |
---|
| 863 | DELETE0_SC_SIGNAL( in_UPDATE_ACK ); |
---|
| 864 | DELETE0_SC_SIGNAL(out_UPDATE_CONTEXT_ID ); |
---|
| 865 | DELETE0_SC_SIGNAL(out_UPDATE_FRONT_END_ID ); |
---|
| 866 | DELETE0_SC_SIGNAL(out_UPDATE_DEPTH ); |
---|
| 867 | DELETE0_SC_SIGNAL(out_UPDATE_TYPE ); |
---|
| 868 | DELETE0_SC_SIGNAL(out_UPDATE_IS_DELAY_SLOT ); |
---|
| 869 | DELETE0_SC_SIGNAL(out_UPDATE_ADDRESS ); |
---|
| 870 | DELETE0_SC_SIGNAL(out_UPDATE_ADDRESS_EPCR_VAL ); |
---|
| 871 | DELETE0_SC_SIGNAL(out_UPDATE_ADDRESS_EPCR ); |
---|
| 872 | DELETE0_SC_SIGNAL(out_UPDATE_ADDRESS_EEAR_VAL ); |
---|
| 873 | DELETE0_SC_SIGNAL(out_UPDATE_ADDRESS_EEAR ); |
---|
[88] | 874 | |
---|
| 875 | DELETE2_SC_SIGNAL( in_EVENT_VAL ,_param->_nb_front_end, _param->_nb_context[it1]); |
---|
| 876 | DELETE2_SC_SIGNAL(out_EVENT_ACK ,_param->_nb_front_end, _param->_nb_context[it1]); |
---|
| 877 | DELETE2_SC_SIGNAL( in_EVENT_ADDRESS ,_param->_nb_front_end, _param->_nb_context[it1]); |
---|
| 878 | DELETE2_SC_SIGNAL( in_EVENT_ADDRESS_NEXT ,_param->_nb_front_end, _param->_nb_context[it1]); |
---|
| 879 | DELETE2_SC_SIGNAL( in_EVENT_ADDRESS_NEXT_VAL ,_param->_nb_front_end, _param->_nb_context[it1]); |
---|
| 880 | DELETE2_SC_SIGNAL( in_EVENT_IS_DS_TAKE ,_param->_nb_front_end, _param->_nb_context[it1]); |
---|
| 881 | |
---|
| 882 | DELETE2_SC_SIGNAL(out_NB_INST_COMMIT_ALL ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 883 | DELETE2_SC_SIGNAL(out_NB_INST_COMMIT_MEM ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
[108] | 884 | DELETE2_SC_SIGNAL( in_NB_INST_DECOD_ALL ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
[88] | 885 | DELETE2_SC_SIGNAL( in_DEPTH_MIN ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 886 | DELETE2_SC_SIGNAL( in_DEPTH_MAX ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
[101] | 887 | DELETE2_SC_SIGNAL( in_DEPTH_FULL ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
[88] | 888 | |
---|
| 889 | DELETE2_SC_SIGNAL( in_SPR_READ_SR_OVE ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 890 | |
---|
| 891 | DELETE2_SC_SIGNAL(out_SPR_WRITE_VAL ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 892 | DELETE2_SC_SIGNAL( in_SPR_WRITE_ACK ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 893 | DELETE2_SC_SIGNAL(out_SPR_WRITE_SR_F_VAL ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 894 | DELETE2_SC_SIGNAL(out_SPR_WRITE_SR_F ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 895 | DELETE2_SC_SIGNAL(out_SPR_WRITE_SR_CY_VAL ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 896 | DELETE2_SC_SIGNAL(out_SPR_WRITE_SR_CY ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 897 | DELETE2_SC_SIGNAL(out_SPR_WRITE_SR_OV_VAL ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 898 | DELETE2_SC_SIGNAL(out_SPR_WRITE_SR_OV ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
[128] | 899 | |
---|
| 900 | DELETE0_SC_SIGNAL(out_INFO_ROB_EMPTY ); |
---|
[88] | 901 | } |
---|
| 902 | #endif |
---|
| 903 | |
---|
| 904 | delete _Commit_unit; |
---|
[110] | 905 | |
---|
[88] | 906 | #ifdef STATISTICS |
---|
| 907 | delete _parameters_statistics; |
---|
| 908 | #endif |
---|
| 909 | } |
---|