Ignore:
Timestamp:
May 28, 2007, 10:38:18 PM (17 years ago)
Author:
rosiere
Message:

Class Position qui encapsule la génération des fichiers de positions

File:
1 edited

Legend:

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

    r29 r31  
    2626#endif
    2727#include "Include/ToString.h"
     28#include "Include/ErrorMorpheo.h"
    2829#include "Include/Debug.h"
    2930
     
    3536  class Interface
    3637  {
     38    friend class Interfaces;
     39
    3740    // -----[ fields ]----------------------------------------------------
    3841  private   : const string          _name         ;
     
    4043  private   : const localisation_t  _localisation ;
    4144  private   :       string          _comment      ;
    42   private   : list<Signal>          _list_signal  ;
     45
     46#ifdef POSITION
     47  private   :       bool            _is_map       ;
     48  private   :       void          * _entity_map   ; // Entity -> erreur cyclique
     49  private   :       void          * _interface_map; // pour être homogène avec _entity_map
     50#endif
     51  private   : list<Signal>        * _list_signal  ;
    4352
    4453    // -----[ methods ]---------------------------------------------------
     
    4756                                                          localisation_t localisation);
    4857
     58  public    :                       Interface            (const Interface    & interface);
    4959  public    :                       ~Interface           ();
    5060
    5161  public    : void                  set_comment          (string comment);
    52   public    : string                get_comment          (void          );
     62  private   : string                get_comment          (void          );
    5363
    54   public    : string                set_signal           (Signal          signal   );
    55   public    : string                set_signal           (string          name     ,
     64  private   : string                get_signal           (void);
     65  public    : Signal *              set_signal           (string          name     ,
    5666                                                          direction_t     direction,
    5767                                                          uint32_t        size     ,
     
    6373                                                          presence_port_t presence_port=PORT_VHDL_YES_TESTBENCH_YES)
    6474    {
    65       string str = set_signal (name, IN , size, presence_port);
    66       sc_in_clk * signal = new sc_in_clk (str.c_str());
     75      Signal * sig = set_signal (name, IN , size, presence_port);
     76      sc_in_clk * signal = new sc_in_clk (sig->_name.c_str());
    6777      return signal;
    6878    };
     
    7383                                                         presence_port_t presence_port=PORT_VHDL_YES_TESTBENCH_YES)
    7484    {
    75       string str = set_signal (name, IN , size, presence_port);
    76       sc_in <T> * signal = new sc_in <T> (str.c_str());
     85      Signal * sig = set_signal (name, IN , size, presence_port);
     86      sc_in <T> * signal = new sc_in <T> (sig->_name.c_str());
    7787      return signal;
    7888    };
     
    8393                                                         presence_port_t presence_port=PORT_VHDL_YES_TESTBENCH_YES)
    8494    {
    85       string str = set_signal (name, OUT , size, presence_port);
    86       sc_out <T> * signal = new sc_out <T> (str.c_str());
     95      Signal * sig = set_signal (name, OUT , size, presence_port);
     96      sc_out <T> * signal = new sc_out <T> (sig->_name.c_str());
    8797      return signal;
    8898    };
    8999#endif
    90 
    91   public    : string                get_signal           (void);
    92100
    93101#ifdef VHDL
     
    98106#endif
    99107
     108#ifdef POSITION
     109  public    : void                  port_map             (void * entity,
     110                                                          void * interface);
     111#endif
     112
    100113  public    : XML                   toXML                (void);
    101 
     114#ifdef POSITION
     115  public    : XML                   toXML_mapping        (void);
     116#endif
    102117  public    : friend ostream&       operator<<           (ostream& output_stream,
    103118                                                          morpheo::behavioural::Interface & x);
Note: See TracChangeset for help on using the changeset viewer.