Changeset 75 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic
- Timestamp:
- Jan 31, 2008, 6:46:41 PM (16 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic
- Files:
-
- 1 deleted
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/include/Parameters.h
r62 r75 37 37 public : ~Parameters () ; 38 38 39 public : string msg_error (void); 40 41 public : string print (uint32_t depth); 42 public : friend ostream& operator<< (ostream& output_stream, 43 morpheo::behavioural::generic::registerfile::registerfile_monolithic::Parameters & x); 39 public : std::string msg_error (void); 40 public : std::string print (uint32_t depth); 41 public : friend std::ostream& operator<< (std::ostream& output_stream, 42 morpheo::behavioural::generic::registerfile::registerfile_monolithic::Parameters & x); 44 43 }; 45 44 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/include/RegisterFile_Monolithic.h
r71 r75 16 16 #include "Common/include/ToString.h" 17 17 #include <iostream> 18 using namespace std;19 18 20 19 #include "Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/include/Parameters.h" … … 28 27 #endif 29 28 #include "Behavioural/include/Usage.h" 30 31 using namespace std;32 29 33 30 namespace morpheo { … … 46 43 // -----[ fields ]---------------------------------------------------- 47 44 // Parameters 48 protected : const st ring _name;45 protected : const std::string _name; 49 46 protected : const Parameters * _param; 50 47 private : const Tusage_t _usage; 51 48 52 49 #ifdef STATISTICS 53 p rivate: Stat * _stat;50 public : Stat * _stat; 54 51 55 52 private : counter_t * _stat_nb_read; … … 106 103 sc_module_name name 107 104 #else 108 st ring name105 std::string name 109 106 #endif 110 107 #ifdef STATISTICS … … 128 125 #ifdef STATISTICS 129 126 public : void statistics_declaration (morpheo::behavioural::Parameters_Statistics * param_statistics); 130 public : string statistics_print (uint32_t depth);131 127 #endif 132 128 … … 137 133 #endif 138 134 135 #if defined(STATISTICS) or defined(VHDL_TESTBENCH) 139 136 private : void end_cycle (void); 140 137 #endif 141 138 }; 142 139 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/Parameters_msg_error.cpp
r62 r75 10 10 #include "Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/include/Types.h" 11 11 #include <sstream> 12 using namespace std;13 12 14 13 namespace morpheo { … … 18 17 namespace registerfile_monolithic { 19 18 20 st ring Parameters::msg_error(void)19 std::string Parameters::msg_error(void) 21 20 { 22 st ring msg = "";21 std::string msg = ""; 23 22 24 23 if ((8*sizeof(Tdata_t)) < _size_word) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/Parameters_print.cpp
r55 r75 8 8 #include <stdint.h> 9 9 #include "Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/include/Parameters.h" 10 #include <sstream> 11 using namespace std; 10 #include "Behavioural/include/XML.h" 12 11 13 12 namespace morpheo { … … 17 16 namespace registerfile_monolithic { 18 17 19 st ring Parameters::print (uint32_t depth)18 std::string Parameters::print (uint32_t depth) 20 19 { 21 string tab = string(depth,'\t');22 ostringstream msg; 23 msg << tab << "<registerfile_monolithic>" << endl24 << tab << "\t<nb_port_read value=\"" << _nb_port_read << "\" />" << endl 25 << tab << "\t<nb_port_write value=\"" << _nb_port_write << "\" />" << endl 26 << tab << "\t<nb_port_read_write value=\"" << _nb_port_read_write << "\" />" << endl 27 << tab << "\t<nb_word value=\"" << _nb_word << "\" />" << endl 28 << tab << "\t<size_word value=\"" << _size_word << "\" />" << endl 29 << tab << "</registerfile_monolithic>" << endl;30 31 return msg.str();20 XML xml ("registerfile_monolithic"); 21 22 xml.balise_open("registerfile_monolithic"); 23 xml.singleton_begin("nb_port_read "); xml.attribut("value",toString(_nb_port_read )); xml.singleton_end(); 24 xml.singleton_begin("nb_port_write "); xml.attribut("value",toString(_nb_port_write )); xml.singleton_end(); 25 xml.singleton_begin("nb_port_read_write"); xml.attribut("value",toString(_nb_port_read_write)); xml.singleton_end(); 26 xml.singleton_begin("nb_word "); xml.attribut("value",toString(_nb_word )); xml.singleton_end(); 27 xml.singleton_begin("size_word "); xml.attribut("value",toString(_size_word )); xml.singleton_end(); 28 xml.balise_close(); 29 30 return xml.get_body(depth); 32 31 }; 33 32 34 ostream& operator<< (ostream& output_stream ,35 33 std::ostream& operator<< (std::ostream& output_stream , 34 morpheo::behavioural::generic::registerfile::registerfile_monolithic::Parameters & x) 36 35 { 37 36 output_stream << x.print(0); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic.cpp
r71 r75 19 19 sc_module_name name, 20 20 #else 21 st ring name ,21 std::string name , 22 22 #endif 23 23 #ifdef STATISTICS … … 37 37 38 38 #ifdef STATISTICS 39 statistics_declaration(param_statistics); 39 if (_usage & USE_STATISTICS) 40 statistics_declaration(param_statistics); 40 41 #endif 41 42 … … 102 103 #ifdef STATISTICS 103 104 if (_usage & USE_STATISTICS) 104 { 105 delete _stat; 106 } 105 delete _stat; 107 106 #endif 108 107 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_allocation.cpp
r62 r75 124 124 for (uint32_t i=0; i<_param->_nb_word; i++) 125 125 { 126 st ring rename = "reg_DATA[" + toString(i) + "]";126 std::string rename = "reg_DATA[" + toString(i) + "]"; 127 127 reg_DATA [i] = new SC_REGISTER (Tdata_t) (rename.c_str()); 128 128 } -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_end_cycle.cpp
r71 r75 1 #if defined(STATISTICS) or defined(VHDL_TESTBENCH) 1 2 /* 2 3 * $Id$ … … 37 38 }; // end namespace behavioural 38 39 }; // end namespace morpheo 40 #endif -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_statistics_declaration.cpp
r71 r75 17 17 void RegisterFile_Monolithic::statistics_declaration (morpheo::behavioural::Parameters_Statistics * param_statistics) 18 18 { 19 _stat = new Stat (static_cast<st ring>(_name),19 _stat = new Stat (static_cast<std::string>(_name), 20 20 "RegisterFile_Monolithic", 21 21 param_statistics); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_transition.cpp
r71 r75 79 79 #endif 80 80 81 #if defined(STATISTICS) or defined(VHDL_TESTBENCH) 81 82 end_cycle(); 82 83 #endif 83 84 log_printf(FUNC,RegisterFile,"transition","End"); 84 85 }; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_vhdl_body.cpp
r62 r75 38 38 for (uint32_t i = 0; i < _param->_nb_port_read; i++) 39 39 { 40 st ring str_address;40 std::string str_address; 41 41 if (_param->_have_port_address) 42 42 str_address = "conv_integer(in_READ_"+toString(i)+"_ADDRESS)"; … … 48 48 for (uint32_t i = 0; i < _param->_nb_port_read_write; i++) 49 49 { 50 st ring str_address;50 std::string str_address; 51 51 if (_param->_have_port_address) 52 52 str_address = "conv_integer(in_READ_WRITE_"+toString(i)+"_ADDRESS)"; … … 68 68 for (uint32_t i = 0; i < _param->_nb_port_write; i++) 69 69 { 70 st ring str_address;70 std::string str_address; 71 71 if (_param->_have_port_address) 72 72 str_address = "conv_integer(in_WRITE_"+toString(i)+"_ADDRESS)"; … … 80 80 for (uint32_t i = 0; i < _param->_nb_port_read_write; i++) 81 81 { 82 st ring str_address;82 std::string str_address; 83 83 if (_param->_have_port_address) 84 84 str_address = "conv_integer(in_READ_WRITE_"+toString(i)+"_ADDRESS)";
Note: See TracChangeset
for help on using the changeset viewer.