Ignore:
Timestamp:
Jul 8, 2009, 8:40:08 PM (15 years ago)
Author:
rosiere
Message:

1) add constant method
2) test with systemc 2.2.0

Location:
trunk/IPs/systemC/processor/Morpheo/Behavioural/Configuration
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Configuration/SelfTest/src/test.cpp

    r120 r131  
    5959    cout << "------------------------------------------------------" << endl;
    6060
    61     Instance * instance = new Instance ("../../../Files/Instance_x2_w1_6.cfg",
     61    Instance * instance = new Instance ("../../../Files/Instance_x4_w8_1.cfg",
     62                                        generator1,
     63                                        _get_custom_information
     64                                        );
     65    instance->toFile("data_out");
     66   
     67    delete instance;
     68  }
     69
     70  {
     71    cout << "------------------------------------------------------" << endl;
     72
     73    Instance * instance = new Instance ("../../../Files/Instance_x4_w8_2.cfg",
    6274                                        generator1,
    6375                                        _get_custom_information
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Configuration/src/Generator_toXML.cpp

    r88 r131  
    77
    88#include "Behavioural/Configuration/include/Generator.h"
     9#include "Common/include/Basename.h"
    910
    1011namespace morpheo {
     
    1617  XML Generator::toXML (void)
    1718  {
    18     XML xml (basename(_filename.c_str()));
    19     xml.filename_extension("");
     19    XML xml (basename(_filename,false).c_str());
     20    xml.filename_extension("gen");
    2021   
    2122    xml.balise_open("parameters");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Configuration/src/Instance_toXML.cpp

    r88 r131  
    77
    88#include "Behavioural/Configuration/include/Instance.h"
     9#include "Common/include/Basename.h"
    910
    1011namespace morpheo {
     
    1617  XML Instance::toXML (void)
    1718  {
    18     XML xml (basename(_filename.c_str()));
    19     xml.filename_extension("");
     19    XML xml (basename(_filename,false).c_str());
     20    xml.filename_extension("cfg");
    2021   
    2122    xml.balise_open_begin("core");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/Configuration/src/Simulator_toXML.cpp

    r88 r131  
    77
    88#include "Behavioural/Configuration/include/Simulator.h"
     9#include "Common/include/Basename.h"
    910
    1011namespace morpheo {
     
    1617  XML Simulator::toXML (void)
    1718  {
    18     XML xml (basename(_filename.c_str()));
    19     xml.filename_extension("");
     19    XML xml (basename(_filename,false).c_str());
     20    xml.filename_extension("sim");
    2021   
    2122    xml.balise_open("parameters");
Note: See TracChangeset for help on using the changeset viewer.