Ignore:
Timestamp:
Mar 18, 2009, 11:36:26 PM (15 years ago)
Author:
rosiere
Message:

1) Stat_list : fix retire old and new register bug
2) Stat_list : remove read_counter and valid flag, because validation of destination is in retire step (not in commit step)
3) Model : add class Model (cf Morpheo.sim)
4) Allocation : alloc_interface_begin and alloc_interface_end to delete temporary array.
5) Script : add distexe.sh
6) Add Comparator, Multiplier, Divider. But this component are not implemented
7) Software : add Dhrystone

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  
    4949                                                         ,IN
    5050                                                         ,SOUTH,
    51                                                          "Generalist interface"
     51                                                         _("Generalist interface")
    5252#endif
    5353                                                         );
     
    5959    // ~~~~~[ Interface : "predict" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    6060    {
    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);
    6262
    6363      ALLOC1_VALACK_IN ( in_PREDICT_VAL        ,VAL);
     
    6868      ALLOC1_SIGNAL_OUT(out_PREDICT_HISTORY    ,"history"    ,Thistory_t,_param->_size_history);
    6969      ALLOC1_SIGNAL_OUT(out_PREDICT_DIRECTION  ,"direction"  ,Tcontrol_t,1);
     70
     71      ALLOC1_INTERFACE_END(_param->_nb_inst_predict);
    7072    }
    7173
    7274    // ~~~~~[ Interface : "update" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    7375    {
    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);
    8186    }
    8287
     
    183188          COMPONENT_MAP(_component,src , "in_UPDATE_"+toString(i)+          "_HISTORY"    ,
    184189                                   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");
    185192        }
    186193    }
     
    212219#endif
    213220         
    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"        );
    235242        }
    236243     
     
    243250#endif
    244251
    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"          );
    251258          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
    261273      }
    262274    }
Note: See TracChangeset for help on using the changeset viewer.