- Timestamp:
- Feb 12, 2009, 12:55:06 PM (16 years ago)
- Location:
- trunk/IPs/systemC/processor/Morpheo/Behavioural/Configuration
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/IPs/systemC/processor/Morpheo/Behavioural/Configuration/SelfTest/src/test.cpp
r101 r108 59 59 cout << "------------------------------------------------------" << endl; 60 60 61 Instance * instance = new Instance ("../../../Files/Instance_ scalar_1.cfg",61 Instance * instance = new Instance ("../../../Files/Instance_debug.cfg", 62 62 generator1, 63 63 _get_custom_information … … 68 68 } 69 69 70 {71 cout << "------------------------------------------------------" << endl;72 73 Instance * instance = new Instance ("../../../Files/Instance_scalar_2.cfg",74 generator1,75 _get_custom_information76 );77 instance->toFile("data_out");78 79 delete instance;80 }81 82 {83 cout << "------------------------------------------------------" << endl;84 85 Instance * instance = new Instance ("../../../Files/Instance_scalar_3.cfg",86 generator1,87 _get_custom_information88 );89 instance->toFile("data_out");90 91 delete instance;92 }93 94 {95 cout << "------------------------------------------------------" << endl;96 97 Instance * instance = new Instance ("../../../Files/Instance_scalar_4.cfg",98 generator1,99 _get_custom_information100 );101 instance->toFile("data_out");102 103 delete instance;104 }105 70 106 71 delete configuration1; -
trunk/IPs/systemC/processor/Morpheo/Behavioural/Configuration/src/Simulator_fromFile.cpp
r88 r108 45 45 XML_t * xml = vect[i]; 46 46 47 // Test node 48 testNodeName (xml,"parameter"); 49 testSingleton (xml,true); 47 std::string child_name = xml->getName(); 50 48 51 // Take attributes of this tag 52 53 attributes_t attributes = xml->getAttributes(); 54 55 // std::cout << "Node [" << name << "]" << std::endl; 56 // std::cout << " * nb attributes : " << xml->getAttributes().size() << std::endl; 57 58 attribute_t value_name = getAttribute(xml,attributes,"name" ); 59 attribute_t value = getAttribute(xml,attributes,"value"); 60 61 testAttributesEmpty(xml,attributes); 62 63 // Insert in array 64 Parameter_affectation * param = new Parameter_affectation(value_name, 65 value ); 66 67 insert(param); 49 //-------------------------------------------- 50 // Child : Parameter 51 //-------------------------------------------- 52 if (child_name == "parameter") 53 { 54 // testNodeName (xml,"parameter"); 55 testSingleton (xml,true); 56 57 // Take attributes of this tag 58 59 attributes_t attributes = xml->getAttributes(); 60 61 // std::cout << "Node [" << name << "]" << std::endl; 62 // std::cout << " * nb attributes : " << xml->getAttributes().size() << std::endl; 63 64 attribute_t value_name = getAttribute(xml,attributes,"name" ); 65 attribute_t value = getAttribute(xml,attributes,"value"); 66 67 testAttributesEmpty(xml,attributes); 68 69 // Insert in array 70 Parameter_affectation * param = new Parameter_affectation(value_name, 71 value ); 72 73 insert(param); 74 } 75 //-------------------------------------------- 76 // Child : Simulation 77 //-------------------------------------------- 78 else 79 { 80 testNodeName (xml,"simulation"); 81 testSingleton (xml,true); 82 } 68 83 } 69 84
Note: See TracChangeset
for help on using the changeset viewer.