Changeset 88 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_unit_Glue/src
- Timestamp:
- Dec 10, 2008, 7:31:39 PM (16 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_unit_Glue/src
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_unit_Glue/src/Ifetch_unit_Glue.cpp
r85 r88 38 38 log_printf(FUNC,Ifetch_unit_Glue,FUNCTION,"Begin"); 39 39 40 #if DEBUG_Ifetch_unit_Glue == true 41 log_printf(INFO,Ifetch_unit_Glue,FUNCTION,_("<%s> Parameters"),_name.c_str()); 42 43 std::cout << *param << std::endl; 44 #endif 45 40 46 log_printf(INFO,Ifetch_unit_Glue,FUNCTION,"Allocation"); 41 47 … … 47 53 48 54 #ifdef STATISTICS 49 if ( _usage & USE_STATISTICS)55 if (usage_is_set(_usage,USE_STATISTICS)) 50 56 { 51 57 log_printf(INFO,Ifetch_unit_Glue,FUNCTION,"Allocation of statistics"); … … 56 62 57 63 #ifdef VHDL 58 if ( _usage & USE_VHDL)64 if (usage_is_set(_usage,USE_VHDL)) 59 65 { 60 66 // generate the vhdl … … 66 72 67 73 #ifdef SYSTEMC 68 PORT_WRITE(out_ICACHE_REQ_TYPE,ICACHE_TYPE_LOAD); 74 if (usage_is_set(_usage,USE_SYSTEMC)) 75 { 76 // Write constant 77 PORT_WRITE(out_ICACHE_REQ_TYPE,ICACHE_TYPE_LOAD); 69 78 70 if (_usage & USE_SYSTEMC)71 {72 79 # if defined(STATISTICS) or defined(VHDL_TESTBENCH) 73 80 log_printf(INFO,Ifetch_unit_Glue,FUNCTION,"Method - transition"); … … 140 147 141 148 #ifdef STATISTICS 142 if ( _usage & USE_STATISTICS)149 if (usage_is_set(_usage,USE_STATISTICS)) 143 150 { 144 151 statistics_deallocation(); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_unit_Glue/src/Ifetch_unit_Glue_allocation.cpp
r85 r88 67 67 ALLOC_SIGNAL_IN ( in_ICACHE_REQ_QUEUE_ACK ,"queue_ack" ,Tcontrol_t,1); 68 68 ALLOC_SIGNAL_OUT(out_ICACHE_REQ_TYPE ,"type" ,Ticache_type_t,_param->_size_icache_type); 69 ALLOC_SIGNAL_OUT(out_ICACHE_REQ_ADDRESS ,"address" ,Taddress_t,_param->_size_ address);70 ALLOC_SIGNAL_IN ( in_ICACHE_REQ_ADDRESS_ADDRESS,"address_address",Taddress_t,_param->_size_ address);71 ALLOC_SIGNAL_OUT(out_ICACHE_REQ_QUEUE_ADDRESS ,"queue_address" ,Taddress_t,_param->_size_ address);69 ALLOC_SIGNAL_OUT(out_ICACHE_REQ_ADDRESS ,"address" ,Taddress_t,_param->_size_instruction_address); 70 ALLOC_SIGNAL_IN ( in_ICACHE_REQ_ADDRESS_ADDRESS,"address_address",Taddress_t,_param->_size_instruction_address); 71 ALLOC_SIGNAL_OUT(out_ICACHE_REQ_QUEUE_ADDRESS ,"queue_address" ,Taddress_t,_param->_size_instruction_address); 72 72 } 73 73 … … 87 87 88 88 #ifdef POSITION 89 _component->generate_file(); 89 if (usage_is_set(_usage,USE_POSITION)) 90 _component->generate_file(); 90 91 #endif 91 92 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_unit_Glue/src/Ifetch_unit_Glue_deallocation.cpp
r85 r88 23 23 log_printf(FUNC,Ifetch_unit_Glue,FUNCTION,"Begin"); 24 24 25 if ( _usage & USE_SYSTEMC)25 if (usage_is_set(_usage,USE_SYSTEMC)) 26 26 { 27 27 delete in_CLOCK ; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_unit_Glue/src/Ifetch_unit_Glue_end_cycle.cpp
r81 r88 25 25 26 26 #ifdef STATISTICS 27 _stat->end_cycle(); 27 if (usage_is_set(_usage,USE_STATISTICS)) 28 _stat->end_cycle(); 28 29 #endif 29 30 … … 31 32 // Evaluation before read the ouput signal 32 33 // sc_start(0); 33 _interfaces->testbench(); 34 if (usage_is_set(_usage,USE_VHDL_TESTBENCH)) 35 _interfaces->testbench(); 34 36 #endif 35 37 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_unit_Glue/src/Parameters.cpp
r85 r88 19 19 #undef FUNCTION 20 20 #define FUNCTION "Ifetch_unit_Glue::Parameters" 21 Parameters::Parameters (uint32_t size_address) 21 Parameters::Parameters (uint32_t size_address, 22 bool is_toplevel) 22 23 { 23 24 log_printf(FUNC,Ifetch_unit_Glue,FUNCTION,"Begin"); 24 25 25 _size_address = size_address;26 test(); 26 27 27 test(); 28 if (is_toplevel) 29 { 30 _size_instruction_address = size_address; 31 32 copy (); 33 } 34 28 35 log_printf(FUNC,Ifetch_unit_Glue,FUNCTION,"End"); 29 36 }; … … 46 53 }; 47 54 55 #undef FUNCTION 56 #define FUNCTION "Ifetch_unit_Glue::copy" 57 void Parameters::copy (void) 58 { 59 log_printf(FUNC,Ifetch_unit_Glue,FUNCTION,"Begin"); 60 log_printf(FUNC,Ifetch_unit_Glue,FUNCTION,"End"); 61 }; 62 48 63 }; // end namespace ifetch_unit_glue 49 64 }; // end namespace ifetch_unit -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Core/Multi_Front_end/Front_end/Ifetch_unit/Ifetch_unit_Glue/src/Parameters_print.cpp
r85 r88 27 27 28 28 xml.balise_open("ifetch_unit_glue"); 29 29 // xml.singleton_begin("size_address"); xml.attribut("value",toString(_size_address)); xml.singleton_end(); 30 30 xml.balise_close(); 31 31
Note: See TracChangeset
for help on using the changeset viewer.