Ignore:
Timestamp:
Sep 28, 2007, 2:58:08 PM (17 years ago)
Author:
rosiere
Message:
  • VHDL - RegisterFile_Multi_Banked (only partial_crossbar)
  • SystemC - modif Component, interface and co -> ajout du type Tusage_T pour instancier un coposant mais ne demander que le VHDL ou le systemC.
  • Séminaire interne
Location:
trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component
Files:
1 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/include/New_Component.h

    r53 r57  
    1616#include "Common/include/ToString.h"
    1717#include "Common/include/Debug.h"
     18#include "Behavioural/include/Types.h"
    1819
    1920#include "Behavioural/@DIRECTORY/include/Parameters.h"
    20 #include "Behavioural/@DIRECTORY/include/Types.h"
    2121#ifdef STATISTICS
    2222#include "Behavioural/@DIRECTORY/include/Statistics.h"
     
    2626#include "Behavioural/include/Vhdl.h"
    2727#endif
     28#include "Behavioural/include/Usage.h"
    2829
    2930using namespace std;
     
    3132namespace morpheo {
    3233namespace behavioural {
     34
    3335@NAMESPACE_BEGIN
    3436
     
    4143    // Parameters
    4244  protected : const string       _name;
     45  protected : const Parameters * _param;
     46  private   : const Tusage_t     _usage;
    4347
    44   protected : const Parameters * _param;
    4548//#ifdef STATISTICS
    4649//  protected : const morpheo::behavioural::Parameters_Statistics * _param_statistics;
     
    7275    SC_HAS_PROCESS (@COMPONENT);
    7376#endif
    74   public  :          @COMPONENT              (
     77  public  :          @COMPONENT             
     78  (
    7579#ifdef SYSTEMC
    76                                               sc_module_name                                name,
     80   sc_module_name                                name,
    7781#else                                         
    78                                               string                                        name,
     82   string                                        name,
    7983#endif                                         
    8084#ifdef STATISTICS
    81                                               morpheo::behavioural::Parameters_Statistics * param_statistics,
     85   morpheo::behavioural::Parameters_Statistics * param_statistics,
    8286#endif
    83                                               Parameters                                  * param );
     87   Parameters                                  * param,
     88   morpheo::behavioural::Tusage_t                usage=USE_ALL
     89   );
    8490  public  :          ~@COMPONENT             (void);
    8591                                               
    86 #ifdef SYSTEMC                                 
    8792  private : void     allocation                (void);
    8893  private : void     deallocation              (void);
    8994                                               
     95#ifdef SYSTEMC                                 
    9096//#if defined(STATISTICS) or defined(VHDL_TESTBENCH)
    9197  public  : void     transition                (void);
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component.cpp

    r53 r57  
    1414#undef  FUNCTION
    1515#define FUNCTION "@COMPONENT::@COMPONENT"
     16  @COMPONENT::@COMPONENT
     17  (
    1618#ifdef SYSTEMC
    17   @COMPONENT::@COMPONENT (sc_module_name name,
     19   sc_module_name name,
    1820#else
    19   @COMPONENT::@COMPONENT (string name,
     21   string name,
    2022#endif
    2123#ifdef STATISTICS
    22                           morpheo::behavioural::Parameters_Statistics * param_statistics,
     24   morpheo::behavioural::Parameters_Statistics * param_statistics,
    2325#endif
    24                           morpheo::behavioural::@NAMESPACE_USE::Parameters * param ):
    25                               _name              (name)
    26                               ,_param            (param)
     26   morpheo::behavioural::@NAMESPACE_USE::Parameters * param,
     27   morpheo::behavioural::Tusage_t usage
     28   ):
     29    _name              (name)
     30    ,_param            (param)
     31    ,_usage            (usage)
    2732// #ifdef STATISTICS
    2833//                            ,_param_statistics (param_statistics)
     
    3136    log_printf(FUNC,@COMPONENT,FUNCTION,"Begin");
    3237
    33 #ifdef SYSTEMC
    3438    log_printf(INFO,@COMPONENT,FUNCTION,"Allocation");
    35 
    3639    allocation ();
    37 #endif
    3840
    3941#ifdef STATISTICS
     
    8082
    8183    _stat->generate_file(statistics(0));
    82    
    8384    delete _stat;
    8485#endif
    8586
    86 #ifdef SYSTEMC
    8787    log_printf(INFO,@COMPONENT,FUNCTION,"Deallocation");
    88 
    8988    deallocation ();
    90 #endif
    9189
    9290    log_printf(FUNC,@COMPONENT,FUNCTION,"End");
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_allocation.cpp

    r53 r57  
    1 #ifdef SYSTEMC
    21/*
    32 * $Id$
     
    5857}; // end namespace behavioural
    5958}; // end namespace morpheo             
    60 #endif
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/New_Component_deallocation.cpp

    r53 r57  
    1 #undef  FUNCTION
    2 #define FUNCTION "@COMPONENT::"
    3 
    4 #ifdef SYSTEMC
    51/*
    62 * $Id$
     
    3733}; // end namespace behavioural
    3834}; // end namespace morpheo             
    39 #endif
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/New_Component/src/Parameters_msg_error.cpp

    r53 r57  
    66 */
    77
     8#include "Behavioural/include/Types.h"
    89#include "Behavioural/@DIRECTORY/include/Parameters.h"
    9 #include "Behavioural/@DIRECTORY/include/Types.h"
    1010#include <sstream>
    1111using namespace std;
Note: See TracChangeset for help on using the changeset viewer.