Changeset 112 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/src/Direction_allocation.cpp
- Timestamp:
- Mar 18, 2009, 11:36:26 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Prediction_unit/Direction/src/Direction_allocation.cpp
r111 r112 49 49 ,IN 50 50 ,SOUTH, 51 "Generalist interface"51 _("Generalist interface") 52 52 #endif 53 53 ); … … 59 59 // ~~~~~[ Interface : "predict" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 60 60 { 61 ALLOC1_INTERFACE ("predict", IN, SOUTH, "Interface predict",_param->_nb_inst_predict);61 ALLOC1_INTERFACE_BEGIN("predict", IN, SOUTH, _("Interface predict"),_param->_nb_inst_predict); 62 62 63 63 ALLOC1_VALACK_IN ( in_PREDICT_VAL ,VAL); … … 68 68 ALLOC1_SIGNAL_OUT(out_PREDICT_HISTORY ,"history" ,Thistory_t,_param->_size_history); 69 69 ALLOC1_SIGNAL_OUT(out_PREDICT_DIRECTION ,"direction" ,Tcontrol_t,1); 70 71 ALLOC1_INTERFACE_END(_param->_nb_inst_predict); 70 72 } 71 73 72 74 // ~~~~~[ Interface : "update" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 73 75 { 74 ALLOC1_INTERFACE("update", IN, SOUTH, "Interface update",_param->_nb_inst_update); 75 76 ALLOC1_VALACK_IN ( in_UPDATE_VAL ,VAL); 77 ALLOC1_VALACK_OUT(out_UPDATE_ACK ,ACK); 78 ALLOC1_SIGNAL_IN ( in_UPDATE_ADDRESS ,"address" ,Taddress_t,_param->_size_instruction_address); 79 ALLOC1_SIGNAL_IN ( in_UPDATE_HISTORY ,"history" ,Thistory_t,_param->_size_history); 80 ALLOC1_SIGNAL_IN ( in_UPDATE_DIRECTION,"direction",Tcontrol_t,1); 76 ALLOC1_INTERFACE_BEGIN("update", IN, SOUTH, _("Interface update"),_param->_nb_inst_update); 77 78 ALLOC1_VALACK_IN ( in_UPDATE_VAL ,VAL); 79 ALLOC1_VALACK_OUT(out_UPDATE_ACK ,ACK); 80 ALLOC1_SIGNAL_IN ( in_UPDATE_ADDRESS ,"address" ,Taddress_t,_param->_size_instruction_address); 81 ALLOC1_SIGNAL_IN ( in_UPDATE_HISTORY ,"history" ,Thistory_t,_param->_size_history); 82 ALLOC1_SIGNAL_IN ( in_UPDATE_DIRECTION ,"direction" ,Tcontrol_t,1); 83 ALLOC1_SIGNAL_IN ( in_UPDATE_PREDICTION_IFETCH,"prediction_ifetch",Tcontrol_t,1); 84 85 ALLOC1_INTERFACE_END(_param->_nb_inst_update); 81 86 } 82 87 … … 183 188 COMPONENT_MAP(_component,src , "in_UPDATE_"+toString(i)+ "_HISTORY" , 184 189 dest,"out_UPDATE_"+toString(i)+"_PREDICTOR_HISTORY" ); 190 COMPONENT_MAP(_component,src , "in_UPDATE_"+toString(i)+ "_HISTORY_VAL" , 191 dest,"out_UPDATE_"+toString(i)+"_PREDICTOR_PREDICTION_IFETCH"); 185 192 } 186 193 } … … 212 219 #endif 213 220 214 PORT_MAP(_component,src , "in_PREDICT_"+toString(i)+"_VAL" ,215 dest, "in_PREDICT_"+toString(i)+"_VAL" );216 PORT_MAP(_component,src ,"out_PREDICT_"+toString(i)+"_ACK" ,217 dest,"out_PREDICT_"+toString(i)+"_ACK" );218 PORT_MAP(_component,src , "in_PREDICT_"+toString(i)+"_ADDRESS_SRC" ,219 dest, "in_PREDICT_"+toString(i)+"_ADDRESS_SRC" );220 PORT_MAP(_component,src , "in_PREDICT_"+toString(i)+"_STATIC" ,221 dest, "in_PREDICT_"+toString(i)+"_STATIC" );222 PORT_MAP(_component,src , "in_PREDICT_"+toString(i)+"_LAST_TAKE" ,223 dest, "in_PREDICT_"+toString(i)+"_LAST_TAKE" );224 if (_param->_have_port_history) 225 PORT_MAP(_component,src ,"out_PREDICT_"+toString(i)+"_HISTORY" ,226 dest,"out_PREDICT_"+toString(i)+"_HISTORY" );227 PORT_MAP(_component,src ,"out_PREDICT_"+toString(i)+"_DIRECTION" ,228 dest,"out_PREDICT_"+toString(i)+"_DIRECTION" );229 230 // PORT_MAP(_component,src ,"out_PREDICT_"+toString(i)+"_PREDICTOR_VAL" ,dest,"out_PREDICT_"+toString(i)+"_PREDICTOR_VAL");231 // PORT_MAP(_component,src , "in_PREDICT_"+toString(i)+"_PREDICTOR_ACK" ,dest, "in_PREDICT_"+toString(i)+"_PREDICTOR_ACK");232 // PORT_MAP(_component,src ,"out_PREDICT_"+toString(i)+"_PREDICTOR_ADDRESS_SRC" ,dest,"out_PREDICT_"+toString(i)+"_PREDICTOR_ADDRESS_SRC");233 // PORT_MAP(_component,src , "in_PREDICT_"+toString(i)+"_PREDICTOR_HISTORY" ,dest, "in_PREDICT_"+toString(i)+"_PREDICTOR_HISTORY");234 // PORT_MAP(_component,src , "in_PREDICT_"+toString(i)+"_PREDICTOR_DIRECTION" ,dest, "in_PREDICT_"+toString(i)+"_PREDICTOR_DIRECTION");221 PORT_MAP(_component,src , "in_PREDICT_"+toString(i)+"_VAL" , 222 dest, "in_PREDICT_"+toString(i)+"_VAL" ); 223 PORT_MAP(_component,src ,"out_PREDICT_"+toString(i)+"_ACK" , 224 dest,"out_PREDICT_"+toString(i)+"_ACK" ); 225 PORT_MAP(_component,src , "in_PREDICT_"+toString(i)+"_ADDRESS_SRC" , 226 dest, "in_PREDICT_"+toString(i)+"_ADDRESS_SRC" ); 227 PORT_MAP(_component,src , "in_PREDICT_"+toString(i)+"_STATIC" , 228 dest, "in_PREDICT_"+toString(i)+"_STATIC" ); 229 PORT_MAP(_component,src , "in_PREDICT_"+toString(i)+"_LAST_TAKE" , 230 dest, "in_PREDICT_"+toString(i)+"_LAST_TAKE" ); 231 if (_param->_have_port_history) 232 PORT_MAP(_component,src ,"out_PREDICT_"+toString(i)+"_HISTORY" , 233 dest,"out_PREDICT_"+toString(i)+"_HISTORY" ); 234 PORT_MAP(_component,src ,"out_PREDICT_"+toString(i)+"_DIRECTION" , 235 dest,"out_PREDICT_"+toString(i)+"_DIRECTION" ); 236 237 // PORT_MAP(_component,src ,"out_PREDICT_"+toString(i)+"_PREDICTOR_VAL" ,dest,"out_PREDICT_"+toString(i)+"_PREDICTOR_VAL" ); 238 // PORT_MAP(_component,src , "in_PREDICT_"+toString(i)+"_PREDICTOR_ACK" ,dest, "in_PREDICT_"+toString(i)+"_PREDICTOR_ACK" ); 239 // PORT_MAP(_component,src ,"out_PREDICT_"+toString(i)+"_PREDICTOR_ADDRESS_SRC" ,dest,"out_PREDICT_"+toString(i)+"_PREDICTOR_ADDRESS_SRC" ); 240 // PORT_MAP(_component,src , "in_PREDICT_"+toString(i)+"_PREDICTOR_HISTORY" ,dest, "in_PREDICT_"+toString(i)+"_PREDICTOR_HISTORY" ); 241 // PORT_MAP(_component,src , "in_PREDICT_"+toString(i)+"_PREDICTOR_DIRECTION" ,dest, "in_PREDICT_"+toString(i)+"_PREDICTOR_DIRECTION" ); 235 242 } 236 243 … … 243 250 #endif 244 251 245 PORT_MAP(_component,src , "in_UPDATE_"+toString(i)+"_VAL" ,246 dest, "in_UPDATE_"+toString(i)+"_VAL" );247 PORT_MAP(_component,src ,"out_UPDATE_"+toString(i)+"_ACK" ,248 dest,"out_UPDATE_"+toString(i)+"_ACK" );249 PORT_MAP(_component,src , "in_UPDATE_"+toString(i)+"_ADDRESS" ,250 dest, "in_UPDATE_"+toString(i)+"_ADDRESS" );252 PORT_MAP(_component,src , "in_UPDATE_"+toString(i)+"_VAL" , 253 dest, "in_UPDATE_"+toString(i)+"_VAL" ); 254 PORT_MAP(_component,src ,"out_UPDATE_"+toString(i)+"_ACK" , 255 dest,"out_UPDATE_"+toString(i)+"_ACK" ); 256 PORT_MAP(_component,src , "in_UPDATE_"+toString(i)+"_ADDRESS" , 257 dest, "in_UPDATE_"+toString(i)+"_ADDRESS" ); 251 258 if (_param->_have_port_history) 252 PORT_MAP(_component,src , "in_UPDATE_"+toString(i)+"_HISTORY" , 253 dest, "in_UPDATE_"+toString(i)+"_HISTORY" ); 254 PORT_MAP(_component,src , "in_UPDATE_"+toString(i)+"_DIRECTION", 255 dest, "in_UPDATE_"+toString(i)+"_DIRECTION"); 256 // PORT_MAP(_component,src ,"out_UPDATE_"+toString(i)+"_PREDICTOR_VAL" ,dest,"out_UPDATE_"+toString(i)+"_PREDICTOR_VAL" ); 257 // PORT_MAP(_component,src , "in_UPDATE_"+toString(i)+"_PREDICTOR_ACK" ,dest, "in_UPDATE_"+toString(i)+"_PREDICTOR_ACK" ); 258 // PORT_MAP(_component,src ,"out_UPDATE_"+toString(i)+"_PREDICTOR_ADDRESS" ,dest,"out_UPDATE_"+toString(i)+"_PREDICTOR_ADDRESS" ); 259 // PORT_MAP(_component,src ,"out_UPDATE_"+toString(i)+"_PREDICTOR_HISTORY" ,dest,"out_UPDATE_"+toString(i)+"_PREDICTOR_HISTORY" ); 260 // PORT_MAP(_component,src ,"out_UPDATE_"+toString(i)+"_PREDICTOR_DIRECTION",dest,"out_UPDATE_"+toString(i)+"_PREDICTOR_DIRECTION"); 259 PORT_MAP(_component,src , "in_UPDATE_"+toString(i)+"_HISTORY" , 260 dest, "in_UPDATE_"+toString(i)+"_HISTORY" ); 261 PORT_MAP(_component,src , "in_UPDATE_"+toString(i)+"_DIRECTION" , 262 dest, "in_UPDATE_"+toString(i)+"_DIRECTION" ); 263 PORT_MAP(_component,src , "in_UPDATE_"+toString(i)+"_PREDICTION_IFETCH", 264 dest, "in_UPDATE_"+toString(i)+"_PREDICTION_IFETCH"); 265 266 // PORT_MAP(_component,src ,"out_UPDATE_"+toString(i)+"_PREDICTOR_VAL" ,dest,"out_UPDATE_"+toString(i)+"_PREDICTOR_VAL" ); 267 // PORT_MAP(_component,src , "in_UPDATE_"+toString(i)+"_PREDICTOR_ACK" ,dest, "in_UPDATE_"+toString(i)+"_PREDICTOR_ACK" ); 268 // PORT_MAP(_component,src ,"out_UPDATE_"+toString(i)+"_PREDICTOR_ADDRESS" ,dest,"out_UPDATE_"+toString(i)+"_PREDICTOR_ADDRESS" ); 269 // PORT_MAP(_component,src ,"out_UPDATE_"+toString(i)+"_PREDICTOR_HISTORY" ,dest,"out_UPDATE_"+toString(i)+"_PREDICTOR_HISTORY" ); 270 // PORT_MAP(_component,src ,"out_UPDATE_"+toString(i)+"_PREDICTOR_DIRECTION" ,dest,"out_UPDATE_"+toString(i)+"_PREDICTOR_DIRECTION" ); 271 // PORT_MAP(_component,src ,"out_UPDATE_"+toString(i)+"_PREDICTOR_PREDICTION_IFETCH",dest,"out_UPDATE_"+toString(i)+"_PREDICTOR_PREDICTION_IFETCH"); 272 261 273 } 262 274 }
Note: See TracChangeset
for help on using the changeset viewer.