Changeset 75 for trunk/IPs/systemC/processor/Morpheo/Behavioural/src
- Timestamp:
- Jan 31, 2008, 6:46:41 PM (17 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/src
- Files:
-
- 1 added
- 5 deleted
- 75 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Component.cpp
r57 r75 15 15 { 16 16 log_printf(FUNC,Behavioural,"Component::Component","Begin"); 17 _list_component = new list<Tcomponent_t *>;17 _list_component = new std::list<Tcomponent_t *>; 18 18 log_printf(FUNC,Behavioural,"Component::Component","End"); 19 19 }; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Component_find_entity.cpp
r57 r75 11 11 namespace behavioural { 12 12 13 Entity * Component::find_entity (st ring name)13 Entity * Component::find_entity (std::string name) 14 14 { 15 15 log_printf(FUNC,Behavioural,"Component::find_entity", "Begin"); … … 22 22 if (_list_component->empty()== false) 23 23 { 24 list<Tcomponent_t *>::iterator i = _list_component->begin();24 std::list<Tcomponent_t *>::iterator i = _list_component->begin(); 25 25 26 26 while (i != _list_component->end()) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Component_get_component.cpp
r57 r75 14 14 #define FUNCTION "Component::get_component" 15 15 16 st ring Component::get_component (void)16 std::string Component::get_component (void) 17 17 { 18 18 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 19 19 20 20 uint32_t depth = 0; 21 st ring separator = "\n";21 std::string separator = "\n"; 22 22 bool last_separator = false; 23 23 24 list<Tcomponent_t *>::iterator i = _list_component->begin();24 std::list<Tcomponent_t *>::iterator i = _list_component->begin(); 25 25 bool empty = _list_component->empty(); 26 26 27 st ring tab =string(depth,'\t');28 ostringstream text;27 std::string tab = std::string(depth,'\t'); 28 std::ostringstream text; 29 29 30 30 if (not empty) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Component_get_entity.cpp
r43 r75 13 13 #undef FUNCTION 14 14 #define FUNCTION "Component::get_entity" 15 st ring Component::get_entity (void)15 std::string Component::get_entity (void) 16 16 { 17 17 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 18 18 19 ostringstream text;19 std::ostringstream text; 20 20 text << *(_entity); 21 21 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Component_interface_map.cpp
r44 r75 14 14 #undef FUNCTION 15 15 #define FUNCTION "Component::interface_map" 16 void Component::interface_map (st ring component_src ,17 st ring port_src ,18 st ring component_dest,19 st ring port_dest )16 void Component::interface_map (std::string component_src , 17 std::string port_src , 18 std::string component_dest, 19 std::string port_dest ) 20 20 { 21 21 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); … … 24 24 Entity * entity_dest = find_entity(component_dest); 25 25 26 st ring name_entity = _entity->get_name();26 std::string name_entity = _entity->get_name(); 27 27 28 28 if (entity_dest == NULL) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Component_port_map.cpp
r65 r75 13 13 #undef FUNCTION 14 14 #define FUNCTION "Component::port_map" 15 void Component::port_map (st ring component_src ,16 st ring port_src ,17 st ring component_dest,18 st ring port_dest )15 void Component::port_map (std::string component_src , 16 std::string port_src , 17 std::string component_dest, 18 std::string port_dest ) 19 19 { 20 20 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 21 21 22 st ring name_entity = _entity->get_name();22 std::string name_entity = _entity->get_name(); 23 23 24 24 // First entity … … 111 111 112 112 113 void Component::port_map (st ring component_src ,114 st ring port_src )113 void Component::port_map (std::string component_src , 114 std::string port_src ) 115 115 { 116 116 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Component_print.cpp
r43 r75 14 14 #undef FUNCTION 15 15 #define FUNCTION "Component::operator<<" 16 ostream& operator<< (ostream& output_stream,17 16 std::ostream& operator<< (std::ostream& output_stream, 17 morpheo::behavioural::Component & x) 18 18 { 19 19 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 20 20 21 output_stream << x.get_entity () << endl;22 output_stream << x.get_component () << endl;21 output_stream << x.get_entity () << std::endl; 22 output_stream << x.get_component () << std::endl; 23 23 24 24 log_printf(FUNC,Behavioural,FUNCTION,"End"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Component_set_entity.cpp
r57 r75 13 13 #undef FUNCTION 14 14 #define FUNCTION "Component::set_entity" 15 Entity * Component::set_entity (st ring name16 ,st ring type15 Entity * Component::set_entity (std::string name 16 ,std::string type 17 17 #ifdef POSITION 18 18 ,schema_t schema -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Component_signal_internal.cpp
r62 r75 19 19 20 20 // create name of internal's signal 21 st ring str_entity = entity_productor->get_name();22 st ring str_signal = signal_productor->get_name();21 std::string str_entity = entity_productor->get_name(); 22 std::string str_signal = signal_productor->get_name(); 23 23 24 24 UpperCase (str_entity); 25 25 UpperCase (str_signal); 26 26 27 st ring name_internal = "internal_"+str_entity+"_"+str_signal;27 std::string name_internal = "internal_"+str_entity+"_"+str_signal; 28 28 29 29 // test if internal's signal exist ... else, create … … 40 40 throw (ErrorMorpheo ("<Component::port_map> Component \""+_entity->get_name()+"\", doesn't have an interface \"\".")); 41 41 42 st ring signame = entity_productor->get_name()+"_"+signal_productor->get_name();42 std::string signame = entity_productor->get_name()+"_"+signal_productor->get_name(); 43 43 44 44 // Signal's creation -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Component_test_map.cpp
r62 r75 17 17 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 18 18 19 st ring name = _entity->get_name();19 std::string name = _entity->get_name(); 20 20 bool test_ok = true; 21 21 if (_list_component->empty () == true) … … 31 31 log_printf(INFO,Behavioural,FUNCTION, "Test all internal component"); 32 32 33 for ( list<Tcomponent_t *>::iterator i= _list_component->begin();33 for (std::list<Tcomponent_t *>::iterator i= _list_component->begin(); 34 34 i != _list_component->end(); 35 35 ++i) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Component_toXML.cpp
r57 r75 27 27 if (_list_component->empty()== false) 28 28 { 29 list<Tcomponent_t *>::iterator i = _list_component->begin();29 std::list<Tcomponent_t *>::iterator i = _list_component->begin(); 30 30 31 31 while (i != _list_component->end()) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Component_vhdl_instance.cpp
r65 r75 19 19 20 20 uint32_t cpt = 0; 21 map<Signal *,string> tab;21 std::map<Signal *,std::string> tab; 22 22 23 23 // buffer all output … … 25 25 { 26 26 // for each interface 27 list<Interface_fifo *> * list_interface = (_entity)->get_interfaces_list()->get_interface_list();28 list<Interface_fifo *>::iterator j = list_interface->begin();27 std::list<Interface_fifo *> * list_interface = (_entity)->get_interfaces_list()->get_interface_list(); 28 std::list<Interface_fifo *>::iterator j = list_interface->begin(); 29 29 if (not list_interface->empty()) 30 30 { … … 36 36 { 37 37 // for each signal 38 list<Signal *> * list_signal = (*j)->get_signal_list();39 list<Signal *>::iterator k = list_signal->begin();38 std::list<Signal *> * list_signal = (*j)->get_signal_list(); 39 std::list<Signal *>::iterator k = list_signal->begin(); 40 40 if (not list_signal->empty()) 41 41 { … … 49 49 { 50 50 // Create name 51 st ring signal_name = "signal_"+toString(cpt++);51 std::string signal_name = "signal_"+toString(cpt++); 52 52 53 53 tab [signal ] = signal_name; … … 76 76 77 77 // for each entity 78 list<Tcomponent_t *> * list_component = _list_component;79 list<Tcomponent_t *>::iterator i = list_component->begin();78 std::list<Tcomponent_t *> * list_component = _list_component; 79 std::list<Tcomponent_t *>::iterator i = list_component->begin(); 80 80 if (not list_component->empty()) 81 81 { … … 90 90 if (instance & INSTANCE_COMPONENT) 91 91 { 92 list<string> list_port_map;92 std::list<std::string> list_port_map; 93 93 94 94 // for each interface 95 list<Interface_fifo *> * list_interface = entity->get_interfaces_list()->get_interface_list();96 list<Interface_fifo *>::iterator j = list_interface->begin();95 std::list<Interface_fifo *> * list_interface = entity->get_interfaces_list()->get_interface_list(); 96 std::list<Interface_fifo *>::iterator j = list_interface->begin(); 97 97 if (not list_interface->empty()) 98 98 { … … 100 100 { 101 101 // for each signal 102 list<Signal *> * list_signal = (*j)->get_signal_list();103 list<Signal *>::iterator k = list_signal->begin();102 std::list<Signal *> * list_signal = (*j)->get_signal_list(); 103 std::list<Signal *>::iterator k = list_signal->begin(); 104 104 if (not list_signal->empty()) 105 105 { … … 112 112 { 113 113 Signal * signal_dest = signal_src->get_connect_to_signal(); 114 st ring name_src = signal_src->get_name();115 st ring name_dest;114 std::string name_src = signal_src->get_name(); 115 std::string name_dest; 116 116 117 117 // // Test if destination signal is a interface port ? … … 119 119 // { 120 120 // find if signal is already link 121 map<Signal *,string>::iterator it = tab.find(signal_dest);121 std::map<Signal *,std::string>::iterator it = tab.find(signal_dest); 122 122 if (tab.find(signal_dest) == tab.end()) 123 123 { … … 144 144 // { 145 145 // // Take buffer's signal 146 // map<Signal *,st ring>::iterator it = tab.find(signal_dest);146 // map<Signal *,std::string>::iterator it = tab.find(signal_dest); 147 147 // name_dest = (*it).second; 148 148 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Configuration_Parameters.cpp
r43 r75 14 14 #undef FUNCTION 15 15 #define FUNCTION "Configuration_Parameters::Configuration_Parameters" 16 Configuration_Parameters::Configuration_Parameters (st ring name ,16 Configuration_Parameters::Configuration_Parameters (std::string name , 17 17 uint32_t value , 18 18 uint32_t min , 19 19 uint32_t max , 20 st ring step ,20 std::string step , 21 21 uint32_t value_default, 22 22 uint32_t level , 23 st ring comment):23 std::string comment): 24 24 _name (name ), 25 25 _value (value ), -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Configuration_Parameters_print.cpp
r43 r75 15 15 #undef FUNCTION 16 16 #define FUNCTION "Configuration_Parameters::print" 17 st ring Configuration_Parameters::print (uint32_t depth)17 std::string Configuration_Parameters::print (uint32_t depth) 18 18 { 19 19 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); … … 38 38 #undef FUNCTION 39 39 #define FUNCTION "Configuration_Parameters::operator<<" 40 ostream& operator<< (ostream& output_stream,41 40 std::ostream& operator<< (std::ostream& output_stream, 41 morpheo::behavioural::Configuration_Parameters & x) 42 42 { 43 43 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Entity.cpp
r57 r75 11 11 namespace behavioural { 12 12 13 Entity::Entity ( st ring name14 ,st ring type13 Entity::Entity ( std::string name 14 ,std::string type 15 15 #ifdef POSITION 16 16 ,schema_t schema -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Entity_find_interface.cpp
r43 r75 13 13 #undef FUNCTION 14 14 #define FUNCTION "Entity::find_interface" 15 Interface * Entity::find_interface (st ring name)15 Interface * Entity::find_interface (std::string name) 16 16 { 17 17 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Entity_find_signal.cpp
r43 r75 13 13 #undef FUNCTION 14 14 #define FUNCTION "Entity::find_signal" 15 Signal * Entity::find_signal (st ring name)15 Signal * Entity::find_signal (std::string name) 16 16 { 17 17 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Entity_get_comment.cpp
r43 r75 15 15 #undef FUNCTION 16 16 #define FUNCTION "Entity::get_comment" 17 st ring Entity::get_comment (void)17 std::string Entity::get_comment (void) 18 18 { 19 19 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 20 st ring _return = _comment;20 std::string _return = _comment; 21 21 log_printf(FUNC,Behavioural,FUNCTION,"End"); 22 22 return _return; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Entity_get_interfaces.cpp
r43 r75 14 14 #undef FUNCTION 15 15 #define FUNCTION "Entity::get_interfaces" 16 st ring Entity::get_interfaces (void)16 std::string Entity::get_interfaces (void) 17 17 { 18 18 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 19 ostringstream text;19 std::ostringstream text; 20 20 text << *(_interfaces); 21 21 log_printf(FUNC,Behavioural,FUNCTION,"End"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Entity_get_name.cpp
r43 r75 14 14 #undef FUNCTION 15 15 #define FUNCTION "Entity::get_name" 16 st ring Entity::get_name (void)16 std::string Entity::get_name (void) 17 17 { 18 18 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 19 st ring _return = _name;19 std::string _return = _name; 20 20 log_printf(FUNC,Behavioural,FUNCTION,"End"); 21 21 return _return; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Entity_get_type.cpp
r43 r75 14 14 #undef FUNCTION 15 15 #define FUNCTION "Entity::get_type" 16 st ring Entity::get_type (void)16 std::string Entity::get_type (void) 17 17 { 18 18 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 19 st ring _return = _type;19 std::string _return = _type; 20 20 log_printf(FUNC,Behavioural,FUNCTION,"End"); 21 21 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Entity_print.cpp
r43 r75 14 14 #undef FUNCTION 15 15 #define FUNCTION "Entity::operator<<" 16 ostream& operator<< (ostream& output_stream,17 16 std::ostream& operator<< (std::ostream& output_stream, 17 morpheo::behavioural::Entity & x) 18 18 { 19 19 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 20 20 21 21 #ifdef POSITION 22 output_stream << x._name + "\t"+x._type+"\t"+toString(x._schema) << endl;23 output_stream << x.get_comment() << endl;22 output_stream << x._name + "\t"+x._type+"\t"+toString(x._schema) << std::endl; 23 output_stream << x.get_comment() << std::endl; 24 24 #else 25 output_stream << x._name + "\t"+x._type<< endl;25 output_stream << x._name + "\t"+x._type<< std::endl; 26 26 #endif 27 output_stream << x.get_interfaces() << endl;27 output_stream << x.get_interfaces() << std::endl; 28 28 29 29 log_printf(FUNC,Behavioural,FUNCTION,"End"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Entity_set_comment.cpp
r43 r75 15 15 #undef FUNCTION 16 16 #define FUNCTION "Entity::set_comment" 17 void Entity::set_comment (st ring comment)17 void Entity::set_comment (std::string comment) 18 18 { 19 19 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface.cpp
r57 r75 11 11 namespace behavioural { 12 12 13 Interface::Interface (st ring name13 Interface::Interface (std::string name 14 14 #ifdef POSITION 15 15 ,direction_t direction … … 27 27 log_printf(FUNC,Behavioural,"Interface","Begin"); 28 28 29 _list_signal = new ( list<Signal*>);29 _list_signal = new (std::list<Signal*>); 30 30 31 31 #ifdef POSITION … … 72 72 if (_list_signal->empty()== false) 73 73 { 74 list<Signal*>::iterator i = _list_signal->begin();74 std::list<Signal*>::iterator i = _list_signal->begin(); 75 75 76 76 while (i != _list_signal->end()) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_fifo.cpp
r57 r75 11 11 namespace behavioural { 12 12 13 Interface_fifo::Interface_fifo (st ring name13 Interface_fifo::Interface_fifo (std::string name 14 14 #ifdef POSITION 15 15 ,direction_t direction … … 28 28 log_printf(FUNC,Behavioural,"Interface_fifo","Begin"); 29 29 30 _list_signal_val = new ( list<Signal*>);31 _list_signal_ack = new ( list<Signal*>);30 _list_signal_val = new (std::list<Signal*>); 31 _list_signal_ack = new (std::list<Signal*>); 32 32 33 33 #ifdef VHDL_TESTBENCH 34 34 _test_exhaustive = true; 35 _list_cycle = new list<uint32_t>;35 _list_cycle = new std::list<uint32_t>; 36 36 #endif 37 37 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_fifo_set_signal.cpp
r41 r75 11 11 namespace behavioural { 12 12 13 Signal * Interface_fifo::set_signal_valack (st ring name ,13 Signal * Interface_fifo::set_signal_valack (std::string name , 14 14 direction_t direction, 15 15 val_ack_t val_ack , -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_fifo_testbench_test.cpp
r62 r75 12 12 namespace behavioural { 13 13 14 st ring Interface_fifo::testbench_test (Vhdl * & vhdl,15 st ring counter_name,16 st ring reset_name )14 std::string Interface_fifo::testbench_test (Vhdl * & vhdl, 15 std::string counter_name, 16 std::string reset_name ) 17 17 { 18 18 log_printf(FUNC,Behavioural,"testbench_test","Begin"); 19 st ring test_name;19 std::string test_name; 20 20 21 21 if (_test_exhaustive == true) … … 28 28 29 29 test_name = testbench_test_name (vhdl); 30 st ring test_name_tmp = test_name+"_tmp";31 st ring test_name_ok = testbench_test_ok (vhdl);32 st ring test_transaction = testbench_test_transaction (vhdl);30 std::string test_name_tmp = test_name+"_tmp"; 31 std::string test_name_ok = testbench_test_ok (vhdl); 32 std::string test_transaction = testbench_test_transaction (vhdl); 33 33 34 34 vhdl->set_signal(test_name_tmp,1); … … 39 39 vhdl->set_body ("\t"+test_name_tmp+" <="); 40 40 41 list<uint32_t>::iterator i = _list_cycle->begin();41 std::list<uint32_t>::iterator i = _list_cycle->begin(); 42 42 43 43 while (i != _list_cycle->end()) … … 62 62 63 63 uint32_t j = 0; 64 list<uint32_t>::iterator i = _list_cycle->begin();64 std::list<uint32_t>::iterator i = _list_cycle->begin(); 65 65 66 66 while (i != _list_cycle->end()) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_fifo_testbench_test_transaction.cpp
r42 r75 12 12 namespace behavioural { 13 13 14 st ring Interface_fifo::testbench_test_transaction (Vhdl * & vhdl)14 std::string Interface_fifo::testbench_test_transaction (Vhdl * & vhdl) 15 15 { 16 16 log_printf(FUNC,Behavioural,"testbench_test_transaction","Begin"); 17 17 18 st ring name = testbench_test_transaction_name(vhdl);18 std::string name = testbench_test_transaction_name(vhdl); 19 19 20 20 vhdl->set_body(name+" <= '1'"); … … 23 23 if (_list_signal_val->empty()== false) 24 24 { 25 list<Signal*>::iterator i = _list_signal_val->begin();25 std::list<Signal*>::iterator i = _list_signal_val->begin(); 26 26 27 27 while (i != _list_signal_val->end()) … … 35 35 if (_list_signal_ack->empty()== false) 36 36 { 37 list<Signal*>::iterator i = _list_signal_ack->begin();37 std::list<Signal*>::iterator i = _list_signal_ack->begin(); 38 38 39 39 while (i != _list_signal_ack->end()) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_fifo_testbench_transaction.cpp
r42 r75 21 21 if (_list_signal_val->empty()== false) 22 22 { 23 list<Signal*>::iterator i = _list_signal_val->begin();23 std::list<Signal*>::iterator i = _list_signal_val->begin(); 24 24 25 25 while ((i != _list_signal_val->end()) and (res == true)) … … 33 33 if (_list_signal_ack->empty()== false) 34 34 { 35 list<Signal*>::iterator i = _list_signal_ack->begin();35 std::list<Signal*>::iterator i = _list_signal_ack->begin(); 36 36 37 37 while ((i != _list_signal_ack->end()) and (res == true)) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_find_signal.cpp
r42 r75 12 12 namespace behavioural { 13 13 14 Signal * Interface::find_signal (st ring name)14 Signal * Interface::find_signal (std::string name) 15 15 { 16 16 log_printf(FUNC,Behavioural,"find_signal","Begin"); 17 17 18 list<Signal*>::iterator i = _list_signal->begin();18 std::list<Signal*>::iterator i = _list_signal->begin(); 19 19 Signal * sig = NULL; 20 20 if (_list_signal->empty() == false) … … 41 41 42 42 bool find = false; 43 list<Signal*>::iterator i = _list_signal->begin();43 std::list<Signal*>::iterator i = _list_signal->begin(); 44 44 if (_list_signal->empty() == false) 45 45 { -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_get_clock.cpp
r43 r75 23 23 if (not _list_signal->empty()) 24 24 { 25 list<Signal*>::iterator i = _list_signal->begin();25 std::list<Signal*>::iterator i = _list_signal->begin(); 26 26 27 27 while (i != _list_signal->end()) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_get_comment.cpp
r42 r75 13 13 namespace behavioural { 14 14 15 st ring Interface::get_comment (void)15 std::string Interface::get_comment (void) 16 16 { 17 17 log_printf(FUNC,Behavioural,"get_comment","Begin"); 18 st ring res = _comment;18 std::string res = _comment; 19 19 log_printf(FUNC,Behavioural,"get_comment","End"); 20 20 return res; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_get_name.cpp
r42 r75 12 12 namespace behavioural { 13 13 14 st ring Interface::get_name (void)14 std::string Interface::get_name (void) 15 15 { 16 16 log_printf(FUNC,Behavioural,"get_name","Begin"); 17 st ring res = _name;17 std::string res = _name; 18 18 log_printf(FUNC,Behavioural,"get_name","End"); 19 19 return res; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_get_reset.cpp
r43 r75 23 23 if (not _list_signal->empty()) 24 24 { 25 list<Signal*>::iterator i = _list_signal->begin();25 std::list<Signal*>::iterator i = _list_signal->begin(); 26 26 27 27 while (i != _list_signal->end()) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_get_signal.cpp
r43 r75 12 12 namespace behavioural { 13 13 14 st ring Interface::get_signal (void)14 std::string Interface::get_signal (void) 15 15 { 16 16 log_printf(FUNC,Behavioural,"get_signal","Begin"); 17 17 18 18 uint32_t depth = 0; 19 st ring separator = ",\n";19 std::string separator = ",\n"; 20 20 bool last_separator = false; 21 21 22 22 23 list<Signal*>::iterator i = _list_signal->begin();24 bool empty = _list_signal->empty();23 std::list<Signal*>::iterator i = _list_signal->begin(); 24 bool empty = _list_signal->empty(); 25 25 26 st ring tab =string(depth,'\t');27 ostringstream text;26 std::string tab = std::string(depth,'\t'); 27 std::ostringstream text; 28 28 29 29 if (not empty) … … 56 56 #undef FUNCTION 57 57 #define FUNCTION "Interface::get_signal" 58 void Interface::get_signal ( list<string> * & list_signal)58 void Interface::get_signal (std::list<std::string> * & list_signal) 59 59 { 60 60 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); … … 62 62 if (not _list_signal->empty()) 63 63 { 64 list<Signal*>::iterator i = _list_signal->begin();64 std::list<Signal*>::iterator i = _list_signal->begin(); 65 65 66 66 while (i != _list_signal->end()) … … 78 78 #undef FUNCTION 79 79 #define FUNCTION "Interface::get_signal_list" 80 list<Signal *> * Interface::get_signal_list (void)80 std::list<Signal *> * Interface::get_signal_list (void) 81 81 { 82 82 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 83 list<Signal *> * _return = _list_signal;83 std::list<Signal *> * _return = _list_signal; 84 84 log_printf(FUNC,Behavioural,FUNCTION,"End"); 85 85 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_print.cpp
r42 r75 12 12 namespace behavioural { 13 13 14 ostream& operator<< (ostream& output_stream,15 14 std::ostream& operator<< (std::ostream& output_stream, 15 morpheo::behavioural::Interface & x) 16 16 { 17 17 log_printf(FUNC,Behavioural,"operator<<","Begin"); 18 18 #ifdef POSITION 19 output_stream << x._name + "\t"+toString(x._localisation)+"\t"+toString(x._direction) << endl;20 output_stream << x.get_comment() << endl;19 output_stream << x._name + "\t"+toString(x._localisation)+"\t"+toString(x._direction) << std::endl; 20 output_stream << x.get_comment() << std::endl; 21 21 #else 22 output_stream << x._name << endl;22 output_stream << x._name << std::endl; 23 23 #endif 24 output_stream << x.get_signal () << endl;24 output_stream << x.get_signal () << std::endl; 25 25 26 26 // #ifdef VHDL_TESTBENCH -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_set_comment.cpp
r42 r75 13 13 namespace behavioural { 14 14 15 void Interface::set_comment (st ring comment)15 void Interface::set_comment (std::string comment) 16 16 { 17 17 log_printf(FUNC,Behavioural,"set_comment","Begin"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_set_port.cpp
r41 r75 18 18 if (not _list_signal->empty()) 19 19 { 20 list<Signal*>::iterator i = _list_signal->begin();20 std::list<Signal*>::iterator i = _list_signal->begin(); 21 21 22 22 while (i != _list_signal->end()) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_set_signal.cpp
r43 r75 11 11 namespace behavioural { 12 12 13 Signal * Interface::set_signal (st ring name ,13 Signal * Interface::set_signal (std::string name , 14 14 direction_t direction, 15 15 uint32_t size , … … 18 18 log_printf(FUNC,Behavioural,"set_signal","Begin"); 19 19 20 st ring signame = signal_name(_name, name, direction);20 std::string signame = signal_name(_name, name, direction); 21 21 22 22 Signal * sig = new Signal (signame, direction, size, presence_port); … … 39 39 if (not _list_signal->empty()) 40 40 { 41 list<Signal*>::iterator i = _list_signal->begin();41 std::list<Signal*>::iterator i = _list_signal->begin(); 42 42 43 43 while (i != _list_signal->end()) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_signal_name.cpp
r62 r75 11 11 namespace behavioural { 12 12 13 st ring Interface::signal_name (string name_interface,14 string name_signal ,15 direction_t direction )13 std::string Interface::signal_name (std::string name_interface, 14 std::string name_signal , 15 direction_t direction ) 16 16 { 17 17 log_printf(FUNC,Behavioural,"signal_name","Begin"); 18 18 19 st ring str_direction = toString(direction);20 st ring str_interface = name_interface;21 st ring str_signal = name_signal;19 std::string str_direction = toString(direction); 20 std::string str_interface = name_interface; 21 std::string str_signal = name_signal; 22 22 23 23 LowerCase(str_direction); … … 25 25 UpperCase(str_signal ); 26 26 27 st ring signame = str_direction;27 std::string signame = str_direction; 28 28 if (str_interface != "") 29 29 signame += "_"+str_interface; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_test_map.cpp
r62 r75 22 22 log_printf(INFO,Behavioural,FUNCTION, " * Interface \"%s\"",_name.c_str()); 23 23 24 for ( list<Signal*>::iterator i = _list_signal->begin();24 for (std::list<Signal*>::iterator i = _list_signal->begin(); 25 25 i != _list_signal->end(); 26 26 ++i) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_testbench.cpp
r41 r75 19 19 if (_list_signal->empty()== false) 20 20 { 21 list<Signal*>::iterator i = _list_signal->begin();21 std::list<Signal*>::iterator i = _list_signal->begin(); 22 22 23 23 while (i != _list_signal->end()) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_testbench_body.cpp
r42 r75 14 14 15 15 void Interface::testbench_body (Vhdl * & vhdl, 16 st ring counter_name,17 st ring reset_name )16 std::string counter_name, 17 std::string reset_name ) 18 18 { 19 19 log_printf(FUNC,Behavioural,"testbench_body","Begin"); … … 21 21 if (_list_signal->empty()== false) 22 22 { 23 list<Signal*>::iterator i = _list_signal->begin();23 std::list<Signal*>::iterator i = _list_signal->begin(); 24 24 25 25 vhdl->set_body("------------------------------------------------------"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_testbench_test.cpp
r42 r75 13 13 namespace behavioural { 14 14 15 st ring Interface::testbench_test (Vhdl * & vhdl,16 st ring counter_name,17 st ring reset_name )15 std::string Interface::testbench_test (Vhdl * & vhdl, 16 std::string counter_name, 17 std::string reset_name ) 18 18 { 19 19 log_printf(FUNC,Behavioural,"testbench_test","Begin"); … … 23 23 vhdl->set_body(""); 24 24 25 st ring test_name = testbench_test_name(vhdl);26 st ring test_name_ok = testbench_test_ok (vhdl);25 std::string test_name = testbench_test_name(vhdl); 26 std::string test_name_ok = testbench_test_ok (vhdl); 27 27 28 28 vhdl->set_body(test_name + " <= '1' when ("+reset_name+" = '0') else "+test_name_ok+";"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_testbench_test_name.cpp
r42 r75 13 13 namespace behavioural { 14 14 15 st ring Interface::testbench_test_name (Vhdl * & vhdl)15 std::string Interface::testbench_test_name (Vhdl * & vhdl) 16 16 { 17 17 log_printf(FUNC,Behavioural,"testbench_test_name","Begin"); 18 18 19 st ring name;19 std::string name; 20 20 21 21 name = "interface_"; … … 31 31 }; 32 32 33 st ring Interface::testbench_test_ok_name (Vhdl * & vhdl)33 std::string Interface::testbench_test_ok_name (Vhdl * & vhdl) 34 34 { 35 35 log_printf(FUNC,Behavioural,"testbench_test_ok_name","Begin"); 36 36 37 st ring name;37 std::string name; 38 38 39 39 name = "interface_"; … … 49 49 }; 50 50 51 st ring Interface::testbench_test_transaction_name (Vhdl * & vhdl)51 std::string Interface::testbench_test_transaction_name (Vhdl * & vhdl) 52 52 { 53 53 log_printf(FUNC,Behavioural,"testbench_test_transaction_name","Begin"); 54 54 55 st ring name;55 std::string name; 56 56 57 57 name = "interface_"; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_testbench_test_ok.cpp
r42 r75 13 13 namespace behavioural { 14 14 15 st ring Interface::testbench_test_ok (Vhdl * & vhdl)15 std::string Interface::testbench_test_ok (Vhdl * & vhdl) 16 16 { 17 17 log_printf(FUNC,Behavioural,"testbench_test_ok","Begin"); 18 18 19 st ring test_name = testbench_test_ok_name(vhdl);19 std::string test_name = testbench_test_ok_name(vhdl); 20 20 21 21 vhdl->set_body(test_name + " <= '1' when true"); … … 24 24 if (_list_signal->empty()== false) 25 25 { 26 list<Signal*>::iterator i = _list_signal->begin();26 std::list<Signal*>::iterator i = _list_signal->begin(); 27 27 28 28 while (i != _list_signal->end()) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_toXML.cpp
r42 r75 28 28 if (_list_signal->empty()== false) 29 29 { 30 list<Signal*>::iterator i = _list_signal->begin();30 std::list<Signal*>::iterator i = _list_signal->begin(); 31 31 32 32 while (i != _list_signal->end()) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interfaces.cpp
r58 r75 11 11 namespace behavioural { 12 12 13 Interfaces::Interfaces (st ring name,13 Interfaces::Interfaces (std::string name, 14 14 Tusage_t usage): 15 15 _name (name), … … 17 17 { 18 18 log_printf(FUNC,Behavioural,"Interfaces","Begin"); 19 _list_interface = new list<Interface_fifo*>;19 _list_interface = new std::list<Interface_fifo*>; 20 20 log_printf(FUNC,Behavioural,"Interfaces","End"); 21 21 }; … … 41 41 if (_list_interface->empty()== false) 42 42 { 43 list<Interface_fifo*>::iterator i = _list_interface->begin();43 std::list<Interface_fifo*>::iterator i = _list_interface->begin(); 44 44 45 45 while (i != _list_interface->end()) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interfaces_find_interface.cpp
r43 r75 13 13 #undef FUNCTION 14 14 #define FUNCTION "Interfaces::find_interface" 15 Interface_fifo * Interfaces::find_interface (st ring name)15 Interface_fifo * Interfaces::find_interface (std::string name) 16 16 { 17 17 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); … … 20 20 if (_list_interface->empty()== false) 21 21 { 22 list<Interface_fifo*>::iterator i = _list_interface->begin();22 std::list<Interface_fifo*>::iterator i = _list_interface->begin(); 23 23 24 24 while (i != _list_interface->end()) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interfaces_find_signal.cpp
r43 r75 13 13 #undef FUNCTION 14 14 #define FUNCTION "Interfaces::find_signal" 15 Signal * Interfaces::find_signal (st ring name)15 Signal * Interfaces::find_signal (std::string name) 16 16 { 17 17 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); … … 20 20 if (_list_interface->empty()== false) 21 21 { 22 list<Interface_fifo*>::iterator i = _list_interface->begin();22 std::list<Interface_fifo*>::iterator i = _list_interface->begin(); 23 23 24 24 while (i != _list_interface->end()) … … 51 51 if (_list_interface->empty()== false) 52 52 { 53 list<Interface_fifo*>::iterator i = _list_interface->begin();53 std::list<Interface_fifo*>::iterator i = _list_interface->begin(); 54 54 55 55 while (i != _list_interface->end()) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interfaces_get_clock.cpp
r43 r75 23 23 if (not _list_interface->empty()) 24 24 { 25 list<Interface_fifo*>::iterator i = _list_interface->begin();25 std::list<Interface_fifo*>::iterator i = _list_interface->begin(); 26 26 27 27 while (i != _list_interface->end()) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interfaces_get_cycle.cpp
r43 r75 22 22 if (not _list_interface->empty()) 23 23 { 24 list<Interface_fifo*>::iterator i = _list_interface->begin();24 std::list<Interface_fifo*>::iterator i = _list_interface->begin(); 25 25 26 26 while (i != _list_interface->end()) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interfaces_get_interface.cpp
r43 r75 14 14 #undef FUNCTION 15 15 #define FUNCTION "Interfaces::get_interface" 16 st ring Interfaces::get_interface (void)16 std::string Interfaces::get_interface (void) 17 17 { 18 18 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 19 19 20 20 uint32_t depth = 0; 21 st ring separator = "\n";21 std::string separator = "\n"; 22 22 bool last_separator = false; 23 23 24 list<Interface_fifo*>::iterator i = _list_interface->begin();24 std::list<Interface_fifo*>::iterator i = _list_interface->begin(); 25 25 bool empty = _list_interface->empty(); 26 26 27 st ring tab =string(depth,'\t');28 ostringstream text;27 std::string tab = std::string(depth,'\t'); 28 std::ostringstream text; 29 29 30 30 if (not empty) … … 55 55 #undef FUNCTION 56 56 #define FUNCTION "Interfaces::get_interface_list" 57 list<Interface_fifo*>* Interfaces::get_interface_list (void)57 std::list<Interface_fifo*>* Interfaces::get_interface_list (void) 58 58 { 59 59 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 60 list<Interface_fifo*>* _return = _list_interface;60 std::list<Interface_fifo*>* _return = _list_interface; 61 61 log_printf(FUNC,Behavioural,FUNCTION,"End"); 62 62 -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interfaces_get_reset.cpp
r43 r75 23 23 if (not _list_interface->empty()) 24 24 { 25 list<Interface_fifo*>::iterator i = _list_interface->begin();25 std::list<Interface_fifo*>::iterator i = _list_interface->begin(); 26 26 27 27 while (i != _list_interface->end()) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interfaces_get_signal.cpp
r43 r75 17 17 #undef FUNCTION 18 18 #define FUNCTION "Interfaces::get_signal" 19 void Interfaces::get_signal ( list<string> * & list_signal)19 void Interfaces::get_signal (std::list<std::string> * & list_signal) 20 20 { 21 21 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); … … 23 23 if (not _list_interface->empty()) 24 24 { 25 list<Interface_fifo*>::iterator i = _list_interface->begin();25 std::list<Interface_fifo*>::iterator i = _list_interface->begin(); 26 26 27 27 while (i != _list_interface->end()) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interfaces_print.cpp
r43 r75 15 15 #undef FUNCTION 16 16 #define FUNCTION "Interfaces::operator<<" 17 ostream& operator<< (ostream& output_stream ,18 17 std::ostream& operator<< (std::ostream& output_stream , 18 morpheo::behavioural::Interfaces & x) 19 19 { 20 20 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 21 output_stream << x.get_interface () << endl;21 output_stream << x.get_interface () << std::endl; 22 22 log_printf(FUNC,Behavioural,FUNCTION,"End"); 23 23 return output_stream; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interfaces_set_interface.cpp
r57 r75 13 13 #undef FUNCTION 14 14 #define FUNCTION "Interfaces::set_interface" 15 Interface_fifo * Interfaces::set_interface (st ring name15 Interface_fifo * Interfaces::set_interface (std::string name 16 16 #ifdef POSITION 17 17 ,direction_t direction … … 38 38 #undef FUNCTION 39 39 #define FUNCTION "Interfaces::set_interface" 40 Interface_fifo * Interfaces::set_interface (st ring name ,40 Interface_fifo * Interfaces::set_interface (std::string name , 41 41 direction_t direction , 42 42 localisation_t localisation, 43 st ring comment )43 std::string comment ) 44 44 { 45 45 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interfaces_set_port.cpp
r43 r75 20 20 if (not _list_interface->empty()) 21 21 { 22 list<Interface_fifo*>::iterator i = _list_interface->begin();22 std::list<Interface_fifo*>::iterator i = _list_interface->begin(); 23 23 24 24 while (i != _list_interface->end()) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interfaces_set_signal.cpp
r43 r75 21 21 if (not _list_interface->empty()) 22 22 { 23 list<Interface_fifo*>::iterator i = _list_interface->begin();23 std::list<Interface_fifo*>::iterator i = _list_interface->begin(); 24 24 25 25 while (i != _list_interface->end()) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interfaces_test_map.cpp
r62 r75 22 22 log_printf(INFO,Behavioural,FUNCTION, " * Interfaces \"%s\"",_name.c_str()); 23 23 24 for ( list<Interface_fifo*>::iterator i = _list_interface->begin();24 for (std::list<Interface_fifo*>::iterator i = _list_interface->begin(); 25 25 i != _list_interface->end(); 26 26 ++i) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interfaces_testbench.cpp
r41 r75 19 19 if (_list_interface->empty()== false) 20 20 { 21 list<Interface_fifo*>::iterator i = _list_interface->begin();21 std::list<Interface_fifo*>::iterator i = _list_interface->begin(); 22 22 23 23 while (i != _list_interface->end()) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interfaces_testbench_body.cpp
r42 r75 13 13 namespace behavioural { 14 14 15 st ring Interfaces::testbench_body (Vhdl * & vhdl,16 st ring counter_name,17 st ring reset_name )15 std::string Interfaces::testbench_body (Vhdl * & vhdl, 16 std::string counter_name, 17 std::string reset_name ) 18 18 { 19 19 log_printf(FUNC,Behavioural,"testbench_body","Begin"); 20 20 21 st ring test = "'1'";22 st ring test_name = "test";21 std::string test = "'1'"; 22 std::string test_name = "test"; 23 23 vhdl->set_signal(test_name,1); 24 24 25 25 if (_list_interface->empty()== false) 26 26 { 27 list<Interface_fifo*>::iterator i = _list_interface->begin();27 std::list<Interface_fifo*>::iterator i = _list_interface->begin(); 28 28 29 29 while (i != _list_interface->end()) 30 30 { 31 31 (*i)->testbench_body(vhdl, counter_name, reset_name); 32 st ring str = (*i)->testbench_test(vhdl, counter_name, reset_name);32 std::string str = (*i)->testbench_test(vhdl, counter_name, reset_name); 33 33 34 34 test += " and "+str; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interfaces_testbench_generate_file.cpp
r66 r75 18 18 19 19 Vhdl * vhdl = new Vhdl(_name+"_Testbench"); 20 st ring counter = "counter";20 std::string counter = "counter"; 21 21 Signal * clock = this->get_clock(); 22 22 Signal * reset = this->get_reset(); 23 st ring clock_name = clock->get_name();24 st ring reset_name = reset->get_name();23 std::string clock_name = clock->get_name(); 24 std::string reset_name = reset->get_name(); 25 25 uint32_t cycle = this->get_cycle(); 26 26 … … 36 36 vhdl->set_body(""); 37 37 38 list<string> * list_signal = new list<string>;38 std::list<std::string> * list_signal = new std::list<std::string>; 39 39 this->get_signal (list_signal); 40 40 … … 43 43 vhdl->set_body("port map ("); 44 44 45 list<string>::iterator i = list_signal->begin();45 std::list<std::string>::iterator i = list_signal->begin(); 46 46 if (i != list_signal->end()) 47 47 { … … 58 58 delete list_signal; 59 59 60 st ring test_name = this->testbench_body(vhdl,counter, reset_name);60 std::string test_name = this->testbench_body(vhdl,counter, reset_name); 61 61 62 62 vhdl->set_body(""); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interfaces_toXML.cpp
r43 r75 22 22 if (_list_interface->empty()== false) 23 23 { 24 list<Interface_fifo*>::iterator i = _list_interface->begin();24 std::list<Interface_fifo*>::iterator i = _list_interface->begin(); 25 25 26 26 while (i != _list_interface->end()) … … 45 45 if (_list_interface->empty()== false) 46 46 { 47 list<Interface_fifo*>::iterator i = _list_interface->begin();47 std::list<Interface_fifo*>::iterator i = _list_interface->begin(); 48 48 49 49 while (i != _list_interface->end()) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Signal.cpp
r65 r75 11 11 namespace behavioural { 12 12 13 Signal::Signal (st ring name ,13 Signal::Signal (std::string name , 14 14 direction_t direction , 15 15 uint32_t size , … … 30 30 _type_info = UNKNOW; 31 31 #ifdef VHDL_TESTBENCH 32 _list_value = new list<string>;32 _list_value = new std::list<std::string>; 33 33 #endif 34 34 log_printf(FUNC,Behavioural,"Signal","End"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Signal_connect.cpp
r66 r75 18 18 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 19 19 20 cout << "connected : " << get_name() << "\twith " << signal_dest->get_name() <<endl;20 //std::cout << "connected : " << get_name() << "\twith " << signal_dest->get_name() << std::endl; 21 21 22 22 if ((_direction == IN ) and (signal_dest->_direction == IN )) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Signal_get_name.cpp
r43 r75 14 14 #undef FUNCTION 15 15 #define FUNCTION "Signal::get_name" 16 st ring Signal::get_name (void)16 std::string Signal::get_name (void) 17 17 { 18 18 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 19 st ring _return = _name;19 std::string _return = _name; 20 20 log_printf(FUNC,Behavioural,FUNCTION,"End"); 21 21 return _return; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Signal_get_name_vhdl.cpp
r43 r75 15 15 #undef FUNCTION 16 16 #define FUNCTION "Signal::get_name_vhdl" 17 void Signal::get_name_vhdl ( list<string> *& list_signal)17 void Signal::get_name_vhdl (std::list<std::string> *& list_signal) 18 18 { 19 19 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Signal_get_reset_cycle.cpp
r43 r75 21 21 uint32_t num = 0; 22 22 uint32_t cpt = 0; 23 st ring cmp = (active_low==true)?"0":"1";23 std::string cmp = (active_low==true)?"0":"1"; 24 24 25 25 if ((_presence_port == RESET_VHDL_YES) or … … 28 28 if (_list_value->empty()== false) 29 29 { 30 list<string>::iterator i = _list_value->begin();30 std::list<std::string>::iterator i = _list_value->begin(); 31 31 32 32 while (i != _list_value->end()) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Signal_print.cpp
r62 r75 11 11 namespace behavioural { 12 12 13 ostream& operator<< (ostream& output_stream,14 13 std::ostream& operator<< (std::ostream& output_stream, 14 morpheo::behavioural::Signal & x) 15 15 { 16 16 log_printf(FUNC,Behavioural,"operator<<","Begin"); … … 20 20 << toString(x._direction) << "\t" 21 21 << toString(x._presence_port) 22 << "sc_signal : " << hex << x._sc_signal << " - " << x._sc_signal_map <<dec;22 << "sc_signal : " << std::hex << x._sc_signal << " - " << x._sc_signal_map << std::dec; 23 23 24 24 log_printf(FUNC,Behavioural,"operator<<","End"); -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Signal_test_map.cpp
r62 r75 31 31 { 32 32 if (_return == false) 33 cerr << "Signal \"" << _name << "\" is not mapped with an outpout port or a component." <<endl;33 std::cerr << "Signal \"" << _name << "\" is not mapped with an outpout port or a component." << std::endl; 34 34 break; 35 35 } … … 37 37 { 38 38 if (_return == false) 39 cerr << "Signal \"" << _name << "\" is not mapped with an input port or a component." <<endl;39 std::cerr << "Signal \"" << _name << "\" is not mapped with an input port or a component." << std::endl; 40 40 break; 41 41 } … … 52 52 { 53 53 if (_is_map_as_src == false) 54 cerr << "Signal \"" << _name << "\" is not mapped as source" <<endl;54 std::cerr << "Signal \"" << _name << "\" is not mapped as source" << std::endl; 55 55 if (_is_map_as_dest == false) 56 cerr << "Signal \"" << _name << "\" is not mapped as destination" <<endl;56 std::cerr << "Signal \"" << _name << "\" is not mapped as destination" << std::endl; 57 57 } 58 58 } -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Signal_testbench.cpp
r42 r75 22 22 (_presence_port == RESET_VHDL_NO ) ) 23 23 { 24 st ring str;24 std::string str; 25 25 26 26 switch (_type_info) -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Signal_testbench_body.cpp
r42 r75 13 13 14 14 void Signal::testbench_body (Vhdl * & vhdl, 15 st ring counter_name,16 st ring reset_name )15 std::string counter_name, 16 std::string reset_name ) 17 17 { 18 18 log_printf(FUNC,Behavioural,"testbench_body","Begin"); … … 24 24 if (_list_value->empty()== false) 25 25 { 26 st ring separator;26 std::string separator; 27 27 if (_size == 1) 28 28 separator = "\'"; … … 30 30 separator = "\""; 31 31 32 st ring signame = (_direction==OUT)?(_name+"_test"):_name;32 std::string signame = (_direction==OUT)?(_name+"_test"):_name; 33 33 34 34 vhdl->set_body (""); … … 37 37 38 38 uint32_t cpt = 0; 39 list<string>::iterator i = _list_value->begin();39 std::list<std::string>::iterator i = _list_value->begin(); 40 40 41 41 while (i != _list_value->end()) 42 42 { 43 list<string>::iterator j = i;43 std::list<std::string>::iterator j = i; 44 44 45 45 ++i; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Stat_print.cpp
r74 r75 21 21 stat != _list_stat->end(); 22 22 stat ++) 23 xml.text((*stat)->print( depth+1));23 xml.text((*stat)->print(1)); 24 24 25 25 26 26 // Test special case 27 if (_cycle_sum < _nb_cycle_before_begin) 27 28 if (have_counter()) 28 29 { 29 xml.comment(_("Number of cycle is less than the number minimal")); 30 } 31 else 32 { 33 bool stop = false; 34 cycle_t nb_cycle_min; 35 cycle_t nb_cycle_max = _nb_cycle_before_begin-1; 36 for (cycle_t period=0; stop==false; period++) 30 if (_cycle_sum < _nb_cycle_before_begin) 37 31 { 38 std::map<std::string, var_t>::iterator operand=_list_operand->begin(); 32 xml.comment(_("Number of cycle is less than the number minimal")); 33 } 34 else 35 { 36 bool stop = false; 37 cycle_t nb_cycle_min; 38 cycle_t nb_cycle_max = _nb_cycle_before_begin-1; 39 for (cycle_t period=0; stop==false; period++) 40 { 41 std::map<std::string, var_t>::iterator operand=_list_operand->begin(); 42 43 if (operand->second.save_counter.size()==0) 44 throw(ERRORMORPHEO("Stat::generate_file",_("Queue 'save_counter' is empty."))); 45 46 bool last = operand->second.save_counter.size()==1; 47 48 nb_cycle_min = nb_cycle_max+1; 49 50 if (last) 51 nb_cycle_max = static_cast<cycle_t>(_cycle_sum); 52 else 53 nb_cycle_max += _period; 39 54 40 if (operand->second.save_counter.size()==0) 41 throw(ERRORMORPHEO("Stat::generate_file",_("Queue 'save_counter' is empty."))); 42 43 bool last = operand->second.save_counter.size()==1; 44 45 nb_cycle_min = nb_cycle_max+1; 46 47 if (last) 48 nb_cycle_max = static_cast<cycle_t>(_cycle_sum); 49 else 50 nb_cycle_max += _period; 51 52 xml.balise_open_begin("period"); 53 xml.attribut("number",toString(period)); 54 xml.attribut("nb_cycle_min",toString(nb_cycle_min)); 55 xml.attribut("nb_cycle_max",toString(nb_cycle_max)); 56 xml.balise_open_end(); 57 58 for (; 59 operand!= _list_operand->end(); 60 ++operand) 61 { 62 if (operand->second.type == TYPE_COUNTER) 55 xml.balise_open_begin("period"); 56 xml.attribut("number",toString(period)); 57 xml.attribut("nb_cycle_min",toString(nb_cycle_min)); 58 xml.attribut("nb_cycle_max",toString(nb_cycle_max)); 59 xml.balise_open_end(); 60 61 for (; 62 operand!= _list_operand->end(); 63 ++operand) 63 64 { 64 xml.singleton_begin(operand->second.name); 65 xml.attribut("value",toString(operand->second.save_counter.front())); 66 xml.attribut("unit",operand->second.unit); 67 xml.attribut("description",operand->second.description); 68 xml.singleton_end(); 65 if (operand->second.type == TYPE_COUNTER) 66 { 67 xml.singleton_begin(operand->second.name); 68 xml.attribut("value",toString(operand->second.save_counter.front())); 69 xml.attribut("unit",operand->second.unit); 70 xml.attribut("description",operand->second.description); 71 xml.singleton_end(); 72 } 73 operand->second.save_counter.pop_front(); 69 74 } 70 operand->second.save_counter.pop_front(); 75 76 xml.balise_close(); 77 78 stop = last; 71 79 } 72 73 xml.balise_close();74 75 stop = last;76 80 } 77 81 } -
trunk/IPs/systemC/processor/Morpheo/Behavioural/src/XML_text.cpp
r71 r75 16 16 { 17 17 log_printf(FUNC,Behavioural,FUNCTION,"Begin"); 18 _body += indent()+text +"\n";18 _body += indent()+text; // +"\n"; 19 19 log_printf(FUNC,Behavioural,FUNCTION,"End"); 20 20
Note: See TracChangeset
for help on using the changeset viewer.