Ignore:
Timestamp:
Dec 8, 2007, 5:12:36 PM (17 years ago)
Author:
rosiere
Message:

read_queue : systemC et vhdl ok !
queue : quelques petits modif pour avoir une queue de taille 1
nettoyage des fichiers *mkf*

File:
1 edited

Legend:

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

    r67 r68  
    4242
    4343#ifdef STATISTICS
    44     log_printf(INFO,Queue,FUNCTION,"Allocation of statistics");
    45 
    46     // Allocation of statistics
    47     _stat = new Statistics (static_cast<string>(_name),
    48                             param_statistics          ,
    49                             param);
     44    if (_usage & USE_STATISTICS)
     45      {
     46        log_printf(INFO,Queue,FUNCTION,"Allocation of statistics");
     47       
     48        // Allocation of statistics
     49        _stat = new Statistics (static_cast<string>(_name),
     50                                param_statistics          ,
     51                                param);
     52      }
    5053#endif
    5154
    5255#ifdef VHDL
    53     // generate the vhdl
    54     log_printf(INFO,Queue,FUNCTION,"Generate the vhdl");
    55 
    56     vhdl();
     56    if (_usage & USE_VHDL)
     57      {
     58        // generate the vhdl
     59        log_printf(INFO,Queue,FUNCTION,"Generate the vhdl");
     60       
     61        vhdl();
     62      }
    5763#endif
    5864
    5965#ifdef SYSTEMC
    60 //#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    61     log_printf(INFO,Queue,FUNCTION,"Method - transition");
    62 
    63     SC_METHOD (transition);
    64     dont_initialize ();
    65     sensitive << (*(in_CLOCK)).pos();
    66 //#endif
    67 
     66    if (_usage & USE_SYSTEMC)
     67      {
     68        log_printf(INFO,Queue,FUNCTION,"Method - transition");
     69       
     70        SC_METHOD (transition);
     71        dont_initialize ();
     72        sensitive << (*(in_CLOCK)).pos();
     73       
    6874# ifdef SYSTEMCASS_SPECIFIC
    69     // List dependency information
     75        // List dependency information
    7076# endif   
    71 
    72     log_printf(INFO,Queue,FUNCTION,"Method - genMoore");
    73 
    74     SC_METHOD (genMoore);
    75     dont_initialize ();
    76     sensitive << (*(in_CLOCK)).neg();
    77 
     77       
     78        log_printf(INFO,Queue,FUNCTION,"Method - genMoore");
     79       
     80        SC_METHOD (genMoore);
     81        dont_initialize ();
     82        sensitive << (*(in_CLOCK)).neg();
     83       
    7884# ifdef SYSTEMCASS_SPECIFIC
    79     // List dependency information
     85        // List dependency information
    8086# endif   
    81 
     87       
    8288#endif
     89      }
    8390    log_printf(FUNC,Queue,FUNCTION,"End");
    8491  };
     
    9198
    9299#ifdef STATISTICS
    93     log_printf(INFO,Queue,FUNCTION,"Generate Statistics file");
    94 
    95     _stat->generate_file(statistics(0));
    96     delete _stat;
     100    if (_usage & USE_STATISTICS)
     101      {
     102        log_printf(INFO,Queue,FUNCTION,"Generate Statistics file");
     103       
     104        _stat->generate_file(statistics(0));
     105        delete _stat;
     106      }
    97107#endif
    98108
Note: See TracChangeset for help on using the changeset viewer.