- Timestamp:
- Jun 8, 2009, 10:43:30 PM (15 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
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);
Note: See TracChangeset
for help on using the changeset viewer.