Changeset 97 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic
- Timestamp:
- Dec 19, 2008, 4:34:00 PM (16 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Monolithic/src/RegisterFile_Monolithic_vhdl_declaration.cpp
r94 r97 18 18 void RegisterFile_Monolithic::vhdl_declaration (Vhdl * & vhdl) 19 19 { 20 vhdl->set_type ("Tregfile", "array " + std_logic_range(_param->_nb_word,true) + " of " + std_logic(_param->_size_word));20 vhdl->set_type ("Tregfile", "array " + _std_logic_range(_param->_nb_word) + " of " + std_logic(_param->_size_word)); 21 21 22 22 vhdl->set_signal ("reg_DATA", "Tregfile"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/SelfTest/include/test.h
r81 r97 16 16 17 17 #include "Behavioural/Generic/RegisterFile/RegisterFile_Multi_Banked/include/RegisterFile_Multi_Banked.h" 18 #include "Common/include/Time.h" 18 19 19 20 using namespace std; … … 28 29 morpheo::behavioural::generic::registerfile::registerfile_multi_banked::Parameters * param); 29 30 30 31 class Time32 {33 private : timeval time_begin;34 // private : timeval time_end;35 36 public : Time ()37 {38 gettimeofday(&time_begin ,NULL);39 };40 41 public : ~Time ()42 {43 cout << *this;44 };45 46 public : friend ostream& operator<< (ostream& output_stream,47 const Time & x)48 {49 timeval time_end;50 51 gettimeofday(&time_end ,NULL);52 53 uint32_t nb_cycles = static_cast<uint32_t>(sc_simulation_time());54 55 double average = static_cast<double>(nb_cycles) / static_cast<double>(time_end.tv_sec-x.time_begin.tv_sec);56 57 output_stream << nb_cycles << "\t(" << average << " cycles / seconds )" << endl;58 59 return output_stream;60 }61 }; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/SelfTest/include/test.h
r81 r97 15 15 16 16 #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h" 17 #include "Common/include/Time.h" 17 18 18 19 using namespace std; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/SelfTest/src/test.cpp
r88 r97 94 94 95 95 cout << "<" << name << "> Start Simulation ............" << endl; 96 Time * _time = new Time(); 96 97 97 98 if (_param->_nb_entity > (8*sizeof (Tentity_t))) … … 148 149 ********************************************************/ 149 150 151 delete _time; 150 152 cout << "<" << name << "> ............ Stop Simulation" << endl; 151 153 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed.cpp
r88 r97 52 52 53 53 #ifdef VHDL 54 if (usage_is_set(_usage,USE_VHDL) 54 if (usage_is_set(_usage,USE_VHDL)) 55 55 { 56 56 // generate the vhdl
Note: See TracChangeset
for help on using the changeset viewer.