Ignore:
Timestamp:
Jul 17, 2007, 4:47:56 PM (17 years ago)
Author:
rosiere
Message:

Modification des classes d'encapsulation des interfaces.
Stable sur tous les composants actuels

Location:
trunk/IPs/systemC/processor/Morpheo/Behavioural/include
Files:
14 edited

Legend:

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

    r42 r44  
    1818//#include "Behavioural/include/Description.h"
    1919#include "Behavioural/include/Entity.h"
    20 #include "Include/ToString.h"
    21 #include "Include/Debug.h"
     20#include "Common/include/ToString.h"
     21#include "Common/include/Debug.h"
    2222
    2323using namespace std;
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Configuration_Parameters.h

    r40 r44  
    1313#include "Behavioural/include/XML.h"
    1414#include "Behavioural/include/Environnement.h"
    15 #include "Include/ErrorMorpheo.h"
    16 #include "Include/ToString.h"
     15#include "Common/include/ErrorMorpheo.h"
     16#include "Common/include/ToString.h"
    1717using namespace std;
    1818
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Debug_component.h

    r41 r44  
    22#define DEBUG_COMPONENT_H
    33
    4 #define DEBUG_Behavioural                                   false
     4#define DEBUG_Behavioural                                   true
    55#define   DEBUG_Generic                                     false
    66#define     DEBUG_Counter                                   false
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Direction.h

    r42 r44  
    22#define morpheo_behavioural_Direction_h
    33
    4 #include "Include/ToString.h"
     4#include "Common/include/ToString.h"
    55
    66namespace morpheo              {
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Entity.h

    r42 r44  
    1515#include "Behavioural/include/Interfaces.h"
    1616#include "Behavioural/include/Schema.h"
    17 #include "Include/ErrorMorpheo.h"
    18 #include "Include/ToString.h"
    19 #include "Include/Debug.h"
     17#include "Common/include/ErrorMorpheo.h"
     18#include "Common/include/ToString.h"
     19#include "Common/include/Debug.h"
    2020
    2121using namespace std;
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Interface.h

    r42 r44  
    2222#include "Behavioural/include/Vhdl.h"
    2323#endif
    24 #include "Include/ToString.h"
    25 #include "Include/ErrorMorpheo.h"
    26 #include "Include/Debug.h"
     24#include "Common/include/ToString.h"
     25#include "Common/include/ErrorMorpheo.h"
     26#include "Common/include/Debug.h"
    2727
    2828using namespace std;
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Interfaces.h

    r42 r44  
    1313#include <list>
    1414#include "Behavioural/include/Interface_fifo.h"
    15 #include "Include/ToString.h"
    16 #include "Include/Debug.h"
     15#include "Common/include/ToString.h"
     16#include "Common/include/Debug.h"
    1717#ifdef VHDL
    1818#include "Behavioural/include/Vhdl.h"
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Localisation.h

    r42 r44  
    33#define morpheo_behavioural_Localisation_h
    44
    5 #include "Include/ToString.h"
     5#include "Common/include/ToString.h"
    66
    77namespace morpheo              {
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Parameters.h

    r43 r44  
    1414#include "Behavioural/Constant/Constant_OpenRISC.h"
    1515#include "Behavioural/include/Environnement.h"
    16 #include "Include/ErrorMorpheo.h"
    17 #include "Include/ToString.h"
    18 #include "Include/Debug.h"
     16#include "Common/include/ErrorMorpheo.h"
     17#include "Common/include/ToString.h"
     18#include "Common/include/Debug.h"
    1919
    2020using namespace morpheo::behavioural::constant;
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Schema.h

    r31 r44  
    44#define morpheo_behavioural_Schema_h
    55
    6 #include "Include/ToString.h"
     6#include "Common/include/ToString.h"
    77
    88namespace morpheo              {
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Signal.h

    r42 r44  
    2222#include "Behavioural/include/Direction.h"
    2323#include "Behavioural/include/XML.h"
    24 #include "Include/ErrorMorpheo.h"
    25 #include "Include/ToBase2.h"
    26 #include "Include/ToString.h"
    27 #include "Include/Debug.h"
     24#include "Common/include/ErrorMorpheo.h"
     25#include "Common/include/ToBase2.h"
     26#include "Common/include/ToString.h"
     27#include "Common/include/Debug.h"
    2828
    2929using namespace std;
     
    5858  private   : const presence_port_t _presence_port;
    5959
    60   private   : Signal *              _signal       ;
    61   private   : bool                  _is_allocate  ;
    62   private   : void *                _sc_signal    ;
    63   private   : bool                  _is_map       ;
    64   private   : void *                _sc_signal_map;
     60  private   : Signal *              _connect_to_signal;   // the actual implementaion, this signal link with one signal (but if signal is an output, it can be connect with many signal ...)
     61  private   : Signal *              _connect_from_signal; // producter of signal. If NULL, then producteur is the current entity
     62  private   : bool                  _is_allocate  ; // Have allocate a sc_in or sc_out port
     63  private   : void *                _sc_signal    ; // sc_in or sc_out associated at this signal
     64  private   : bool                  _is_map       ;
     65  private   : void *                _sc_signal_map; // sc_out generated this signal
    6566  private   : type_info_t           _type_info    ;
    6667
     
    7980  public    : string            get_name        (void);
    8081  public    : uint32_t          get_size        (void);
    81   public    : Signal *          get_signal_link (void);
     82  public    : bool              get_is_map      (void);
     83  public    : Signal *          get_connect_to_signal (void);
     84  public    : Signal *          get_connect_from_signal (void);
     85  public    : direction_t       get_direction   (void);
    8286
    8387  public    : bool              presence_vhdl      (void);
    8488  public    : bool              presence_testbench (void);
    8589
    86   public    : void              mapping         (Signal * signal);
    87   public    : void              link            (Signal * signal);
     90//   public    : void              mapping         (Signal * signal);
     91  public    : void              link            (Signal * signal  ,
     92                                                 bool     is_port_component);
    8893
    8994#ifdef SYSTEMC         
     
    127132    }
    128133
     134#undef  FUNCTION
     135#define FUNCTION "Signal::alloc"
    129136  public    : template <typename T>
    130               void              alloc           (void * port)
    131     {
     137              void              alloc           (void * sc_signal)
     138    {
     139      log_printf(FUNC,Behavioural,FUNCTION,"Begin");
     140
    132141      if (_type_info != UNKNOW)
    133142        throw (ErrorMorpheo ("Signal \""+_name+"\" : already allocate."));
    134143
    135       _is_allocate = true;
    136       _sc_signal      = port;
    137       _sc_signal_map  = port;
     144      _is_allocate    = true;
     145      _sc_signal      = sc_signal;
     146      _sc_signal_map  = sc_signal;
     147
     148      log_printf(TRACE,Behavioural,FUNCTION, "Allocation of %s - %.8x", _name.c_str(), (uint32_t)(_sc_signal_map));
    138149
    139150      if (typeid(T) == typeid(bool    ))
     
    153164      else
    154165        _type_info = UNKNOW;
     166
     167      log_printf(FUNC,Behavioural,FUNCTION,"End");
    155168    }
    156169#endif
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Statistics.h

    r40 r44  
    1515#include "Behavioural/include/Environnement.h"
    1616#include "Behavioural/include/Parameters_Statistics.h"
    17 #include "Include/Average.h"
    18 #include "Include/Percent.h"
     17#include "Common/include/Average.h"
     18#include "Common/include/Percent.h"
    1919
    2020using namespace std;
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/Vhdl.h

    r40 r44  
    1616#include "Behavioural/include/Environnement.h"
    1717#include "Behavioural/include/Direction.h"
    18 #include "Include/ToString.h"
    19 #include "Include/Debug.h"
     18#include "Common/include/ToString.h"
     19#include "Common/include/Debug.h"
    2020
    2121using namespace std;
  • trunk/IPs/systemC/processor/Morpheo/Behavioural/include/XML.h

    r43 r44  
    1313#include <math.h>
    1414#include <list>
    15 #include "Include/ToString.h"
    16 #include "Include/Debug.h"
     15#include "Common/include/ToString.h"
     16#include "Common/include/Debug.h"
    1717
    1818using namespace std;
Note: See TracChangeset for help on using the changeset viewer.