Changeset 123 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic
- Timestamp:
- Jun 8, 2009, 10:43:30 PM (15 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Comparator/src/Comparator_genMealy.cpp
r113 r123 21 21 log_begin(Comparator,FUNCTION); 22 22 23 if (PORT_READ(in_NRESET)) 24 { 23 25 Tcontrol_t test; 24 26 Tdata_t data_0 = PORT_READ(in_COMPARE_DATA_0); … … 71 73 72 74 PORT_WRITE(out_COMPARE_TEST,test); 75 } 73 76 74 77 log_end(Comparator,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Counter/src/Counter_genMealy.cpp
r113 r123 18 18 log_printf(FUNC,Counter,"genMealy","Begin"); 19 19 20 if (PORT_READ(in_NRESET)) 20 21 for (uint32_t i=0; i<_param->_nb_port; i++) 21 22 { -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Queue/src/Queue_genMoore.cpp
r101 r123 20 20 log_printf(FUNC,Queue,FUNCTION,"Begin"); 21 21 22 if (PORT_READ(in_NRESET)) 23 { 22 24 //--------------------------------------------- 23 25 // Output … … 26 28 internal_RETIRE_VAL = not _queue_control->empty(); 27 29 28 PORT_WRITE(out_INSERT_ACK , internal_INSERT_ACK);29 PORT_WRITE(out_RETIRE_VAL , internal_RETIRE_VAL);30 30 PORT_WRITE(out_RETIRE_DATA,_queue_data[(*_queue_control)[0]]); 31 31 … … 49 49 if (_param->_have_port_ptr_read ) 50 50 PORT_WRITE(out_PTR_READ , _queue_control->ptr_pop ()); 51 } 52 else 53 { 54 // Reset 55 internal_INSERT_ACK = 0; 56 internal_RETIRE_VAL = 0; 57 58 for (uint32_t i=0; i<_param->_nb_port_slot; ++i) 59 PORT_WRITE(out_SLOT_VAL [i], 0); 60 } 61 62 // Write output 63 PORT_WRITE(out_INSERT_ACK , internal_INSERT_ACK); 64 PORT_WRITE(out_RETIRE_VAL , internal_RETIRE_VAL); 65 51 66 52 67 log_printf(FUNC,Queue,FUNCTION,"End"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic.cpp
r98 r123 33 33 log_printf(FUNC,RegisterFile_Monolithic,"RegisterFile_Monolithic","Begin"); 34 34 35 #if DEBUG_RegisterFile_Monolithic == true36 log_printf(INFO,RegisterFile_Monolithic,FUNCTION,_("<%s> Parameters"),_name.c_str());35 // #if DEBUG_RegisterFile_Monolithic == true 36 // log_printf(INFO,RegisterFile_Monolithic,FUNCTION,_("<%s> Parameters"),_name.c_str()); 37 37 38 std::cout << *param << std::endl;39 #endif38 // std::cout << *param << std::endl; 39 // #endif 40 40 41 41 log_printf(INFO,RegisterFile_Monolithic,"RegisterFile_Monolithic","Allocation"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_genMealy_read.cpp
r106 r123 22 22 log_function(RegisterFile_Monolithic,FUNCTION,_name.c_str()); 23 23 24 if (PORT_READ(in_NRESET)) 25 { 24 26 for (uint32_t i=0; i<_param->_nb_port_read; i++) 25 27 { … … 73 75 PORT_WRITE(out_READ_WRITE_RDATA[i],data); 74 76 } 77 } 75 78 76 79 log_end(RegisterFile_Monolithic,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/src/RegisterFile_Multi_Banked.cpp
r88 r123 34 34 log_printf(FUNC,RegisterFile_Multi_Banked,FUNCTION,"Begin"); 35 35 36 #if DEBUG_RegisterFile_Multi_Banked == true37 log_printf(INFO,RegisterFile_Multi_Banked,FUNCTION,_("<%s> Parameters"),_name.c_str());36 // #if DEBUG_RegisterFile_Multi_Banked == true 37 // log_printf(INFO,RegisterFile_Multi_Banked,FUNCTION,_("<%s> Parameters"),_name.c_str()); 38 38 39 std::cout << *param << std::endl;40 #endif39 // std::cout << *param << std::endl; 40 // #endif 41 41 42 42 log_printf(INFO,RegisterFile_Multi_Banked,FUNCTION,"Allocation"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/src/RegisterFile_Multi_Banked_full_crossbar_genMealy_read.cpp
r106 r123 23 23 log_begin(RegisterFile_Multi_Banked,FUNCTION); 24 24 log_function(RegisterFile_Multi_Banked,FUNCTION,_name.c_str()); 25 26 if (PORT_READ(in_NRESET)) 27 { 25 28 26 29 bool read_port_use [_param->_nb_bank][_param->_nb_port_read_by_bank]; … … 79 82 PORT_WRITE(out_READ_ACK [i], ack); 80 83 } 84 } 85 else 86 for (uint32_t i=0; i<_param->_nb_port_read; i++) 87 PORT_WRITE(out_READ_ACK [i], false); 81 88 82 89 log_end(RegisterFile_Multi_Banked,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/src/RegisterFile_Multi_Banked_full_crossbar_genMealy_write.cpp
r106 r123 24 24 log_function(RegisterFile_Multi_Banked,FUNCTION,_name.c_str()); 25 25 26 if (PORT_READ(in_NRESET)) 27 { 26 28 bool write_port_use [_param->_nb_bank][_param->_nb_port_write_by_bank]; 27 29 … … 79 81 PORT_WRITE(out_WRITE_ACK [i], ack); 80 82 } 83 } 84 else 85 { 86 for (uint32_t i=0; i<_param->_nb_port_write; i++) 87 { 88 internal_WRITE_VAL [i] = 0; 89 PORT_WRITE(out_WRITE_ACK [i], 0); 90 } 91 } 81 92 82 93 log_end(RegisterFile_Multi_Banked,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/src/RegisterFile_Multi_Banked_partial_crossbar_genMealy_read.cpp
r106 r123 24 24 log_function(RegisterFile_Multi_Banked,FUNCTION,_name.c_str()); 25 25 26 if (PORT_READ(in_NRESET)) 27 { 26 28 bool read_port_use [_param->_nb_bank][_param->_nb_port_read_by_bank]; 27 29 … … 81 83 PORT_WRITE(out_READ_ACK [i], ack); 82 84 } 83 85 } 86 else 87 { 88 for (uint32_t i=0; i<_param->_nb_port_read; i++) 89 PORT_WRITE(out_READ_ACK [i],0); 90 } 84 91 log_end(RegisterFile_Multi_Banked,FUNCTION); 85 92 }; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/src/RegisterFile_Multi_Banked_partial_crossbar_genMealy_write.cpp
r106 r123 24 24 log_function(RegisterFile_Multi_Banked,FUNCTION,_name.c_str()); 25 25 26 if (PORT_READ(in_NRESET)) 27 { 26 28 bool write_port_use [_param->_nb_bank][_param->_nb_port_write_by_bank]; 27 29 for (uint32_t i=0; i<_param->_nb_bank; i++) … … 81 83 PORT_WRITE(out_WRITE_ACK [i], ack); 82 84 } 85 } 86 else 87 { 88 for (uint32_t i=0; i<_param->_nb_port_write; i++) 89 { 90 internal_WRITE_VAL [i] = 0; 91 PORT_WRITE(out_WRITE_ACK [i], 0); 92 } 93 } 83 94 84 95 log_end(RegisterFile_Multi_Banked,FUNCTION); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Shifter/src/Shifter.cpp
r88 r123 32 32 { 33 33 34 #if DEBUG_Shifter == true35 log_printf(INFO,Shifter,FUNCTION,_("<%s> Parameters"),_name.c_str());34 // #if DEBUG_Shifter == true 35 // log_printf(INFO,Shifter,FUNCTION,_("<%s> Parameters"),_name.c_str()); 36 36 37 std::cout << *param << std::endl;38 #endif37 // std::cout << *param << std::endl; 38 // #endif 39 39 40 40 allocation (); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Shifter/src/Shifter_genMealy_shift.cpp
r82 r123 18 18 void Shifter::genMealy_shift (void) 19 19 { 20 if (PORT_READ(in_NRESET)) 20 21 for (uint32_t i=0; i<_param->_nb_port; i++) 21 22 { -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Sort/src/Sort.cpp
r88 r123 35 35 log_printf(FUNC,Sort,FUNCTION,"Begin"); 36 36 37 #if DEBUG_Sort == true38 log_printf(INFO,Sort,FUNCTION,_("<%s> Parameters"),_name.c_str());37 // #if DEBUG_Sort == true 38 // log_printf(INFO,Sort,FUNCTION,_("<%s> Parameters"),_name.c_str()); 39 39 40 std::cout << *param << std::endl;41 #endif40 // std::cout << *param << std::endl; 41 // #endif 42 42 43 43 log_printf(INFO,Sort,FUNCTION,"Allocation"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Sort/src/Sort_genMealy.cpp
r81 r123 21 21 log_printf(FUNC,Sort,FUNCTION,"Begin"); 22 22 23 if (PORT_READ(in_NRESET)) 24 { 23 25 sort_t array [_param->_nb_input]; 24 26 … … 44 46 PORT_WRITE (out_OUTPUT_DATA [i],array[i].data ); 45 47 } 48 } 46 49 47 50 log_printf(FUNC,Sort,FUNCTION,"End"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/Victim_Pseudo_LRU/src/Victim_Pseudo_LRU.cpp
r88 r123 32 32 log_printf(FUNC,Victim_Pseudo_LRU,"Victim_Pseudo_LRU","Begin"); 33 33 34 #if DEBUG_Victim_Pseudo_LRU == true35 log_printf(INFO,Victim_Pseudo_LRU,FUNCTION,_("<%s> Parameters"),_name.c_str());34 // #if DEBUG_Victim_Pseudo_LRU == true 35 // log_printf(INFO,Victim_Pseudo_LRU,FUNCTION,_("<%s> Parameters"),_name.c_str()); 36 36 37 std::cout << *param << std::endl;38 #endif37 // std::cout << *param << std::endl; 38 // #endif 39 39 40 40 log_printf(TRACE,Victim_Pseudo_LRU,"Victim_Pseudo_LRU","Allocation"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/Victim_Pseudo_LRU/src/Victim_Pseudo_LRU_genMealy.cpp
r88 r123 17 17 void Victim_Pseudo_LRU::genMealy (void) 18 18 { 19 if (PORT_READ(in_NRESET)) 19 20 for (uint32_t i=0; i<_param->_nb_access; i++) 20 21 { -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Victim/Victim_Pseudo_LRU/src/Victim_Pseudo_LRU_transition.cpp
r81 r123 22 22 { 23 23 Taddress_t address = (_param->_size_table>1)?PORT_READ(in_ACCESS_ADDRESS[i]):0; 24 Tentity_t entity ;24 Tentity_t entity = 0; 25 25 26 26 if (PORT_READ(in_ACCESS_HIT [i]))
Note: See TracChangeset
for help on using the changeset viewer.