Ignore:
Timestamp:
May 31, 2007, 11:22:29 PM (17 years ago)
Author:
rosiere
Message:

Interface et vhdl_testbench : l'appel aux fonction add_input et add_ouput est maintenant réalisé par la classe Interface (et autre).

2 remarques :

  • tester avec des sous composants (en particulier les sorties d'un est directement relié au sortie d'un autre)
  • Signal_testbench.cpp -> l'optimisé (par exemple pointeur de fonction afin d'éviter le test et le switch)
File:
1 edited

Legend:

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

    r31 r38  
    1818    _localisation (localisation)
    1919  {
    20     _list_signal = new list<Signal>;
     20    log_printf(FUNC,Behavioural,"Interface","Begin");
     21
     22    _comment     = "";
     23    _list_signal = new (list<Signal*>);
     24
    2125#ifdef POSITION
    22     _is_map      = false;
     26     _is_map        = false;
     27     _entity_map    = NULL;
     28     _interface_map = NULL;
    2329#endif
     30
     31    log_printf(FUNC,Behavioural,"Interface","End");
    2432  };
    2533
     
    2937    _localisation (interface._localisation)
    3038  {
    31     _comment     = interface._comment    ;
    32     _list_signal = interface._list_signal;
     39    log_printf(FUNC,Behavioural,"Interface (copy)","Begin");
     40    _comment       = interface._comment    ;
     41    _list_signal   = interface._list_signal;
    3342#ifdef POSITION
    34     _is_map      = interface._is_map     ;
     43    _is_map        = interface._is_map     ;
     44    _entity_map    = interface._entity_map   ;
     45    _interface_map = interface._interface_map;
    3546#endif
     47    log_printf(FUNC,Behavioural,"Interface (copy)","End");
    3648  };
    3749 
    3850  Interface::~Interface ()
    3951  {
     52    log_printf(FUNC,Behavioural,"~Interface","Begin");
     53
     54    if (_list_signal->empty()== false)
     55      {
     56        list<Signal*>::iterator i     = _list_signal->begin();
     57
     58        while (i != _list_signal->end())
     59          {
     60            delete (*i);
     61            ++i;
     62          }
     63      }
     64
    4065    delete _list_signal;
     66    log_printf(FUNC,Behavioural,"~Interface","End");
    4167  };
    4268 
Note: See TracChangeset for help on using the changeset viewer.