[78] | 1 | /* |
---|
| 2 | * $Id: test.cpp 104 2009-01-21 21:53:13Z rosiere $ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | * Test |
---|
| 7 | */ |
---|
| 8 | |
---|
[82] | 9 | #define NB_ITERATION 64 |
---|
| 10 | #define CYCLE_MAX (1024*NB_ITERATION) |
---|
| 11 | |
---|
[78] | 12 | #include "Behavioural/Core/Multi_OOO_Engine/OOO_Engine/Rename_unit/Register_translation_unit/Register_Address_Translation_unit/SelfTest/include/test.h" |
---|
| 13 | #include "Common/include/Test.h" |
---|
| 14 | #include "Common/include/Max.h" |
---|
| 15 | #include "Behavioural/include/Allocation.h" |
---|
| 16 | |
---|
| 17 | void test (string name, |
---|
| 18 | morpheo::behavioural::core::multi_ooo_engine::ooo_engine::rename_unit::register_translation_unit::register_address_translation_unit::Parameters * _param) |
---|
| 19 | { |
---|
| 20 | msg(_("<%s> : Simulation SystemC.\n"),name.c_str()); |
---|
| 21 | |
---|
| 22 | #ifdef STATISTICS |
---|
| 23 | morpheo::behavioural::Parameters_Statistics * _parameters_statistics = new morpheo::behavioural::Parameters_Statistics (5,50); |
---|
| 24 | #endif |
---|
| 25 | |
---|
[88] | 26 | Tusage_t _usage = USE_ALL; |
---|
| 27 | |
---|
| 28 | // _usage = usage_unset(_usage,USE_SYSTEMC ); |
---|
| 29 | // _usage = usage_unset(_usage,USE_VHDL ); |
---|
| 30 | // _usage = usage_unset(_usage,USE_VHDL_TESTBENCH ); |
---|
| 31 | // _usage = usage_unset(_usage,USE_VHDL_TESTBENCH_ASSERT); |
---|
| 32 | // _usage = usage_unset(_usage,USE_POSITION ); |
---|
| 33 | // _usage = usage_unset(_usage,USE_STATISTICS ); |
---|
| 34 | // _usage = usage_unset(_usage,USE_INFORMATION ); |
---|
| 35 | |
---|
[82] | 36 | Register_Address_Translation_unit * _Register_Address_Translation_unit = new Register_Address_Translation_unit |
---|
| 37 | (name.c_str(), |
---|
[78] | 38 | #ifdef STATISTICS |
---|
[82] | 39 | _parameters_statistics, |
---|
[78] | 40 | #endif |
---|
[82] | 41 | _param, |
---|
[88] | 42 | _usage); |
---|
[78] | 43 | |
---|
| 44 | #ifdef SYSTEMC |
---|
| 45 | /********************************************************************* |
---|
| 46 | * Déclarations des signaux |
---|
| 47 | *********************************************************************/ |
---|
| 48 | string rename; |
---|
| 49 | |
---|
| 50 | sc_clock * in_CLOCK = new sc_clock ("clock", 1.0, 0.5); |
---|
| 51 | sc_signal<Tcontrol_t> * in_NRESET = new sc_signal<Tcontrol_t> ("NRESET"); |
---|
| 52 | |
---|
| 53 | ALLOC1_SC_SIGNAL( in_RENAME_VAL ," in_RENAME_VAL ",Tcontrol_t ,_param->_nb_inst_insert); |
---|
| 54 | ALLOC1_SC_SIGNAL(out_RENAME_ACK ,"out_RENAME_ACK ",Tcontrol_t ,_param->_nb_inst_insert); |
---|
| 55 | ALLOC1_SC_SIGNAL( in_RENAME_FRONT_END_ID ," in_RENAME_FRONT_END_ID ",Tcontext_t ,_param->_nb_inst_insert); |
---|
| 56 | ALLOC1_SC_SIGNAL( in_RENAME_CONTEXT_ID ," in_RENAME_CONTEXT_ID ",Tcontext_t ,_param->_nb_inst_insert); |
---|
| 57 | ALLOC1_SC_SIGNAL( in_RENAME_NUM_REG_RA_LOG ," in_RENAME_NUM_REG_RA_LOG ",Tgeneral_address_t,_param->_nb_inst_insert); |
---|
| 58 | ALLOC1_SC_SIGNAL( in_RENAME_NUM_REG_RB_LOG ," in_RENAME_NUM_REG_RB_LOG ",Tgeneral_address_t,_param->_nb_inst_insert); |
---|
| 59 | ALLOC1_SC_SIGNAL( in_RENAME_NUM_REG_RC_LOG ," in_RENAME_NUM_REG_RC_LOG ",Tspecial_address_t,_param->_nb_inst_insert); |
---|
| 60 | ALLOC1_SC_SIGNAL( in_RENAME_NUM_REG_RD_LOG ," in_RENAME_NUM_REG_RD_LOG ",Tgeneral_address_t,_param->_nb_inst_insert); |
---|
| 61 | ALLOC1_SC_SIGNAL( in_RENAME_NUM_REG_RE_LOG ," in_RENAME_NUM_REG_RE_LOG ",Tspecial_address_t,_param->_nb_inst_insert); |
---|
| 62 | ALLOC1_SC_SIGNAL(out_RENAME_NUM_REG_RA_PHY ,"out_RENAME_NUM_REG_RA_PHY ",Tgeneral_address_t,_param->_nb_inst_insert); |
---|
| 63 | ALLOC1_SC_SIGNAL(out_RENAME_NUM_REG_RB_PHY ,"out_RENAME_NUM_REG_RB_PHY ",Tgeneral_address_t,_param->_nb_inst_insert); |
---|
| 64 | ALLOC1_SC_SIGNAL(out_RENAME_NUM_REG_RC_PHY ,"out_RENAME_NUM_REG_RC_PHY ",Tspecial_address_t,_param->_nb_inst_insert); |
---|
| 65 | ALLOC1_SC_SIGNAL(out_RENAME_NUM_REG_RD_PHY_OLD,"out_RENAME_NUM_REG_RD_PHY_OLD",Tgeneral_address_t,_param->_nb_inst_insert); |
---|
| 66 | ALLOC1_SC_SIGNAL(out_RENAME_NUM_REG_RE_PHY_OLD,"out_RENAME_NUM_REG_RE_PHY_OLD",Tspecial_address_t,_param->_nb_inst_insert); |
---|
| 67 | |
---|
| 68 | ALLOC1_SC_SIGNAL( in_INSERT_VAL ," in_INSERT_VAL ",Tcontrol_t ,_param->_nb_inst_insert); |
---|
| 69 | ALLOC1_SC_SIGNAL(out_INSERT_ACK ,"out_INSERT_ACK ",Tcontrol_t ,_param->_nb_inst_insert); |
---|
| 70 | //ALLOC1_SC_SIGNAL( in_INSERT_FRONT_END_ID ," in_INSERT_FRONT_END_ID ",Tcontext_t ,_param->_nb_inst_insert); |
---|
| 71 | //ALLOC1_SC_SIGNAL( in_INSERT_CONTEXT_ID ," in_INSERT_CONTEXT_ID ",Tcontext_t ,_param->_nb_inst_insert); |
---|
| 72 | ALLOC1_SC_SIGNAL( in_INSERT_WRITE_RD ," in_INSERT_WRITE_RD ",Tcontrol_t ,_param->_nb_inst_insert); |
---|
| 73 | ALLOC1_SC_SIGNAL( in_INSERT_WRITE_RE ," in_INSERT_WRITE_RE ",Tcontrol_t ,_param->_nb_inst_insert); |
---|
| 74 | ALLOC1_SC_SIGNAL( in_INSERT_NUM_REG_RD_LOG ," in_INSERT_NUM_REG_RD_LOG ",Tgeneral_address_t,_param->_nb_inst_insert); |
---|
| 75 | ALLOC1_SC_SIGNAL( in_INSERT_NUM_REG_RE_LOG ," in_INSERT_NUM_REG_RE_LOG ",Tspecial_address_t,_param->_nb_inst_insert); |
---|
| 76 | ALLOC1_SC_SIGNAL( in_INSERT_NUM_REG_RD_PHY ," in_INSERT_NUM_REG_RD_PHY ",Tgeneral_address_t,_param->_nb_inst_insert); |
---|
| 77 | ALLOC1_SC_SIGNAL( in_INSERT_NUM_REG_RE_PHY ," in_INSERT_NUM_REG_RE_PHY ",Tspecial_address_t,_param->_nb_inst_insert); |
---|
| 78 | |
---|
| 79 | ALLOC1_SC_SIGNAL( in_RETIRE_VAL ," in_RETIRE_VAL ",Tcontrol_t ,_param->_nb_inst_retire); |
---|
| 80 | ALLOC1_SC_SIGNAL(out_RETIRE_ACK ,"out_RETIRE_ACK ",Tcontrol_t ,_param->_nb_inst_retire); |
---|
| 81 | ALLOC1_SC_SIGNAL( in_RETIRE_FRONT_END_ID ," in_RETIRE_FRONT_END_ID ",Tcontext_t ,_param->_nb_inst_retire); |
---|
| 82 | ALLOC1_SC_SIGNAL( in_RETIRE_CONTEXT_ID ," in_RETIRE_CONTEXT_ID ",Tcontext_t ,_param->_nb_inst_retire); |
---|
| 83 | ALLOC1_SC_SIGNAL( in_RETIRE_WRITE_RD ," in_RETIRE_WRITE_RD ",Tcontrol_t ,_param->_nb_inst_retire); |
---|
| 84 | ALLOC1_SC_SIGNAL( in_RETIRE_WRITE_RE ," in_RETIRE_WRITE_RE ",Tcontrol_t ,_param->_nb_inst_retire); |
---|
| 85 | ALLOC1_SC_SIGNAL( in_RETIRE_NUM_REG_RD_LOG ," in_RETIRE_NUM_REG_RD_LOG ",Tgeneral_address_t,_param->_nb_inst_retire); |
---|
| 86 | ALLOC1_SC_SIGNAL( in_RETIRE_NUM_REG_RE_LOG ," in_RETIRE_NUM_REG_RE_LOG ",Tspecial_address_t,_param->_nb_inst_retire); |
---|
| 87 | ALLOC1_SC_SIGNAL( in_RETIRE_NUM_REG_RD_PHY_OLD," in_RETIRE_NUM_REG_RD_PHY_OLD",Tgeneral_address_t,_param->_nb_inst_retire); |
---|
| 88 | ALLOC1_SC_SIGNAL( in_RETIRE_NUM_REG_RE_PHY_OLD," in_RETIRE_NUM_REG_RE_PHY_OLD",Tspecial_address_t,_param->_nb_inst_retire); |
---|
[88] | 89 | ALLOC1_SC_SIGNAL(out_RETIRE_RESTORE_RD_PHY_OLD,"out_RETIRE_RESTORE_RD_PHY_OLD",Tcontrol_t ,_param->_nb_inst_retire); |
---|
| 90 | ALLOC1_SC_SIGNAL(out_RETIRE_RESTORE_RE_PHY_OLD,"out_RETIRE_RESTORE_RE_PHY_OLD",Tcontrol_t ,_param->_nb_inst_retire); |
---|
[104] | 91 | |
---|
| 92 | ALLOC2_SC_SIGNAL( in_RETIRE_EVENT_VAL ," in_RETIRE_EVENT_VAL ",Tcontrol_t ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 93 | ALLOC2_SC_SIGNAL(out_RETIRE_EVENT_ACK ,"out_RETIRE_EVENT_ACK ",Tcontrol_t ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
| 94 | ALLOC2_SC_SIGNAL( in_RETIRE_EVENT_STATE ," in_RETIRE_EVENT_STATE ",Tevent_state_t ,_param->_nb_front_end,_param->_nb_context[it1]); |
---|
[78] | 95 | |
---|
| 96 | /******************************************************** |
---|
| 97 | * Instanciation |
---|
| 98 | ********************************************************/ |
---|
| 99 | |
---|
| 100 | msg(_("<%s> : Instanciation of _Register_Address_Translation_unit.\n"),name.c_str()); |
---|
| 101 | |
---|
| 102 | (*(_Register_Address_Translation_unit->in_CLOCK)) (*(in_CLOCK)); |
---|
| 103 | (*(_Register_Address_Translation_unit->in_NRESET)) (*(in_NRESET)); |
---|
| 104 | |
---|
| 105 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit, in_RENAME_VAL ,_param->_nb_inst_insert); |
---|
| 106 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit,out_RENAME_ACK ,_param->_nb_inst_insert); |
---|
| 107 | if (_param->_have_port_front_end_id) |
---|
| 108 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit, in_RENAME_FRONT_END_ID ,_param->_nb_inst_insert); |
---|
| 109 | if (_param->_have_port_context_id) |
---|
| 110 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit, in_RENAME_CONTEXT_ID ,_param->_nb_inst_insert); |
---|
| 111 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit, in_RENAME_NUM_REG_RA_LOG ,_param->_nb_inst_insert); |
---|
| 112 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit, in_RENAME_NUM_REG_RB_LOG ,_param->_nb_inst_insert); |
---|
| 113 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit, in_RENAME_NUM_REG_RC_LOG ,_param->_nb_inst_insert); |
---|
| 114 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit, in_RENAME_NUM_REG_RD_LOG ,_param->_nb_inst_insert); |
---|
| 115 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit, in_RENAME_NUM_REG_RE_LOG ,_param->_nb_inst_insert); |
---|
| 116 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit,out_RENAME_NUM_REG_RA_PHY ,_param->_nb_inst_insert); |
---|
| 117 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit,out_RENAME_NUM_REG_RB_PHY ,_param->_nb_inst_insert); |
---|
| 118 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit,out_RENAME_NUM_REG_RC_PHY ,_param->_nb_inst_insert); |
---|
| 119 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit,out_RENAME_NUM_REG_RD_PHY_OLD,_param->_nb_inst_insert); |
---|
| 120 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit,out_RENAME_NUM_REG_RE_PHY_OLD,_param->_nb_inst_insert); |
---|
| 121 | |
---|
| 122 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit, in_INSERT_VAL ,_param->_nb_inst_insert); |
---|
| 123 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit,out_INSERT_ACK ,_param->_nb_inst_insert); |
---|
| 124 | //if (_param->_have_port_front_end_id) |
---|
| 125 | //INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit, in_INSERT_FRONT_END_ID ,_param->_nb_inst_insert); |
---|
| 126 | //if (_param->_have_port_context_id) |
---|
| 127 | //INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit, in_INSERT_CONTEXT_ID ,_param->_nb_inst_insert); |
---|
| 128 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit, in_INSERT_WRITE_RD ,_param->_nb_inst_insert); |
---|
| 129 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit, in_INSERT_WRITE_RE ,_param->_nb_inst_insert); |
---|
| 130 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit, in_INSERT_NUM_REG_RD_LOG ,_param->_nb_inst_insert); |
---|
| 131 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit, in_INSERT_NUM_REG_RE_LOG ,_param->_nb_inst_insert); |
---|
| 132 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit, in_INSERT_NUM_REG_RD_PHY ,_param->_nb_inst_insert); |
---|
| 133 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit, in_INSERT_NUM_REG_RE_PHY ,_param->_nb_inst_insert); |
---|
| 134 | |
---|
| 135 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit, in_RETIRE_VAL ,_param->_nb_inst_retire); |
---|
| 136 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit,out_RETIRE_ACK ,_param->_nb_inst_retire); |
---|
| 137 | if (_param->_have_port_front_end_id) |
---|
| 138 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit, in_RETIRE_FRONT_END_ID ,_param->_nb_inst_retire); |
---|
| 139 | if (_param->_have_port_context_id) |
---|
| 140 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit, in_RETIRE_CONTEXT_ID ,_param->_nb_inst_retire); |
---|
| 141 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit, in_RETIRE_WRITE_RD ,_param->_nb_inst_retire); |
---|
| 142 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit, in_RETIRE_WRITE_RE ,_param->_nb_inst_retire); |
---|
| 143 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit, in_RETIRE_NUM_REG_RD_LOG ,_param->_nb_inst_retire); |
---|
| 144 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit, in_RETIRE_NUM_REG_RE_LOG ,_param->_nb_inst_retire); |
---|
| 145 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit, in_RETIRE_NUM_REG_RD_PHY_OLD,_param->_nb_inst_retire); |
---|
| 146 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit, in_RETIRE_NUM_REG_RE_PHY_OLD,_param->_nb_inst_retire); |
---|
[88] | 147 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit,out_RETIRE_RESTORE_RD_PHY_OLD,_param->_nb_inst_retire); |
---|
| 148 | INSTANCE1_SC_SIGNAL(_Register_Address_Translation_unit,out_RETIRE_RESTORE_RE_PHY_OLD,_param->_nb_inst_retire); |
---|
[78] | 149 | |
---|
[104] | 150 | INSTANCE2_SC_SIGNAL(_Register_Address_Translation_unit, in_RETIRE_EVENT_VAL ,_param->_nb_front_end, _param->_nb_context[it1]); |
---|
| 151 | INSTANCE2_SC_SIGNAL(_Register_Address_Translation_unit,out_RETIRE_EVENT_ACK ,_param->_nb_front_end, _param->_nb_context[it1]); |
---|
| 152 | INSTANCE2_SC_SIGNAL(_Register_Address_Translation_unit, in_RETIRE_EVENT_STATE ,_param->_nb_front_end, _param->_nb_context[it1]); |
---|
| 153 | |
---|
[78] | 154 | msg(_("<%s> : Start Simulation ............\n"),name.c_str()); |
---|
| 155 | |
---|
| 156 | Time * _time = new Time(); |
---|
| 157 | |
---|
| 158 | /******************************************************** |
---|
| 159 | * Simulation - Begin |
---|
| 160 | ********************************************************/ |
---|
| 161 | |
---|
| 162 | // Initialisation |
---|
| 163 | |
---|
| 164 | const uint32_t seed = 0; |
---|
| 165 | //const uint32_t seed = static_cast<uint32_t>(time(NULL)); |
---|
| 166 | |
---|
| 167 | srand(seed); |
---|
| 168 | |
---|
| 169 | const int32_t percent_transaction_insert = 75; |
---|
| 170 | const int32_t percent_transaction_retire = 75; |
---|
| 171 | |
---|
| 172 | uint32_t max_nb_context = max(_param->_nb_context,_param->_nb_front_end); |
---|
| 173 | |
---|
| 174 | Tgeneral_address_t rat_gpr [_param->_nb_front_end][max_nb_context][_param->_nb_general_register_logic]; |
---|
| 175 | Tspecial_address_t rat_spr [_param->_nb_front_end][max_nb_context][_param->_nb_special_register_logic]; |
---|
| 176 | bool rat_gpr_updt [_param->_nb_front_end][max_nb_context][_param->_nb_general_register_logic]; |
---|
| 177 | bool rat_spr_updt [_param->_nb_front_end][max_nb_context][_param->_nb_special_register_logic]; |
---|
| 178 | |
---|
| 179 | uint32_t gpr=1; |
---|
| 180 | uint32_t spr=0; |
---|
| 181 | for (uint32_t i=0; i<_param->_nb_front_end; i++) |
---|
| 182 | for (uint32_t j=0; j<_param->_nb_context[i]; j++) |
---|
| 183 | { |
---|
| 184 | rat_gpr [i][j][0] = 0; |
---|
| 185 | |
---|
| 186 | for (uint32_t k=1; k<_param->_nb_general_register_logic; k++) |
---|
| 187 | { |
---|
| 188 | rat_gpr [i][j][k] = gpr++; |
---|
| 189 | rat_gpr_updt [i][j][k] = false; |
---|
| 190 | } |
---|
| 191 | for (uint32_t k=0; k<_param->_nb_special_register_logic; k++) |
---|
| 192 | { |
---|
| 193 | rat_spr [i][j][k] = spr++; |
---|
| 194 | rat_spr_updt [i][j][k] = false; |
---|
| 195 | } |
---|
| 196 | } |
---|
| 197 | |
---|
| 198 | SC_START(0); |
---|
| 199 | LABEL("Initialisation"); |
---|
[104] | 200 | |
---|
| 201 | for (uint32_t i=0; i<_param->_nb_front_end; ++i) |
---|
| 202 | for (uint32_t j=0; j<_param->_nb_context[i]; ++j) |
---|
| 203 | in_RETIRE_EVENT_VAL [i][j]->write(1); |
---|
[78] | 204 | |
---|
| 205 | LABEL("Reset"); |
---|
| 206 | in_NRESET->write(0); |
---|
| 207 | SC_START(5); |
---|
| 208 | in_NRESET->write(1); |
---|
| 209 | |
---|
| 210 | LABEL("Loop of Test"); |
---|
| 211 | |
---|
| 212 | for (uint32_t iteration=0; iteration<NB_ITERATION; iteration ++) |
---|
| 213 | { |
---|
| 214 | int32_t nb_request; |
---|
| 215 | |
---|
| 216 | LABEL("Iteration %d",iteration); |
---|
| 217 | |
---|
| 218 | for (uint32_t i=0; i<_param->_nb_inst_insert; i++) |
---|
| 219 | { |
---|
| 220 | in_RENAME_VAL [i]->write(0); |
---|
| 221 | in_INSERT_VAL [i]->write(0); |
---|
| 222 | } |
---|
| 223 | for (uint32_t i=0; i<_param->_nb_inst_retire; i++) |
---|
| 224 | in_RETIRE_VAL [i]->write(0); |
---|
| 225 | |
---|
| 226 | nb_request = 32; |
---|
| 227 | while (nb_request > 1) |
---|
| 228 | { |
---|
| 229 | for (uint32_t i=0; i<_param->_nb_inst_insert; i++) |
---|
| 230 | { |
---|
| 231 | Tcontrol_t val = (rand()%100)<percent_transaction_insert; |
---|
| 232 | |
---|
| 233 | Tcontext_t front_end_id = rand() % _param->_nb_front_end; |
---|
| 234 | |
---|
| 235 | in_RENAME_VAL [i]->write(val); |
---|
| 236 | in_RENAME_FRONT_END_ID [i]->write(front_end_id); |
---|
| 237 | in_RENAME_CONTEXT_ID [i]->write(rand() % (_param->_nb_context[front_end_id])); |
---|
| 238 | in_RENAME_NUM_REG_RA_LOG [i]->write((rand() % (_param->_nb_general_register_logic-1))+1); |
---|
| 239 | in_RENAME_NUM_REG_RB_LOG [i]->write((rand() % (_param->_nb_general_register_logic-1))+1); |
---|
| 240 | in_RENAME_NUM_REG_RC_LOG [i]->write( rand() % _param->_nb_special_register_logic); |
---|
| 241 | in_RENAME_NUM_REG_RD_LOG [i]->write((rand() % (_param->_nb_general_register_logic-1))+1); |
---|
| 242 | in_RENAME_NUM_REG_RE_LOG [i]->write( rand() % _param->_nb_special_register_logic); |
---|
| 243 | in_INSERT_VAL [i]->write(val); |
---|
| 244 | in_INSERT_WRITE_RD [i]->write(rand() % 2); |
---|
| 245 | in_INSERT_WRITE_RE [i]->write(rand() % 2); |
---|
| 246 | in_INSERT_NUM_REG_RD_LOG [i]->write((rand() % (_param->_nb_general_register_logic-1))+1); |
---|
| 247 | in_INSERT_NUM_REG_RE_LOG [i]->write( rand() % _param->_nb_special_register_logic); |
---|
| 248 | in_INSERT_NUM_REG_RD_PHY [i]->write(rand() % _param->_nb_general_register); |
---|
| 249 | in_INSERT_NUM_REG_RE_PHY [i]->write(rand() % _param->_nb_special_register); |
---|
| 250 | } |
---|
| 251 | |
---|
[88] | 252 | uint32_t retire_max = _param->_nb_inst_retire; |
---|
[78] | 253 | for (uint32_t i=0; i<_param->_nb_inst_retire; i++) |
---|
| 254 | { |
---|
[88] | 255 | // in order ........... |
---|
| 256 | |
---|
| 257 | Tcontrol_t val = (i<retire_max) and ((rand()%100)<percent_transaction_retire); |
---|
[78] | 258 | |
---|
[88] | 259 | if (not val) |
---|
| 260 | retire_max = i; |
---|
| 261 | |
---|
[78] | 262 | Tcontext_t front_end_id = rand() % _param->_nb_front_end; |
---|
[104] | 263 | Tcontext_t context_id = rand() % (_param->_nb_context[front_end_id]); |
---|
[78] | 264 | |
---|
| 265 | in_RETIRE_VAL [i]->write(val); |
---|
| 266 | in_RETIRE_FRONT_END_ID [i]->write(front_end_id); |
---|
[104] | 267 | in_RETIRE_CONTEXT_ID [i]->write(context_id); |
---|
[78] | 268 | in_RETIRE_WRITE_RD [i]->write(rand() % 2); |
---|
| 269 | in_RETIRE_WRITE_RE [i]->write(rand() % 2); |
---|
| 270 | in_RETIRE_NUM_REG_RD_LOG [i]->write(rand() % _param->_nb_general_register_logic); |
---|
| 271 | in_RETIRE_NUM_REG_RE_LOG [i]->write(rand() % _param->_nb_special_register_logic); |
---|
| 272 | in_RETIRE_NUM_REG_RD_PHY_OLD [i]->write(rand() % _param->_nb_general_register); |
---|
| 273 | in_RETIRE_NUM_REG_RE_PHY_OLD [i]->write(rand() % _param->_nb_special_register); |
---|
[104] | 274 | |
---|
| 275 | in_RETIRE_EVENT_STATE [front_end_id][context_id]->write(EVENT_STATE_NO_EVENT); |
---|
[78] | 276 | } |
---|
| 277 | |
---|
| 278 | SC_START(1); |
---|
| 279 | |
---|
| 280 | |
---|
| 281 | for (uint32_t i=0; i<_param->_nb_inst_insert; i++) |
---|
| 282 | { |
---|
| 283 | Tcontext_t front_end_id = in_RENAME_FRONT_END_ID [i]->read(); |
---|
| 284 | Tcontext_t context_id = in_RENAME_CONTEXT_ID [i]->read(); |
---|
| 285 | if (in_INSERT_VAL [i]->read() and out_INSERT_ACK [i]->read()) |
---|
| 286 | { |
---|
| 287 | if (in_INSERT_WRITE_RD [i]->read() == 1) |
---|
| 288 | rat_gpr[front_end_id][context_id][in_INSERT_NUM_REG_RD_LOG[i]->read()] = in_INSERT_NUM_REG_RD_PHY[i]->read(); |
---|
| 289 | if (in_INSERT_WRITE_RE [i]->read() == 1) |
---|
| 290 | rat_spr[front_end_id][context_id][in_INSERT_NUM_REG_RE_LOG[i]->read()] = in_INSERT_NUM_REG_RE_PHY[i]->read(); |
---|
| 291 | } |
---|
| 292 | } |
---|
[88] | 293 | |
---|
| 294 | for (uint32_t i=0; i<_param->_nb_inst_retire; i++) |
---|
| 295 | { |
---|
| 296 | TEST(Tcontrol_t,out_RETIRE_RESTORE_RD_PHY_OLD[i]->read(), 0); |
---|
| 297 | TEST(Tcontrol_t,out_RETIRE_RESTORE_RE_PHY_OLD[i]->read(), 0); |
---|
| 298 | } |
---|
| 299 | |
---|
[78] | 300 | for (uint32_t i=0; i<_param->_nb_inst_insert; i++) |
---|
| 301 | { |
---|
| 302 | Tcontext_t front_end_id = in_RENAME_FRONT_END_ID [i]->read(); |
---|
| 303 | Tcontext_t context_id = in_RENAME_CONTEXT_ID [i]->read(); |
---|
| 304 | if (in_RENAME_VAL [i]->read() and out_RENAME_ACK [i]->read()) |
---|
| 305 | { |
---|
| 306 | nb_request --; |
---|
| 307 | |
---|
| 308 | TEST(Tgeneral_address_t,out_RENAME_NUM_REG_RA_PHY [i]->read(), rat_gpr[front_end_id][context_id][in_RENAME_NUM_REG_RA_LOG[i]->read()]); |
---|
| 309 | TEST(Tgeneral_address_t,out_RENAME_NUM_REG_RB_PHY [i]->read(), rat_gpr[front_end_id][context_id][in_RENAME_NUM_REG_RB_LOG[i]->read()]); |
---|
| 310 | TEST(Tspecial_address_t,out_RENAME_NUM_REG_RC_PHY [i]->read(), rat_spr[front_end_id][context_id][in_RENAME_NUM_REG_RC_LOG[i]->read()]); |
---|
| 311 | TEST(Tgeneral_address_t,out_RENAME_NUM_REG_RD_PHY_OLD[i]->read(), rat_gpr[front_end_id][context_id][in_RENAME_NUM_REG_RD_LOG[i]->read()]); |
---|
| 312 | TEST(Tspecial_address_t,out_RENAME_NUM_REG_RE_PHY_OLD[i]->read(), rat_spr[front_end_id][context_id][in_RENAME_NUM_REG_RE_LOG[i]->read()]); |
---|
| 313 | } |
---|
| 314 | |
---|
| 315 | } |
---|
| 316 | } |
---|
| 317 | |
---|
| 318 | // Event |
---|
| 319 | for (uint32_t i=0; i<_param->_nb_inst_insert; i++) |
---|
| 320 | { |
---|
| 321 | in_RENAME_VAL [i]->write(0); |
---|
| 322 | in_INSERT_VAL [i]->write(0); |
---|
| 323 | } |
---|
| 324 | for (uint32_t i=0; i<_param->_nb_inst_retire; i++) |
---|
| 325 | in_RETIRE_VAL [i]->write(0); |
---|
| 326 | |
---|
| 327 | Tcontext_t retire_front_end_id [_param->_nb_inst_retire]; |
---|
| 328 | Tcontext_t retire_context_id [_param->_nb_inst_retire]; |
---|
| 329 | |
---|
| 330 | for (uint32_t i=0; i<_param->_nb_inst_retire; i++) |
---|
| 331 | { |
---|
| 332 | retire_front_end_id [i] = rand() % _param->_nb_front_end; |
---|
| 333 | retire_context_id [i] = rand() % (_param->_nb_context[retire_front_end_id [i]]); |
---|
| 334 | |
---|
| 335 | for (uint32_t k=0; k<_param->_nb_general_register_logic; k++) |
---|
| 336 | rat_gpr_updt [retire_front_end_id [i]][retire_context_id [i]][k] = false; |
---|
| 337 | for (uint32_t k=0; k<_param->_nb_special_register_logic; k++) |
---|
| 338 | rat_spr_updt [retire_front_end_id [i]][retire_context_id [i]][k] = false; |
---|
| 339 | } |
---|
| 340 | |
---|
| 341 | for (uint32_t i=0; i<_param->_nb_inst_retire; i++) |
---|
| 342 | { |
---|
| 343 | in_RETIRE_VAL [i]->write(1); |
---|
| 344 | in_RETIRE_FRONT_END_ID [i]->write(retire_front_end_id [i]); |
---|
| 345 | in_RETIRE_CONTEXT_ID [i]->write(retire_context_id [i]); |
---|
| 346 | in_RETIRE_WRITE_RD [i]->write(0); |
---|
| 347 | in_RETIRE_WRITE_RE [i]->write(0); |
---|
| 348 | |
---|
[104] | 349 | in_RETIRE_EVENT_STATE [retire_front_end_id [i]][retire_context_id [i]]->write(EVENT_STATE_EVENT); |
---|
| 350 | |
---|
[78] | 351 | do |
---|
| 352 | { |
---|
| 353 | SC_START(1); |
---|
| 354 | } |
---|
| 355 | while (out_RETIRE_ACK[i]->read() == 0); |
---|
| 356 | |
---|
| 357 | in_RETIRE_VAL [i]->write(0); |
---|
| 358 | } |
---|
| 359 | |
---|
| 360 | SC_START(1); |
---|
| 361 | |
---|
[88] | 362 | // EVENT !!!!!!!! |
---|
| 363 | |
---|
[78] | 364 | nb_request = 32; |
---|
| 365 | while (nb_request > 1) |
---|
| 366 | { |
---|
| 367 | |
---|
| 368 | for (uint32_t i=0; i<_param->_nb_inst_insert; i++) |
---|
| 369 | { |
---|
| 370 | Tcontrol_t val = (rand()%100)<percent_transaction_insert; |
---|
| 371 | |
---|
| 372 | Tcontext_t front_end_id = rand() % _param->_nb_front_end; |
---|
| 373 | |
---|
| 374 | in_RENAME_VAL [i]->write(val); |
---|
| 375 | in_RENAME_FRONT_END_ID [i]->write(front_end_id); |
---|
| 376 | in_RENAME_CONTEXT_ID [i]->write(rand() % (_param->_nb_context[front_end_id])); |
---|
| 377 | in_RENAME_NUM_REG_RA_LOG [i]->write(rand() % _param->_nb_general_register_logic); |
---|
| 378 | in_RENAME_NUM_REG_RB_LOG [i]->write(rand() % _param->_nb_general_register_logic); |
---|
| 379 | in_RENAME_NUM_REG_RC_LOG [i]->write(rand() % _param->_nb_special_register_logic); |
---|
| 380 | in_RENAME_NUM_REG_RD_LOG [i]->write(rand() % _param->_nb_general_register_logic); |
---|
| 381 | in_RENAME_NUM_REG_RE_LOG [i]->write(rand() % _param->_nb_special_register_logic); |
---|
| 382 | in_INSERT_VAL [i]->write(val); |
---|
| 383 | in_INSERT_WRITE_RD [i]->write(rand() % 2); |
---|
| 384 | in_INSERT_WRITE_RE [i]->write(rand() % 2); |
---|
| 385 | in_INSERT_NUM_REG_RD_LOG [i]->write(rand() % _param->_nb_general_register_logic); |
---|
| 386 | in_INSERT_NUM_REG_RE_LOG [i]->write(rand() % _param->_nb_special_register_logic); |
---|
| 387 | in_INSERT_NUM_REG_RD_PHY [i]->write(rand() % _param->_nb_general_register); |
---|
| 388 | in_INSERT_NUM_REG_RE_PHY [i]->write(rand() % _param->_nb_special_register); |
---|
| 389 | } |
---|
| 390 | |
---|
[88] | 391 | uint32_t retire_max = _param->_nb_inst_retire; |
---|
[78] | 392 | for (uint32_t i=0; i<_param->_nb_inst_retire; i++) |
---|
| 393 | { |
---|
[88] | 394 | // in order ........... |
---|
| 395 | |
---|
| 396 | Tcontrol_t val = (i<retire_max) and ((rand()%100)<percent_transaction_retire); |
---|
| 397 | |
---|
| 398 | if (not val) |
---|
| 399 | retire_max = i; |
---|
| 400 | |
---|
[78] | 401 | in_RETIRE_VAL [i]->write(val); |
---|
| 402 | in_RETIRE_FRONT_END_ID [i]->write(retire_front_end_id [i]); |
---|
| 403 | in_RETIRE_CONTEXT_ID [i]->write(retire_context_id [i]); |
---|
| 404 | in_RETIRE_WRITE_RD [i]->write(rand() % 2); |
---|
| 405 | in_RETIRE_WRITE_RE [i]->write(rand() % 2); |
---|
| 406 | in_RETIRE_NUM_REG_RD_LOG [i]->write(rand() % _param->_nb_general_register_logic); |
---|
| 407 | in_RETIRE_NUM_REG_RE_LOG [i]->write(rand() % _param->_nb_special_register_logic); |
---|
| 408 | in_RETIRE_NUM_REG_RD_PHY_OLD [i]->write(rand() % _param->_nb_general_register); |
---|
| 409 | in_RETIRE_NUM_REG_RE_PHY_OLD [i]->write(rand() % _param->_nb_special_register); |
---|
[104] | 410 | |
---|
| 411 | in_RETIRE_EVENT_STATE [retire_front_end_id [i]][retire_context_id [i]]->write(EVENT_STATE_WAITEND); |
---|
[78] | 412 | } |
---|
| 413 | |
---|
[88] | 414 | SC_START(0); |
---|
[78] | 415 | |
---|
| 416 | |
---|
| 417 | for (uint32_t i=0; i<_param->_nb_inst_insert; i++) |
---|
| 418 | { |
---|
| 419 | Tcontext_t front_end_id = in_RENAME_FRONT_END_ID [i]->read(); |
---|
| 420 | Tcontext_t context_id = in_RENAME_CONTEXT_ID [i]->read(); |
---|
| 421 | if (in_INSERT_VAL [i]->read() and out_INSERT_ACK [i]->read()) |
---|
| 422 | { |
---|
| 423 | if (in_INSERT_WRITE_RD [i]->read() == 1) |
---|
| 424 | rat_gpr[front_end_id][context_id][in_INSERT_NUM_REG_RD_LOG[i]->read()] = in_INSERT_NUM_REG_RD_PHY[i]->read(); |
---|
| 425 | if (in_INSERT_WRITE_RE [i]->read() == 1) |
---|
| 426 | rat_spr[front_end_id][context_id][in_INSERT_NUM_REG_RE_LOG[i]->read()] = in_INSERT_NUM_REG_RE_PHY[i]->read(); |
---|
| 427 | } |
---|
| 428 | } |
---|
| 429 | |
---|
| 430 | for (uint32_t i=0; i<_param->_nb_inst_retire; i++) |
---|
| 431 | { |
---|
[88] | 432 | LABEL("RETIRE[%d]",i); |
---|
| 433 | |
---|
[78] | 434 | Tcontext_t front_end_id = in_RETIRE_FRONT_END_ID [i]->read(); |
---|
| 435 | Tcontext_t context_id = in_RETIRE_CONTEXT_ID [i]->read(); |
---|
[88] | 436 | |
---|
| 437 | LABEL(" * front_end_id : %d",front_end_id); |
---|
| 438 | LABEL(" * context_id : %d",context_id ); |
---|
| 439 | |
---|
[78] | 440 | if (in_RETIRE_VAL [i]->read() and out_RETIRE_ACK [i]->read()) |
---|
| 441 | { |
---|
| 442 | if (in_RETIRE_WRITE_RD [i]->read() == 1) |
---|
| 443 | { |
---|
[88] | 444 | // LABEL(" * transaction and write rd"); |
---|
| 445 | // LABEL(" * rd_log : %d",in_RETIRE_NUM_REG_RD_LOG[i]->read()); |
---|
| 446 | // LABEL(" * rat_gpr_updt : %d",rat_gpr_updt [front_end_id][context_id][in_RETIRE_NUM_REG_RD_LOG[i]->read()]); |
---|
| 447 | TEST(Tcontrol_t,out_RETIRE_RESTORE_RD_PHY_OLD[i]->read(), (rat_gpr_updt [front_end_id][context_id][in_RETIRE_NUM_REG_RD_LOG[i]->read()] == false)); |
---|
| 448 | |
---|
[78] | 449 | if (rat_gpr_updt [front_end_id][context_id][in_RETIRE_NUM_REG_RD_LOG[i]->read()] == false) |
---|
| 450 | rat_gpr[front_end_id][context_id][in_RETIRE_NUM_REG_RD_LOG[i]->read()] = in_RETIRE_NUM_REG_RD_PHY_OLD[i]->read(); |
---|
| 451 | rat_gpr_updt [front_end_id][context_id][in_RETIRE_NUM_REG_RD_LOG[i]->read()] = true; |
---|
| 452 | } |
---|
| 453 | if (in_RETIRE_WRITE_RE [i]->read() == 1) |
---|
| 454 | { |
---|
[88] | 455 | TEST(Tcontrol_t,out_RETIRE_RESTORE_RE_PHY_OLD[i]->read(), (rat_spr_updt [front_end_id][context_id][in_RETIRE_NUM_REG_RE_LOG[i]->read()] == false)); |
---|
| 456 | |
---|
[78] | 457 | if (rat_spr_updt [front_end_id][context_id][in_RETIRE_NUM_REG_RE_LOG[i]->read()] == false) |
---|
| 458 | rat_spr[front_end_id][context_id][in_RETIRE_NUM_REG_RE_LOG[i]->read()] = in_RETIRE_NUM_REG_RE_PHY_OLD[i]->read(); |
---|
| 459 | rat_spr_updt [front_end_id][context_id][in_RETIRE_NUM_REG_RE_LOG[i]->read()] = true; |
---|
| 460 | } |
---|
| 461 | } |
---|
| 462 | } |
---|
[88] | 463 | |
---|
| 464 | SC_START(1); |
---|
| 465 | |
---|
[78] | 466 | for (uint32_t i=0; i<_param->_nb_inst_insert; i++) |
---|
| 467 | { |
---|
| 468 | Tcontext_t front_end_id = in_RENAME_FRONT_END_ID [i]->read(); |
---|
| 469 | Tcontext_t context_id = in_RENAME_CONTEXT_ID [i]->read(); |
---|
| 470 | if (in_RENAME_VAL [i]->read() and out_RENAME_ACK [i]->read()) |
---|
| 471 | { |
---|
| 472 | nb_request --; |
---|
| 473 | |
---|
| 474 | TEST(Tgeneral_address_t,out_RENAME_NUM_REG_RA_PHY [i]->read(), rat_gpr[front_end_id][context_id][in_RENAME_NUM_REG_RA_LOG[i]->read()]); |
---|
| 475 | TEST(Tgeneral_address_t,out_RENAME_NUM_REG_RB_PHY [i]->read(), rat_gpr[front_end_id][context_id][in_RENAME_NUM_REG_RB_LOG[i]->read()]); |
---|
| 476 | TEST(Tspecial_address_t,out_RENAME_NUM_REG_RC_PHY [i]->read(), rat_spr[front_end_id][context_id][in_RENAME_NUM_REG_RC_LOG[i]->read()]); |
---|
| 477 | TEST(Tgeneral_address_t,out_RENAME_NUM_REG_RD_PHY_OLD[i]->read(), rat_gpr[front_end_id][context_id][in_RENAME_NUM_REG_RD_LOG[i]->read()]); |
---|
| 478 | TEST(Tspecial_address_t,out_RENAME_NUM_REG_RE_PHY_OLD[i]->read(), rat_spr[front_end_id][context_id][in_RENAME_NUM_REG_RE_LOG[i]->read()]); |
---|
| 479 | } |
---|
[88] | 480 | } |
---|
[78] | 481 | |
---|
| 482 | } |
---|
| 483 | } |
---|
| 484 | |
---|
| 485 | /******************************************************** |
---|
| 486 | * Simulation - End |
---|
| 487 | ********************************************************/ |
---|
| 488 | |
---|
| 489 | TEST_OK ("End of Simulation"); |
---|
| 490 | delete _time; |
---|
| 491 | |
---|
| 492 | msg(_("<%s> : ............ Stop Simulation\n"),name.c_str()); |
---|
| 493 | |
---|
| 494 | delete in_CLOCK; |
---|
| 495 | delete in_NRESET; |
---|
| 496 | |
---|
| 497 | delete [] in_RENAME_VAL ; |
---|
| 498 | delete [] out_RENAME_ACK ; |
---|
| 499 | if (_param->_have_port_front_end_id) |
---|
| 500 | delete [] in_RENAME_FRONT_END_ID ; |
---|
| 501 | if (_param->_have_port_context_id) |
---|
| 502 | delete [] in_RENAME_CONTEXT_ID ; |
---|
| 503 | delete [] in_RENAME_NUM_REG_RA_LOG ; |
---|
| 504 | delete [] in_RENAME_NUM_REG_RB_LOG ; |
---|
| 505 | delete [] in_RENAME_NUM_REG_RC_LOG ; |
---|
| 506 | delete [] in_RENAME_NUM_REG_RD_LOG ; |
---|
| 507 | delete [] in_RENAME_NUM_REG_RE_LOG ; |
---|
| 508 | delete [] out_RENAME_NUM_REG_RA_PHY ; |
---|
| 509 | delete [] out_RENAME_NUM_REG_RB_PHY ; |
---|
| 510 | delete [] out_RENAME_NUM_REG_RC_PHY ; |
---|
| 511 | delete [] out_RENAME_NUM_REG_RD_PHY_OLD; |
---|
| 512 | delete [] out_RENAME_NUM_REG_RE_PHY_OLD; |
---|
| 513 | |
---|
| 514 | delete [] in_INSERT_VAL ; |
---|
| 515 | delete [] out_INSERT_ACK ; |
---|
| 516 | //if (_param->_have_port_front_end_id) |
---|
| 517 | //delete [] in_INSERT_FRONT_END_ID ; |
---|
| 518 | //if (_param->_have_port_context_id) |
---|
| 519 | //delete [] in_INSERT_CONTEXT_ID ; |
---|
| 520 | delete [] in_INSERT_WRITE_RD ; |
---|
| 521 | delete [] in_INSERT_WRITE_RE ; |
---|
| 522 | delete [] in_INSERT_NUM_REG_RD_LOG ; |
---|
| 523 | delete [] in_INSERT_NUM_REG_RE_LOG ; |
---|
| 524 | delete [] in_INSERT_NUM_REG_RD_PHY ; |
---|
| 525 | delete [] in_INSERT_NUM_REG_RE_PHY ; |
---|
| 526 | |
---|
| 527 | delete [] in_RETIRE_VAL ; |
---|
| 528 | delete [] out_RETIRE_ACK ; |
---|
| 529 | if (_param->_have_port_front_end_id) |
---|
| 530 | delete [] in_RETIRE_FRONT_END_ID ; |
---|
| 531 | if (_param->_have_port_context_id) |
---|
| 532 | delete [] in_RETIRE_CONTEXT_ID ; |
---|
| 533 | delete [] in_RETIRE_WRITE_RD ; |
---|
| 534 | delete [] in_RETIRE_WRITE_RE ; |
---|
| 535 | delete [] in_RETIRE_NUM_REG_RD_LOG ; |
---|
| 536 | delete [] in_RETIRE_NUM_REG_RE_LOG ; |
---|
| 537 | delete [] in_RETIRE_NUM_REG_RD_PHY_OLD; |
---|
| 538 | delete [] in_RETIRE_NUM_REG_RE_PHY_OLD; |
---|
[88] | 539 | delete [] out_RETIRE_RESTORE_RD_PHY_OLD; |
---|
| 540 | delete [] out_RETIRE_RESTORE_RE_PHY_OLD; |
---|
[78] | 541 | |
---|
[104] | 542 | DELETE2_SC_SIGNAL( in_RETIRE_EVENT_VAL ,_param->_nb_front_end, _param->_nb_context[it1]); |
---|
| 543 | DELETE2_SC_SIGNAL(out_RETIRE_EVENT_ACK ,_param->_nb_front_end, _param->_nb_context[it1]); |
---|
| 544 | DELETE2_SC_SIGNAL( in_RETIRE_EVENT_STATE ,_param->_nb_front_end, _param->_nb_context[it1]); |
---|
[78] | 545 | #endif |
---|
| 546 | |
---|
| 547 | delete _Register_Address_Translation_unit; |
---|
| 548 | #ifdef STATISTICS |
---|
| 549 | delete _parameters_statistics; |
---|
| 550 | #endif |
---|
| 551 | } |
---|