source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_testbench_body.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: 923 bytes
Line 
1#ifdef VHDL_TESTBENCH
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/include/Interface.h"
10#include "Behavioural/include/Entity.h"
11
12namespace morpheo              {
13namespace behavioural          {
14
15  void Interface::testbench_body (Vhdl * & vhdl,
16                                  string   counter_name)
17  {
18    log_printf(FUNC,Behavioural,"testbench_body","Begin");
19
20    if (_list_signal->empty()== false)
21      {
22        list<Signal*>::iterator i = _list_signal->begin();
23
24        vhdl->set_body("------------------------------------------------------");
25        vhdl->set_body("-- interface \""+_name+"\"");
26        vhdl->set_body("------------------------------------------------------");
27   
28        while (i != _list_signal->end())
29          {
30            (*i)->testbench_body(vhdl, counter_name);
31            ++i;
32          }
33      }
34
35    log_printf(FUNC,Behavioural,"testbench_body","End");
36  };
37
38}; // end namespace behavioural         
39}; // end namespace morpheo             
40#endif
Note: See TracBrowser for help on using the repository browser.