/* * $Id: test.cpp 133 2009-07-13 15:19:10Z rosiere $ * * [ Description ] * * Test */ #include "Behavioural/Configuration/SelfTest/include/test.h" #include "Behavioural/Custom/include/Custom_default.h" #include "Behavioural/Custom/include/Custom_example.h" #include "Common/include/Time.h" void test (string name) { Time * timing = new Time (false); morpheo::behavioural::custom::custom_information_t (*_get_custom_information) (void) = &(morpheo::behavioural::custom::default_get_custom_information); cout << "------------------------------------------------------" << endl; Simulator * simulator1 = new Simulator ("../../../Files/Morpheo.sim"); //cout << *simulator1 << endl; simulator1->toFile("data_out"); cout << "------------------------------------------------------" << endl; Generator * generator1 = new Generator ("../../../Files/Morpheo.gen"); //cout << *generator1 << endl; generator1->toFile("data_out"); cout << "------------------------------------------------------" << endl; Instance * instance1 = new Instance ("../../../Files/Instance_x1_w1_0.cfg", generator1, _get_custom_information ); // cout << *instance1 << endl; instance1->toFile("data_out"); cout << "------------------------------------------------------" << endl; Configuration * configuration1 = new Configuration("../../../Files/Morpheo.sim", "../../../Files/Morpheo.gen", "../../../Files/Instance_x1_w1_0.cfg", _get_custom_information); //cout << *configuration1 << endl; configuration1->toFile("data_out"); if (1) { cout << "------------------------------------------------------" << endl; Instance * instance = new Instance ("../../../Files/Instance_x4_w8_01.cfg", generator1, _get_custom_information); delete instance; } if (1) { cout << "------------------------------------------------------" << endl; Instance * instance = new Instance ("../../../Files/Instance_x4_w8_02.cfg", generator1, _get_custom_information); delete instance; } if (1) { cout << "------------------------------------------------------" << endl; Instance * instance = new Instance ("../../../Files/Instance_x4_w8_03.cfg", generator1, _get_custom_information); delete instance; } if (0) { cout << "------------------------------------------------------" << endl; Instance * instance = new Instance ("../../../Files/Instance_x4_w8_04.cfg", generator1, _get_custom_information); delete instance; } if (1) { cout << "------------------------------------------------------" << endl; Instance * instance = new Instance ("../../../Files/Instance_x4_w8_05.cfg", generator1, _get_custom_information); delete instance; } if (0) { cout << "------------------------------------------------------" << endl; Instance * instance = new Instance ("../../../Files/Instance_x4_w8_06.cfg", generator1, _get_custom_information); delete instance; } if (0) { cout << "------------------------------------------------------" << endl; Instance * instance = new Instance ("../../../Files/Instance_x4_w8_07.cfg", generator1, _get_custom_information); delete instance; } if (0) { cout << "------------------------------------------------------" << endl; Instance * instance = new Instance ("../../../Files/Instance_x4_w8_08.cfg", generator1, _get_custom_information); delete instance; } if (0) { cout << "------------------------------------------------------" << endl; Instance * instance = new Instance ("../../../Files/Instance_x4_w8_09.cfg", generator1, _get_custom_information); delete instance; } if (0) { cout << "------------------------------------------------------" << endl; Instance * instance = new Instance ("../../../Files/Instance_x4_w8_10.cfg", generator1, _get_custom_information); delete instance; } delete configuration1; delete instance1; delete generator1; delete simulator1; delete timing; }