source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_set_signal.cpp @ 41

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

Vhdl_Testbench : Modification du testbench. Maintenant complétement encapsuler dans la classe "Interfaces".
Suppression de la class Vhdl_Testbench dans un avenir proche :D
Suppression du répertoire Configuration.old

File size: 1.0 KB
RevLine 
[29]1/*
2 * $Id$
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/Interface.h"
9
10namespace morpheo              {
11namespace behavioural          {
12
[31]13  Signal * Interface::set_signal (string          name     ,
14                                  direction_t     direction,
15                                  uint32_t        size     ,
16                                  presence_port_t presence_port)
[29]17  {
[38]18    log_printf(FUNC,Behavioural,"set_signal","Begin");
[29]19
[40]20    string signame = signal_name(_name, name, direction);
[38]21
[31]22    Signal * sig = new Signal (signame      ,
23                               direction    ,
24                               size         ,
25                               presence_port);
[29]26
[38]27    _list_signal->push_back (sig);
28
29    log_printf(FUNC,Behavioural,"set_signal","End");
30
[31]31    return sig;
[29]32  };
33
[41]34#ifdef VHDL
35#  ifdef VHDL_TESTBENCH
36  void Interface::set_signal (Vhdl * & vhdl)
37  {
38    if (not _list_signal->empty())
39      {
40        list<Signal*>::iterator i = _list_signal->begin();
41       
42        while (i != _list_signal->end())
43          {
44            (*i)->set_signal (vhdl);
45            ++i;
46          }
47      }
48  };
49#  endif
50#endif
51
[29]52}; // end namespace behavioural         
53}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.