source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interfaces_set_port.cpp @ 38

Last change on this file since 38 was 38, checked in by rosiere, 17 years ago

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 size: 802 bytes
Line 
1#ifdef VHDL
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/include/Interfaces.h"
10
11
12namespace morpheo              {
13namespace behavioural          {
14
15  void Interfaces::set_port (Vhdl * & vhdl)
16  {
17    if (not _list_interface->empty())
18      {
19        list<Interface*>::iterator i     = _list_interface->begin();
20       
21        while (i != _list_interface->end())
22          {
23            (*i)->set_port (vhdl);
24            ++i;
25          }
26      }
27  };
28
29  void Interfaces::set_port (Vhdl_Testbench * & vhdl_testbench)
30  {
31    if (not _list_interface->empty())
32      {
33        list<Interface*>::iterator i     = _list_interface->begin();
34       
35        while (i != _list_interface->end())
36          {
37            (*i)->set_port (vhdl_testbench);
38            ++i;
39          }
40      }
41  };
42
43}; // end namespace behavioural         
44}; // end namespace morpheo             
45#endif
Note: See TracBrowser for help on using the repository browser.