Changeset 145 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/src/OOO_Engine_allocation.cpp
- Timestamp:
- Oct 13, 2010, 8:15:51 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_OOO_Engine/OOO_Engine/src/OOO_Engine_allocation.cpp
r139 r145 534 534 COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j) +"_IS_DELAY_SLOT" , 535 535 dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_IS_DELAY_SLOT" ); 536 if (_param->_rat_scheme[i] == RAT_DEPTH_SAVE) 537 COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j) +"_SAVE_RAT" , 538 dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_SAVE_RAT" ); 536 539 // COMPONENT_MAP(_component,src ,"out_INSERT_"+toString(j) +"_HAVE_EVENT" , 537 540 // dest, "in_INSERT_"+toString(i)+"_"+toString(j)+"_HAVE_EVENT" ); … … 633 636 #endif 634 637 635 636 637 638 COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+ "_VAL" , 638 639 dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_VAL" ); … … 670 671 COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+ "_LOAD_QUEUE_PTR_WRITE" , 671 672 dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_LOAD_QUEUE_PTR_WRITE" ); 672 // 673 // 674 // 675 // 676 // 677 // 678 // 679 // 680 // 681 // 682 // 683 // 673 // COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+ "_READ_RA" , 674 // dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_READ_RA" ); 675 // COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+ "_NUM_REG_RA_PHY" , 676 // dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_NUM_REG_RA_PHY" ); 677 // COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+ "_READ_RB" , 678 // dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_READ_RB" ); 679 // COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+ "_NUM_REG_RB_PHY" , 680 // dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_NUM_REG_RB_PHY" ); 681 // COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+ "_READ_RC" , 682 // dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_READ_RC" ); 683 // COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+ "_NUM_REG_RC_PHY" , 684 // dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_NUM_REG_RC_PHY" ); 684 685 COMPONENT_MAP(_component,src , "in_RETIRE_"+toString(j)+ "_NUM_REG_RD_LOG" , 685 686 dest,"out_RETIRE_"+toString(i)+"_"+toString(j)+"_NUM_REG_RD_LOG" ); … … 755 756 } 756 757 } 758 759 // ~~~~~[ Interface : "spr_read" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 760 { 761 std::vector<uint32_t>::iterator it = _param->_link_front_end_with_rename_unit[i].begin(); 762 uint32_t x = 0; 763 for (uint32_t j=0; j<_param->_nb_front_end; j++) 764 if (j == *it) 765 { 766 for (uint32_t k=0; k<_param->_nb_context[j]; k++) 767 { 768 dest = _name; 769 770 #ifdef POSITION 771 _component->interface_map (src ,"spr_read_"+toString(x)+"_"+toString(k), 772 dest,"spr_" +toString(j)+"_"+toString(k)); 773 #endif 774 775 if (_param->_have_port_depth) 776 { 777 PORT_MAP(_component,src , "in_DEPTH_"+toString(x)+"_"+toString(k)+"_MIN" , 778 dest, "in_DEPTH_"+toString(j)+"_"+toString(k)+"_MIN" ); 779 PORT_MAP(_component,src , "in_DEPTH_"+toString(x)+"_"+toString(k)+"_MAX" , 780 dest, "in_DEPTH_"+toString(j)+"_"+toString(k)+"_MAX" ); 781 } 782 PORT_MAP(_component,src , "in_DEPTH_"+toString(x)+"_"+toString(k)+"_FULL", 783 dest, "in_DEPTH_"+toString(j)+"_"+toString(k)+"_FULL"); 784 } 785 x++; 786 ++it; 787 } 788 } 789 757 790 758 791 // ~~~~~[ Interface : "info" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ … … 919 952 // out_RETIRE_CONTEXT_ID - component_rename_unit 920 953 ////out_RETIRE_RENAME_UNIT_ID - component_rename_unit 954 // out_RETIRE_DEPTH - component_rename_unit 921 955 // out_RETIRE_USE_STORE_QUEUE - component_rename_unit 922 956 // out_RETIRE_USE_LOAD_QUEUE - component_rename_unit … … 981 1015 COMPONENT_MAP(_component,src ,"out_COMMIT_"+toString(i)+"_NUM_REG_RD" , 982 1016 dest, "in_COMMIT_"+toString(i)+"_NUM_REG_RD" ); 983 //@@@@@@@@@@984 1017 } 985 1018 … … 1111 1144 } 1112 1145 1113 // ~~~~~[ Interface : "depth" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~1114 for (uint32_t i=0; i<_param->_nb_front_end; i++)1115 for (uint32_t j=0; j<_param->_nb_context[i]; j++)1116 {1117 dest = _name;1118 #ifdef POSITION1119 _component->interface_map (src ,"depth_"+toString(i)+"_"+toString(j),1120 dest,"depth_"+toString(i)+"_"+toString(j));1121 #endif1122 1123 if (_param->_have_port_depth)1124 {1125 PORT_MAP(_component,src , "in_DEPTH_"+toString(i)+"_"+toString(j)+"_MIN",1126 dest, "in_DEPTH_"+toString(i)+"_"+toString(j)+"_MIN");1127 PORT_MAP(_component,src , "in_DEPTH_"+toString(i)+"_"+toString(j)+"_MAX",1128 dest, "in_DEPTH_"+toString(i)+"_"+toString(j)+"_MAX");1129 }1130 PORT_MAP(_component,src , "in_DEPTH_"+toString(i)+"_"+toString(j)+"_FULL",1131 dest, "in_DEPTH_"+toString(i)+"_"+toString(j)+"_FULL");1132 }1146 // // ~~~~~[ Interface : "depth" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1147 // for (uint32_t i=0; i<_param->_nb_front_end; i++) 1148 // for (uint32_t j=0; j<_param->_nb_context[i]; j++) 1149 // { 1150 // dest = _name; 1151 //#ifdef POSITION 1152 // _component->interface_map (src ,"depth_"+toString(i)+"_"+toString(j), 1153 // dest,"depth_"+toString(i)+"_"+toString(j)); 1154 //#endif 1155 // 1156 // if (_param->_have_port_depth) 1157 // { 1158 // PORT_MAP(_component,src , "in_DEPTH_"+toString(i)+"_"+toString(j)+"_MIN", 1159 // dest, "in_DEPTH_"+toString(i)+"_"+toString(j)+"_MIN"); 1160 // PORT_MAP(_component,src , "in_DEPTH_"+toString(i)+"_"+toString(j)+"_MAX", 1161 // dest, "in_DEPTH_"+toString(i)+"_"+toString(j)+"_MAX"); 1162 // } 1163 // PORT_MAP(_component,src , "in_DEPTH_"+toString(i)+"_"+toString(j)+"_FULL", 1164 // dest, "in_DEPTH_"+toString(i)+"_"+toString(j)+"_FULL"); 1165 // } 1133 1166 1134 1167 // ~~~~~[ Interface : "spr_read" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Note: See TracChangeset
for help on using the changeset viewer.