Ignore:
Timestamp:
Apr 5, 2007, 4:17:30 PM (17 years ago)
Author:
rosiere
Message:

Interface normalisé
Début du banc de registres multi niveaux

Location:
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src
Files:
1 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component.cpp

    r2 r15  
    3030
    3131#ifdef STATISTICS
     32    log_printf(INFO,@COMPONENT,"@COMPONENT","Allocation of statistics");
     33
    3234    // Allocation of statistics
    3335    _stat = new Statistics (static_cast<string>(_name),
     
    3739
    3840#ifdef VHDL_TESTBENCH
     41    log_printf(INFO,@COMPONENT,"@COMPONENT","Creation of a testbench");
     42
    3943    // Creation of a testbench
    4044    //  -> port
    4145    //  -> clock's signals
    4246    _vhdl_testbench = new Vhdl_Testbench (_name);
    43     vhdl_testbench_port           ();
    44     _vhdl_testbench->set_clock    ("in_CLOCK",true);
    4547#endif
    4648
    4749#ifdef VHDL
    4850    // generate the vhdl
     51    log_printf(INFO,@COMPONENT,"@COMPONENT","Generate the vhdl");
     52
    4953    vhdl();
    5054#endif
    5155
     56#ifdef VHDL_TESTBENCH
     57    // must be invoke after affect of port
     58    _vhdl_testbench->set_clock    ("in_CLOCK",true);
     59#endif
     60
    5261#ifdef SYSTEMC
     62    log_printf(INFO,@COMPONENT,"@COMPONENT","Allocation");
     63
    5364    allocation ();
     65
     66//#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
     67    log_printf(INFO,@COMPONENT,"@COMPONENT","Method - transition");
    5468
    5569    SC_METHOD (transition);
    5670    dont_initialize ();
    5771    sensitive_pos << *(in_CLOCK);
    58 
    59 //     SC_METHOD (genMoore);
    60 //     dont_initialize ();
    61 //     sensitive_neg << *(in_CLOCK);
     72//#endif
    6273
    6374#ifdef SYSTEMCASS_SPECIFIC
     
    7485
    7586#ifdef VHDL_TESTBENCH
     87    log_printf(INFO,@COMPONENT,"~@COMPONENT","Generate Testbench  file");
     88
    7689    // generate the test bench
    7790    _vhdl_testbench->generate_file();
     
    8093
    8194#ifdef STATISTICS
     95    log_printf(INFO,@COMPONENT,"~@COMPONENT","Generate Statistics file");
     96
    8297    _stat->generate_file(statistics(0));
    8398   
     
    86101
    87102#ifdef SYSTEMC
     103    log_printf(INFO,@COMPONENT,"~@COMPONENT","Deallocation");
     104
    88105    deallocation ();
    89106#endif
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_allocation.cpp

    r2 r15  
    1919    log_printf(FUNC,@COMPONENT,"allocation","Begin");
    2020
     21//#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    2122    in_CLOCK  = new SC_CLOCK           ("in_CLOCK");
     23//#endif
    2224    in_NRESET = new SC_IN (Tcontrol_t) ("in_NRESET");
    2325
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_deallocation.cpp

    r2 r15  
    1717    log_printf(FUNC,@COMPONENT,"deallocation","Begin");
    1818
     19//#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    1920    delete in_CLOCK;
     21//#endif
    2022    delete in_NRESET;
    2123
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_transition.cpp

    r2 r15  
    11#ifdef SYSTEMC
     2//#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    23/*
    34 * $Id$
     
    3233}; // end namespace morpheo             
    3334#endif
     35//#endif
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_vhdl_port.cpp

    r2 r15  
    99#include "Behavioural/@DIRECTORY/include/@COMPONENT.h"
    1010
     11#ifdef VHDL_TESTBENCH
     12# define VHDL_SET_PORT(name,direction,size) do {vhdl.set_port (name,direction,size); _vhdl_testbench->set_port (name,direction,size);} while(0)
     13#else
     14# define VHDL_SET_PORT(name,direction,size)     vhdl.set_port (name,direction,size)
     15#endif
     16
    1117namespace morpheo                    {
    1218namespace behavioural {
     
    1824
    1925    vhdl.set_port (" in_CLOCK" , IN, 1);
    20     vhdl.set_port (" in_NRESET", IN, 1);
     26    VHDL_SET_PORT (" in_NRESET", IN, 1);
    2127
    2228    log_printf(FUNC,@COMPONENT,"vhdl_port","End");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/Parameters.cpp

    r2 r15  
    2121  Parameters::Parameters (Parameters & param)
    2222  {
    23     log_printf(FUNC,@COMPONENT,"Parameters","Begin");
     23    log_printf(FUNC,@COMPONENT,"Parameters (copy)","Begin");
    2424    test();
    25     log_printf(FUNC,@COMPONENT,"Parameters","End");
     25    log_printf(FUNC,@COMPONENT,"Parameters (copy)","End");
    2626  };
    2727
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/Parameters_print.cpp

    r3 r15  
    2121
    2222    xml.balise_open("@COMPONENT_LOWER");
    23 //  xml.  singleton_begin("size_data");
    24 //  xml.    attribut("value",toString(_size_data));
    25 //  xml.  singleton_end();
    26 //  xml.  singleton_begin("nb_port  ");
    27 //  xml.    attribut("value",toString(_nb_port));
    28 //  xml.  singleton_end();
     23//  xml.singleton_begin("size_data"); xml.attribut("value",toString(_size_data)); xml.singleton_end();
     24//  xml.singleton_begin("nb_port  "); xml.attribut("value",toString(_nb_port  )); xml.singleton_end();
    2925    xml.balise_close();
    3026
Note: See TracChangeset for help on using the changeset viewer.