Ignore:
Timestamp:
Jul 5, 2007, 5:50:19 PM (17 years ago)
Author:
rosiere
Message:

Modification des classes d'encapsulation des interfaces :

  • gère les signaux à écrire dans le vhdl
  • les traces pour le testbench
  • la génération des vhdl structurelles

-> test sur la Pattern History Table

File:
1 edited

Legend:

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

    r2 r42  
    1515
    1616#ifdef SYSTEMC
    17   Shifter::Shifter (sc_module_name name,
     17  Shifter::Shifter (sc_module_name name
    1818#else
    19   Shifter::Shifter (string name,
     19  Shifter::Shifter (string name
    2020#endif
    2121#ifdef STATISTICS
    22                     morpheo::behavioural::Parameters_Statistics             param_statistics,
     22                    ,morpheo::behavioural::Parameters_Statistics             param_statistics
    2323#endif
    24                     morpheo::behavioural::generic::shifter::Parameters param ):
     24                    ,morpheo::behavioural::generic::shifter::Parameters param ):
    2525                    _name   (name)
    2626                    ,_param (param)
    2727  {
     28#ifdef SYSTEMC
     29    allocation ();
     30#endif
     31
    2832#ifdef STATISTICS
    2933    // Allocation of statistics
     
    3135                            param_statistics          ,
    3236                            param);
    33 #endif
    34 
    35 #ifdef VHDL_TESTBENCH
    36     // Creation of a testbench
    37     //  -> port
    38     //  -> clock's signals
    39     _vhdl_testbench = new Vhdl_Testbench (_name);
    40     vhdl_testbench_port           (*_vhdl_testbench);
    41     _vhdl_testbench->set_clock    ("in_CLOCK",false);
    4237#endif
    4338
     
    4843
    4944#ifdef SYSTEMC
    50     allocation ();
    51 
    5245#if (defined(STATISTICS) || defined (VHDL_TESTBENCH))
    5346    SC_METHOD (transition);
     
    107100#endif
    108101
    109 #ifdef VHDL_TESTBENCH
    110     // generate the test bench
    111     _vhdl_testbench->generate_file();
    112     delete _vhdl_testbench;
    113 #endif
    114 
    115102#ifdef STATISTICS
    116103    _stat->generate_file(statistics(0));
Note: See TracChangeset for help on using the changeset viewer.