- Timestamp:
- Mar 18, 2009, 11:36:26 PM (15 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Icache_Access/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Icache_Access/src/Icache_Access_allocation.cpp
r88 r112 56 56 // ~~~~~[ Interface "icache_req" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 57 57 { 58 ALLOC1_INTERFACE ("icache_req",WEST,OUT,_("Request to instruction cache"),_param->_nb_icache_port);58 ALLOC1_INTERFACE_BEGIN("icache_req",WEST,OUT,_("Request to instruction cache"),_param->_nb_icache_port); 59 59 60 60 ALLOC1_VALACK_OUT(out_ICACHE_REQ_VAL ,VAL); … … 64 64 ALLOC1_SIGNAL_OUT(out_ICACHE_REQ_ADDRESS ,"address" ,Ticache_address_t ,_param->_size_address ); 65 65 ALLOC1_SIGNAL_OUT(out_ICACHE_REQ_TYPE ,"type" ,Ticache_type_t ,_param->_size_icache_type ); 66 67 ALLOC1_INTERFACE_END(_param->_nb_icache_port); 66 68 } 67 69 68 70 // ~~~~~[ Interface "icache_rsp" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 69 71 { 70 ALLOC1_INTERFACE ("icache_rsp",WEST,IN ,_("Respons from instruction cache"),_param->_nb_icache_port);72 ALLOC1_INTERFACE_BEGIN("icache_rsp",WEST,IN ,_("Respons from instruction cache"),_param->_nb_icache_port); 71 73 72 74 ALLOC1_VALACK_IN ( in_ICACHE_RSP_VAL ,VAL); … … 75 77 ALLOC1_SIGNAL_IN ( in_ICACHE_RSP_PACKET_ID ,"packet_id" ,Tpacket_t ,_param->_size_icache_packet_id); 76 78 ALLOC1_SIGNAL_IN ( in_ICACHE_RSP_ERROR ,"error" ,Ticache_error_t ,_param->_size_icache_error ); 79 80 ALLOC1_INTERFACE_END(_param->_nb_icache_port); 77 81 } 78 82 { 79 // NOTE : max_nb_instruction is too wide ... 80 ALLOC2_INTERFACE("icache_rsp",WEST,IN ,_("Respons from instruction cache"),_param->_nb_icache_port,_param->_icache_nb_instruction[it1]); 83 ALLOC2_INTERFACE_BEGIN("icache_rsp",WEST,IN ,_("Respons from instruction cache"),_param->_nb_icache_port,_param->_icache_nb_instruction[it1]); 81 84 82 85 _ALLOC2_SIGNAL_IN ( in_ICACHE_RSP_INSTRUCTION ,"instruction",Ticache_instruction_t,_param->_size_instruction,_param->_nb_icache_port,_param->_icache_nb_instruction[it1]); 86 87 ALLOC2_INTERFACE_END(_param->_nb_icache_port,_param->_icache_nb_instruction[it1]); 83 88 } 84 89 85 90 // ~~~~~[ Interface "context_req" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 86 91 { 87 ALLOC2_INTERFACE ("context_req",EAST,IN ,_("Request from context_unit."),_param->_nb_front_end, _param->_nb_context[it1]);92 ALLOC2_INTERFACE_BEGIN("context_req",EAST,IN ,_("Request from context_unit."),_param->_nb_front_end, _param->_nb_context[it1]); 88 93 89 94 _ALLOC2_VALACK_IN ( in_CONTEXT_REQ_VAL ,VAL,_param->_nb_front_end, _param->_nb_context[it1]); … … 93 98 _ALLOC2_SIGNAL_IN ( in_CONTEXT_REQ_ADDRESS ,"address" ,Ticache_address_t ,_param->_size_address ,_param->_nb_front_end, _param->_nb_context[it1]); 94 99 _ALLOC2_SIGNAL_IN ( in_CONTEXT_REQ_TYPE ,"type" ,Ticache_type_t ,_param->_size_icache_type ,_param->_nb_front_end, _param->_nb_context[it1]); 100 101 ALLOC2_INTERFACE_END(_param->_nb_front_end, _param->_nb_context[it1]); 95 102 } 96 103 97 104 // ~~~~~[ Interface "context_rsp" ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 98 105 { 99 ALLOC2_INTERFACE ("context_rsp",EAST,OUT,_("Respons to context_unit."),_param->_nb_front_end, _param->_nb_context[it1]);106 ALLOC2_INTERFACE_BEGIN("context_rsp",EAST,OUT,_("Respons to context_unit."),_param->_nb_front_end, _param->_nb_context[it1]); 100 107 101 108 _ALLOC2_VALACK_OUT(out_CONTEXT_RSP_VAL ,VAL,_param->_nb_front_end, _param->_nb_context[it1]); … … 104 111 _ALLOC2_SIGNAL_OUT(out_CONTEXT_RSP_PACKET_ID ,"packet_id" ,Tpacket_t ,_param->_size_packet_id[it1][it2],_param->_nb_front_end, _param->_nb_context[it1]); 105 112 _ALLOC2_SIGNAL_OUT(out_CONTEXT_RSP_ERROR ,"error" ,Ticache_error_t ,_param->_size_icache_error ,_param->_nb_front_end, _param->_nb_context[it1]); 113 114 ALLOC2_INTERFACE_END(_param->_nb_front_end, _param->_nb_context[it1]); 106 115 } 107 116 { 108 ALLOC3_INTERFACE ("context_rsp",EAST,OUT,_("Respons to context_unit."),_param->_nb_front_end, _param->_nb_context[it1],_param->_nb_instruction[it1][it2]);117 ALLOC3_INTERFACE_BEGIN("context_rsp",EAST,OUT,_("Respons to context_unit."),_param->_nb_front_end, _param->_nb_context[it1],_param->_nb_instruction[it1][it2]); 109 118 110 119 _ALLOC3_SIGNAL_OUT(out_CONTEXT_RSP_INSTRUCTION,"instruction",Ticache_instruction_t,_param->_size_instruction,_param->_nb_front_end, _param->_nb_context[it1],_param->_nb_instruction[it1][it2]); 120 121 ALLOC3_INTERFACE_END(_param->_nb_front_end, _param->_nb_context[it1],_param->_nb_instruction[it1][it2]); 111 122 } 112 123 … … 115 126 // ~~~~~[ Internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 116 127 #ifdef STATISTICS 117 _internal_ICACHE_REQ_NB_ACCESS = new uint32_t [_param->_nb_icache_port];118 _internal_ICACHE_REQ_NB_ACCESS_CONFLIT = new uint32_t [_param->_nb_icache_port];128 ALLOC1(_internal_ICACHE_REQ_NB_ACCESS ,uint32_t,_param->_nb_icache_port); 129 ALLOC1(_internal_ICACHE_REQ_NB_ACCESS_CONFLIT,uint32_t,_param->_nb_icache_port); 119 130 #endif 120 131 } -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Icache_Access/src/Icache_Access_deallocation.cpp
r88 r112 56 56 // ~~~~~[ Internal ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 57 57 #ifdef STATISTICS 58 delete [] _internal_ICACHE_REQ_NB_ACCESS;59 delete [] _internal_ICACHE_REQ_NB_ACCESS_CONFLIT;58 DELETE1(_internal_ICACHE_REQ_NB_ACCESS ,_param->_nb_icache_port); 59 DELETE1(_internal_ICACHE_REQ_NB_ACCESS_CONFLIT,_param->_nb_icache_port); 60 60 #endif 61 61 }
Note: See TracChangeset
for help on using the changeset viewer.