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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.