Changeset 15 for trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src
- Timestamp:
- Apr 5, 2007, 4:17:30 PM (17 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src
- Files:
-
- 19 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Parameters.cpp
r10 r15 6 6 */ 7 7 8 #include "Behavioural/Generic/Select/ Priority_Fixed/include/Parameters.h"8 #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Parameters.h" 9 9 10 10 namespace morpheo { … … 12 12 namespace generic { 13 13 namespace select { 14 namespace priority_fixed {14 namespace select_priority_fixed { 15 15 16 16 … … 23 23 _size_entity (static_cast<uint32_t> (ceil(log2(nb_entity)))) 24 24 { 25 log_printf(FUNC, Priority_Fixed,"Parameters","Begin");25 log_printf(FUNC,Select_Priority_Fixed,"Parameters","Begin"); 26 26 test(); 27 log_printf(FUNC, Priority_Fixed,"Parameters","End");27 log_printf(FUNC,Select_Priority_Fixed,"Parameters","End"); 28 28 }; 29 29 … … 34 34 _size_entity (param._size_entity ) 35 35 { 36 log_printf(FUNC, Priority_Fixed,"Parameters","Begin");36 log_printf(FUNC,Select_Priority_Fixed,"Parameters","Begin"); 37 37 test(); 38 log_printf(FUNC, Priority_Fixed,"Parameters","End");38 log_printf(FUNC,Select_Priority_Fixed,"Parameters","End"); 39 39 }; 40 40 41 41 Parameters::~Parameters () 42 42 { 43 log_printf(FUNC, Priority_Fixed,"~Parameters","Begin");44 log_printf(FUNC, Priority_Fixed,"~Parameters","End");43 log_printf(FUNC,Select_Priority_Fixed,"~Parameters","Begin"); 44 log_printf(FUNC,Select_Priority_Fixed,"~Parameters","End"); 45 45 }; 46 46 47 }; // end namespace priority_fixed47 }; // end namespace select_priority_fixed 48 48 }; // end namespace select 49 49 }; // end namespace generic -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Parameters_msg_error.cpp
r10 r15 6 6 */ 7 7 8 #include "Behavioural/Generic/Select/ Priority_Fixed/include/Parameters.h"9 #include "Behavioural/Generic/Select/ Priority_Fixed/include/Types.h"8 #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Parameters.h" 9 #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Types.h" 10 10 #include <sstream> 11 11 using namespace std; … … 15 15 namespace generic { 16 16 namespace select { 17 namespace priority_fixed {17 namespace select_priority_fixed { 18 18 19 19 20 20 string Parameters::msg_error(void) 21 21 { 22 log_printf(FUNC, Priority_Fixed,"msg_error","Begin");22 log_printf(FUNC,Select_Priority_Fixed,"msg_error","Begin"); 23 23 24 24 string msg = ""; … … 33 33 return msg; 34 34 35 log_printf(FUNC, Priority_Fixed,"msg_error","End");35 log_printf(FUNC,Select_Priority_Fixed,"msg_error","End"); 36 36 }; 37 37 38 }; // end namespace priority_fixed38 }; // end namespace select_priority_fixed 39 39 }; // end namespace select 40 40 }; // end namespace generic -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Parameters_print.cpp
r10 r15 6 6 */ 7 7 8 #include "Behavioural/Generic/Select/ Priority_Fixed/include/Parameters.h"8 #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Parameters.h" 9 9 #include "Behavioural/include/XML.h" 10 10 using namespace std; … … 14 14 namespace generic { 15 15 namespace select { 16 namespace priority_fixed {16 namespace select_priority_fixed { 17 17 18 18 string Parameters::print (uint32_t depth) 19 19 { 20 log_printf(FUNC, Priority_Fixed,"print","Begin");20 log_printf(FUNC,Select_Priority_Fixed,"print","Begin"); 21 21 22 XML xml (" priority_fixed");22 XML xml ("select_priority_fixed"); 23 23 24 xml.balise_open(" priority_fixed");24 xml.balise_open("select_priority_fixed"); 25 25 xml.singleton_begin("nb_entity "); xml.attribut("value",toString(_nb_entity )); xml.singleton_end(); 26 26 xml.singleton_begin("encoding_one_hot"); xml.attribut("value",toString(_encoding_one_hot)); xml.singleton_end(); … … 28 28 xml.balise_close(); 29 29 30 log_printf(FUNC, Priority_Fixed,"print","End");30 log_printf(FUNC,Select_Priority_Fixed,"print","End"); 31 31 32 32 return xml.get_body(depth); … … 34 34 35 35 ostream& operator<< (ostream& output_stream , 36 morpheo::behavioural::generic::select:: priority_fixed::Parameters & x)36 morpheo::behavioural::generic::select::select_priority_fixed::Parameters & x) 37 37 { 38 38 output_stream << x.print(0); … … 41 41 }; 42 42 43 }; // end namespace priority_fixed43 }; // end namespace select_priority_fixed 44 44 }; // end namespace select 45 45 }; // end namespace generic -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed.cpp
r10 r15 6 6 */ 7 7 8 #include "Behavioural/Generic/Select/ Priority_Fixed/include/Priority_Fixed.h"8 #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h" 9 9 10 10 namespace morpheo { … … 12 12 namespace generic { 13 13 namespace select { 14 namespace priority_fixed {14 namespace select_priority_fixed { 15 15 16 16 17 17 #ifdef SYSTEMC 18 Priority_Fixed::Priority_Fixed (sc_module_name name,18 Select_Priority_Fixed::Select_Priority_Fixed (sc_module_name name, 19 19 #else 20 Priority_Fixed::Priority_Fixed (string name,20 Select_Priority_Fixed::Select_Priority_Fixed (string name, 21 21 #endif 22 22 #ifdef STATISTICS 23 23 morpheo::behavioural::Parameters_Statistics param_statistics, 24 24 #endif 25 morpheo::behavioural::generic::select:: priority_fixed::Parameters param ):25 morpheo::behavioural::generic::select::select_priority_fixed::Parameters param ): 26 26 _name (name) 27 27 ,_param (param) … … 30 30 // #endif 31 31 { 32 log_printf(FUNC, Priority_Fixed,"Priority_Fixed","Begin");32 log_printf(FUNC,Select_Priority_Fixed,"Select_Priority_Fixed","Begin"); 33 33 34 34 #ifdef STATISTICS 35 log_printf(INFO, Priority_Fixed,"Priority_Fixed","Allocation of statistics");35 log_printf(INFO,Select_Priority_Fixed,"Select_Priority_Fixed","Allocation of statistics"); 36 36 37 37 // Allocation of statistics … … 42 42 43 43 #ifdef VHDL_TESTBENCH 44 log_printf(INFO, Priority_Fixed,"Priority_Fixed","Creation of a testbench");44 log_printf(INFO,Select_Priority_Fixed,"Select_Priority_Fixed","Creation of a testbench"); 45 45 46 46 // Creation of a testbench … … 53 53 #ifdef VHDL 54 54 // generate the vhdl 55 log_printf(INFO, Priority_Fixed,"Priority_Fixed","Generate the vhdl");55 log_printf(INFO,Select_Priority_Fixed,"Select_Priority_Fixed","Generate the vhdl"); 56 56 57 57 vhdl(); … … 59 59 60 60 #ifdef VHDL_TESTBENCH 61 _vhdl_testbench->set_clock ("in_CLOCK", false);61 _vhdl_testbench->set_clock ("in_CLOCK",true); 62 62 #endif 63 63 64 64 #ifdef SYSTEMC 65 log_printf(INFO, Priority_Fixed,"Priority_Fixed","Allocation");65 log_printf(INFO,Select_Priority_Fixed,"Select_Priority_Fixed","Allocation"); 66 66 67 67 allocation (); 68 68 69 69 #if defined(STATISTICS) or defined(VHDL_TESTBENCH) 70 log_printf(INFO, Priority_Fixed,"Priority_Fixed","Method - transition");70 log_printf(INFO,Select_Priority_Fixed,"Select_Priority_Fixed","Method - transition"); 71 71 72 72 SC_METHOD (transition); … … 75 75 #endif 76 76 77 log_printf(INFO, Priority_Fixed,"Priority_Fixed","Method - genMealy_entity");77 log_printf(INFO,Select_Priority_Fixed,"Select_Priority_Fixed","Method - genMealy_entity"); 78 78 79 79 SC_METHOD (genMealy_entity); … … 100 100 101 101 #endif 102 log_printf(FUNC, Priority_Fixed,"Priority_Fixed","End");102 log_printf(FUNC,Select_Priority_Fixed,"Select_Priority_Fixed","End"); 103 103 }; 104 104 105 Priority_Fixed::~Priority_Fixed (void)105 Select_Priority_Fixed::~Select_Priority_Fixed (void) 106 106 { 107 log_printf(FUNC, Priority_Fixed,"~Priority_Fixed","Begin");107 log_printf(FUNC,Select_Priority_Fixed,"~Select_Priority_Fixed","Begin"); 108 108 109 109 #ifdef VHDL_TESTBENCH 110 log_printf(INFO, Priority_Fixed,"~Priority_Fixed","Generate Testbench file");110 log_printf(INFO,Select_Priority_Fixed,"~Select_Priority_Fixed","Generate Testbench file"); 111 111 112 112 // generate the test bench … … 116 116 117 117 #ifdef STATISTICS 118 log_printf(INFO, Priority_Fixed,"~Priority_Fixed","Generate Statistics file");118 log_printf(INFO,Select_Priority_Fixed,"~Select_Priority_Fixed","Generate Statistics file"); 119 119 120 120 _stat->generate_file(statistics(0)); … … 124 124 125 125 #ifdef SYSTEMC 126 log_printf(INFO, Priority_Fixed,"~Priority_Fixed","Deallocation");126 log_printf(INFO,Select_Priority_Fixed,"~Select_Priority_Fixed","Deallocation"); 127 127 128 128 deallocation (); 129 129 #endif 130 130 131 log_printf(FUNC, Priority_Fixed,"~Priority_Fixed","End");131 log_printf(FUNC,Select_Priority_Fixed,"~Select_Priority_Fixed","End"); 132 132 }; 133 133 134 }; // end namespace priority_fixed134 }; // end namespace select_priority_fixed 135 135 }; // end namespace select 136 136 }; // end namespace generic -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_allocation.cpp
r10 r15 7 7 */ 8 8 9 #include "Behavioural/Generic/Select/ Priority_Fixed/include/Priority_Fixed.h"9 #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h" 10 10 11 11 namespace morpheo { … … 13 13 namespace generic { 14 14 namespace select { 15 namespace priority_fixed {15 namespace select_priority_fixed { 16 16 17 17 18 void Priority_Fixed::allocation (void)18 void Select_Priority_Fixed::allocation (void) 19 19 { 20 20 string rename; 21 21 22 log_printf(FUNC, Priority_Fixed,"allocation","Begin");22 log_printf(FUNC,Select_Priority_Fixed,"allocation","Begin"); 23 23 24 #if defined(STATISTICS) or defined(VHDL_TESTBENCH) 25 in_CLOCK = new SC_CLOCK ("in_CLOCK"); 26 #endif 27 24 in_CLOCK = new SC_CLOCK ("in_CLOCK "); 25 in_NRESET = new SC_IN (Tcontrol_t) ("in_NRESET"); 26 28 27 in_VAL = new SC_IN (Tcontrol_t) * [_param._nb_entity]; 29 28 if (_param._encoding_one_hot) … … 49 48 // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 50 49 51 log_printf(FUNC, Priority_Fixed,"allocation","End");50 log_printf(FUNC,Select_Priority_Fixed,"allocation","End"); 52 51 }; 53 52 54 }; // end namespace priority_fixed53 }; // end namespace select_priority_fixed 55 54 }; // end namespace select 56 55 }; // end namespace generic -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_deallocation.cpp
r10 r15 7 7 */ 8 8 9 #include "Behavioural/Generic/Select/ Priority_Fixed/include/Priority_Fixed.h"9 #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h" 10 10 11 11 namespace morpheo { … … 13 13 namespace generic { 14 14 namespace select { 15 namespace priority_fixed {15 namespace select_priority_fixed { 16 16 17 17 18 void Priority_Fixed::deallocation (void)18 void Select_Priority_Fixed::deallocation (void) 19 19 { 20 log_printf(FUNC, Priority_Fixed,"deallocation","Begin");20 log_printf(FUNC,Select_Priority_Fixed,"deallocation","Begin"); 21 21 22 //#if defined(STATISTICS) or defined(VHDL_TESTBENCH)23 22 delete in_CLOCK; 24 //#endif 23 delete in_NRESET; 25 24 26 25 for (uint32_t i=0; i<_param._nb_entity; i++) … … 41 40 // ~~~~~[ Component ]~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 42 41 43 log_printf(FUNC, Priority_Fixed,"deallocation","End");42 log_printf(FUNC,Select_Priority_Fixed,"deallocation","End"); 44 43 }; 45 44 46 }; // end namespace priority_fixed45 }; // end namespace select_priority_fixed 47 46 }; // end namespace select 48 47 }; // end namespace generic -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_genMealy_entity.cpp
r10 r15 8 8 */ 9 9 10 #include "Behavioural/Generic/Select/ Priority_Fixed/include/Priority_Fixed.h"10 #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h" 11 11 12 12 namespace morpheo { … … 14 14 namespace generic { 15 15 namespace select { 16 namespace priority_fixed {16 namespace select_priority_fixed { 17 17 18 18 19 void Priority_Fixed::genMealy_entity (void)19 void Select_Priority_Fixed::genMealy_entity (void) 20 20 { 21 log_printf(FUNC, Priority_Fixed,"genMealy_entity","Begin");21 log_printf(FUNC,Select_Priority_Fixed,"genMealy_entity","Begin"); 22 22 23 23 // init … … 31 31 ack [i] = 0; 32 32 33 log_printf(TRACE, Priority_Fixed,"genMealy_entity","Scearch...");33 log_printf(TRACE,Select_Priority_Fixed,"genMealy_entity","Scearch..."); 34 34 for (entity=0; entity<_param._nb_entity; entity++) 35 35 { 36 36 if (PORT_READ(in_VAL [entity]) == 1) 37 37 { 38 log_printf(TRACE, Priority_Fixed,"genMealy_entity","Find! entity %d",entity);38 log_printf(TRACE,Select_Priority_Fixed,"genMealy_entity","Find! entity %d",entity); 39 39 if (_param._encoding_one_hot) 40 40 ack [entity] = 1; … … 54 54 PORT_WRITE(out_ENTITY_ACK, find ); 55 55 } 56 log_printf(FUNC, Priority_Fixed,"genMealy_entity","End");56 log_printf(FUNC,Select_Priority_Fixed,"genMealy_entity","End"); 57 57 }; 58 58 59 }; // end namespace priority_fixed59 }; // end namespace select_priority_fixed 60 60 }; // end namespace select 61 61 }; // end namespace generic -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_statistics.cpp
r10 r15 7 7 */ 8 8 9 #include "Behavioural/Generic/Select/ Priority_Fixed/include/Priority_Fixed.h"9 #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h" 10 10 11 11 namespace morpheo { … … 13 13 namespace generic { 14 14 namespace select { 15 namespace priority_fixed {15 namespace select_priority_fixed { 16 16 17 17 18 string Priority_Fixed::statistics (uint32_t depth)18 string Select_Priority_Fixed::statistics (uint32_t depth) 19 19 { 20 log_printf(FUNC, Priority_Fixed,"statistics","Begin");20 log_printf(FUNC,Select_Priority_Fixed,"statistics","Begin"); 21 21 22 22 string txt = _stat->print(depth); 23 23 24 log_printf(FUNC, Priority_Fixed,"statistics","End");24 log_printf(FUNC,Select_Priority_Fixed,"statistics","End"); 25 25 26 26 return txt; 27 27 }; 28 28 29 }; // end namespace priority_fixed29 }; // end namespace select_priority_fixed 30 30 }; // end namespace select 31 31 }; // end namespace generic -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_transition.cpp
r10 r15 8 8 */ 9 9 10 #include "Behavioural/Generic/Select/ Priority_Fixed/include/Priority_Fixed.h"10 #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h" 11 11 12 12 namespace morpheo { … … 14 14 namespace generic { 15 15 namespace select { 16 namespace priority_fixed {16 namespace select_priority_fixed { 17 17 18 18 19 void Priority_Fixed::transition (void)19 void Select_Priority_Fixed::transition (void) 20 20 { 21 log_printf(FUNC, Priority_Fixed,"transition","Begin");21 log_printf(FUNC,Select_Priority_Fixed,"transition","Begin"); 22 22 23 23 #ifdef STATISTICS … … 29 29 #endif 30 30 31 log_printf(FUNC, Priority_Fixed,"transition","End");31 log_printf(FUNC,Select_Priority_Fixed,"transition","End"); 32 32 }; 33 33 34 }; // end namespace priority_fixed34 }; // end namespace select_priority_fixed 35 35 }; // end namespace select 36 36 }; // end namespace generic -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_vhdl.cpp
r10 r15 7 7 */ 8 8 9 #include "Behavioural/Generic/Select/ Priority_Fixed/include/Priority_Fixed.h"9 #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h" 10 10 #include "Behavioural/include/Vhdl.h" 11 11 … … 14 14 namespace generic { 15 15 namespace select { 16 namespace priority_fixed {16 namespace select_priority_fixed { 17 17 18 18 19 void Priority_Fixed::vhdl (void)19 void Select_Priority_Fixed::vhdl (void) 20 20 { 21 log_printf(FUNC, Priority_Fixed,"vhdl","Begin");21 log_printf(FUNC,Select_Priority_Fixed,"vhdl","Begin"); 22 22 Vhdl vhdl (_name); 23 23 … … 29 29 30 30 vhdl.generate_file(); 31 log_printf(FUNC, Priority_Fixed,"vhdl","End");31 log_printf(FUNC,Select_Priority_Fixed,"vhdl","End"); 32 32 33 33 }; 34 34 35 }; // end namespace priority_fixed35 }; // end namespace select_priority_fixed 36 36 }; // end namespace select 37 37 }; // end namespace generic -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_vhdl_body.cpp
r10 r15 7 7 */ 8 8 9 #include "Behavioural/Generic/Select/ Priority_Fixed/include/Priority_Fixed.h"9 #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h" 10 10 11 11 namespace morpheo { … … 13 13 namespace generic { 14 14 namespace select { 15 namespace priority_fixed {15 namespace select_priority_fixed { 16 16 17 17 18 void Priority_Fixed::vhdl_body (Vhdl & vhdl)18 void Select_Priority_Fixed::vhdl_body (Vhdl & vhdl) 19 19 { 20 log_printf(FUNC, Priority_Fixed,"vhdl_body","Begin");20 log_printf(FUNC,Select_Priority_Fixed,"vhdl_body","Begin"); 21 21 vhdl.set_body (""); 22 22 … … 42 42 } 43 43 44 log_printf(FUNC, Priority_Fixed,"vhdl_body","End");44 log_printf(FUNC,Select_Priority_Fixed,"vhdl_body","End"); 45 45 }; 46 46 47 }; // end namespace priority_fixed47 }; // end namespace select_priority_fixed 48 48 }; // end namespace select 49 49 }; // end namespace generic -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_vhdl_declaration.cpp
r10 r15 7 7 */ 8 8 9 #include "Behavioural/Generic/Select/ Priority_Fixed/include/Priority_Fixed.h"9 #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h" 10 10 11 11 namespace morpheo { … … 13 13 namespace generic { 14 14 namespace select { 15 namespace priority_fixed {15 namespace select_priority_fixed { 16 16 17 17 18 void Priority_Fixed::vhdl_declaration (Vhdl & vhdl)18 void Select_Priority_Fixed::vhdl_declaration (Vhdl & vhdl) 19 19 { 20 log_printf(FUNC, Priority_Fixed,"vhdl_declaration","Begin");20 log_printf(FUNC,Select_Priority_Fixed,"vhdl_declaration","Begin"); 21 21 22 22 vhdl.set_signal("internal_entity",_param._size_entity+1); 23 23 24 log_printf(FUNC, Priority_Fixed,"vhdl_declaration","End");24 log_printf(FUNC,Select_Priority_Fixed,"vhdl_declaration","End"); 25 25 }; 26 26 27 }; // end namespace priority_fixed27 }; // end namespace select_priority_fixed 28 28 }; // end namespace select 29 29 }; // end namespace generic -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_vhdl_port.cpp
r10 r15 7 7 */ 8 8 9 #include "Behavioural/Generic/Select/ Priority_Fixed/include/Priority_Fixed.h"9 #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h" 10 10 11 11 #ifdef VHDL_TESTBENCH … … 19 19 namespace generic { 20 20 namespace select { 21 namespace priority_fixed {21 namespace select_priority_fixed { 22 22 23 23 24 void Priority_Fixed::vhdl_port (Vhdl & vhdl)24 void Select_Priority_Fixed::vhdl_port (Vhdl & vhdl) 25 25 { 26 log_printf(FUNC, Priority_Fixed,"vhdl_port","Begin");26 log_printf(FUNC,Select_Priority_Fixed,"vhdl_port","Begin"); 27 27 28 vhdl.set_port (" in_CLOCK ", IN, 1); 29 VHDL_SET_PORT (" in_NRESET", IN, 1); 30 28 31 for (uint32_t i=0; i<_param._nb_entity; i++) 29 32 { … … 37 40 VHDL_SET_PORT ("out_ENTITY_ACK",OUT,1); 38 41 } 39 log_printf(FUNC, Priority_Fixed,"vhdl_port","End");42 log_printf(FUNC,Select_Priority_Fixed,"vhdl_port","End"); 40 43 }; 41 44 42 }; // end namespace priority_fixed45 }; // end namespace select_priority_fixed 43 46 }; // end namespace select 44 47 }; // end namespace generic -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_vhdl_testbench_label.cpp
r10 r15 6 6 */ 7 7 8 #include "Behavioural/Generic/Select/ Priority_Fixed/include/Priority_Fixed.h"8 #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h" 9 9 10 10 namespace morpheo { … … 12 12 namespace generic { 13 13 namespace select { 14 namespace priority_fixed {14 namespace select_priority_fixed { 15 15 16 16 17 void Priority_Fixed::vhdl_testbench_label (string label)17 void Select_Priority_Fixed::vhdl_testbench_label (string label) 18 18 { 19 log_printf(FUNC, Priority_Fixed,"vhdl_testbench_label","Begin");19 log_printf(FUNC,Select_Priority_Fixed,"vhdl_testbench_label","Begin"); 20 20 21 21 #ifdef VHDL_TESTBENCH … … 23 23 #endif 24 24 25 log_printf(FUNC, Priority_Fixed,"vhdl_testbench_label","End");25 log_printf(FUNC,Select_Priority_Fixed,"vhdl_testbench_label","End"); 26 26 }; 27 27 28 }; // end namespace priority_fixed28 }; // end namespace select_priority_fixed 29 29 }; // end namespace select 30 30 }; // end namespace generic -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Select_Priority_Fixed_vhdl_testbench_transition.cpp
r10 r15 7 7 */ 8 8 9 #include "Behavioural/Generic/Select/ Priority_Fixed/include/Priority_Fixed.h"9 #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Select_Priority_Fixed.h" 10 10 11 11 namespace morpheo { … … 13 13 namespace generic { 14 14 namespace select { 15 namespace priority_fixed {15 namespace select_priority_fixed { 16 16 17 17 18 void Priority_Fixed::vhdl_testbench_transition ()18 void Select_Priority_Fixed::vhdl_testbench_transition () 19 19 { 20 log_printf(FUNC, Priority_Fixed,"vhdl_testbench_transition","Begin");20 log_printf(FUNC,Select_Priority_Fixed,"vhdl_testbench_transition","Begin"); 21 21 22 22 // Evaluation before read the ouput signal 23 23 sc_start(0); 24 24 25 // In order with file Priority_Fixed_vhdl_testbench_port.cpp25 // In order with file Select_Priority_Fixed_vhdl_testbench_port.cpp 26 26 // Warning : if a output depend of a subcomponent, take directly the port of subcomponent 27 27 // (because we have no control on the ordonnancer's policy) 28 28 29 _vhdl_testbench->add_input (PORT_READ( in_NRESET)); 30 29 31 for (uint32_t i=0; i<_param._nb_entity; i++) 30 32 { … … 46 48 _vhdl_testbench->new_cycle (); // always at the end 47 49 48 log_printf(FUNC, Priority_Fixed,"vhdl_testbench_transition","End");50 log_printf(FUNC,Select_Priority_Fixed,"vhdl_testbench_transition","End"); 49 51 }; 50 52 51 }; // end namespace priority_fixed53 }; // end namespace select_priority_fixed 52 54 }; // end namespace select 53 55 }; // end namespace generic -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Statistics.cpp
r10 r15 7 7 */ 8 8 9 #include "Behavioural/Generic/Select/ Priority_Fixed/include/Statistics.h"9 #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Statistics.h" 10 10 11 11 namespace morpheo { … … 13 13 namespace generic { 14 14 namespace select { 15 namespace priority_fixed {15 namespace select_priority_fixed { 16 16 17 17 … … 24 24 _parameters(parameters) 25 25 { 26 log_printf(FUNC, Priority_Fixed,"Statistics","Begin");27 log_printf(FUNC, Priority_Fixed,"Statistics","End");26 log_printf(FUNC,Select_Priority_Fixed,"Statistics","Begin"); 27 log_printf(FUNC,Select_Priority_Fixed,"Statistics","End"); 28 28 }; 29 29 30 30 Statistics::~Statistics () 31 31 { 32 log_printf(FUNC, Priority_Fixed,"~Statistics","Begin");33 log_printf(FUNC, Priority_Fixed,"~Statistics","End");32 log_printf(FUNC,Select_Priority_Fixed,"~Statistics","Begin"); 33 log_printf(FUNC,Select_Priority_Fixed,"~Statistics","End"); 34 34 }; 35 35 36 }; // end namespace priority_fixed36 }; // end namespace select_priority_fixed 37 37 }; // end namespace select 38 38 }; // end namespace generic -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Statistics_add.cpp
r10 r15 7 7 */ 8 8 9 #include "Behavioural/Generic/Select/ Priority_Fixed/include/Statistics.h"9 #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Statistics.h" 10 10 11 11 #include <sstream> … … 16 16 namespace generic { 17 17 namespace select { 18 namespace priority_fixed {18 namespace select_priority_fixed { 19 19 20 20 21 21 void Statistics::add () 22 22 { 23 log_printf(FUNC, Priority_Fixed,"add","Begin");24 log_printf(FUNC, Priority_Fixed,"add","End");23 log_printf(FUNC,Select_Priority_Fixed,"add","Begin"); 24 log_printf(FUNC,Select_Priority_Fixed,"add","End"); 25 25 }; 26 26 27 }; // end namespace priority_fixed27 }; // end namespace select_priority_fixed 28 28 }; // end namespace select 29 29 }; // end namespace generic -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Statistics_print.cpp
r10 r15 7 7 */ 8 8 9 #include "Behavioural/Generic/Select/ Priority_Fixed/include/Statistics.h"9 #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Statistics.h" 10 10 11 11 #include <sstream> … … 16 16 namespace generic { 17 17 namespace select { 18 namespace priority_fixed {18 namespace select_priority_fixed { 19 19 20 20 21 21 string Statistics::print (uint32_t depth) 22 22 { 23 log_printf(FUNC, Priority_Fixed,"print","Begin");23 log_printf(FUNC,Select_Priority_Fixed,"print","Begin"); 24 24 25 25 string tab = string(depth,'\t'); 26 26 ostringstream msg; 27 27 28 msg << tab << "< priority_fixed name=\"" << _name << "\" >" << endl28 msg << tab << "<select_priority_fixed name=\"" << _name << "\" >" << endl 29 29 << print_body(depth+1) << endl 30 << tab << "</ priority_fixed>" << endl;30 << tab << "</select_priority_fixed>" << endl; 31 31 32 log_printf(FUNC, Priority_Fixed,"print","End");32 log_printf(FUNC,Select_Priority_Fixed,"print","End"); 33 33 34 34 return msg.str(); … … 36 36 37 37 ostream& operator<< (ostream& output_stream , 38 morpheo::behavioural::generic::select:: priority_fixed::Statistics & x)38 morpheo::behavioural::generic::select::select_priority_fixed::Statistics & x) 39 39 { 40 40 output_stream << x.print(0); … … 43 43 }; 44 44 45 }; // end namespace priority_fixed45 }; // end namespace select_priority_fixed 46 46 }; // end namespace select 47 47 }; // end namespace generic -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Select/Select_Priority_Fixed/src/Statistics_print_body.cpp
r10 r15 7 7 */ 8 8 9 #include "Behavioural/Generic/Select/ Priority_Fixed/include/Statistics.h"9 #include "Behavioural/Generic/Select/Select_Priority_Fixed/include/Statistics.h" 10 10 11 11 #include <sstream> … … 16 16 namespace generic { 17 17 namespace select { 18 namespace priority_fixed {18 namespace select_priority_fixed { 19 19 20 20 21 21 string Statistics::print_body (uint32_t depth) 22 22 { 23 log_printf(FUNC, Priority_Fixed,"print_body","Begin");23 log_printf(FUNC,Select_Priority_Fixed,"print_body","Begin"); 24 24 25 25 string tab = string(depth,'\t'); … … 28 28 msg << tab << ""; 29 29 30 log_printf(FUNC, Priority_Fixed,"print_body","End");30 log_printf(FUNC,Select_Priority_Fixed,"print_body","End"); 31 31 32 32 return msg.str(); 33 33 }; 34 34 35 }; // end namespace priority_fixed35 }; // end namespace select_priority_fixed 36 36 }; // end namespace select 37 37 }; // end namespace generic
Note: See TracChangeset
for help on using the changeset viewer.