source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_fifo_testbench_test_transaction.cpp @ 42

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

Modification des classes d'encapsulation des interfaces :

  • gère les signaux à écrire dans le vhdl
  • les traces pour le testbench
  • la génération des vhdl structurelles

-> test sur la Pattern History Table

File size: 1.1 KB
Line 
1#ifdef VHDL_TESTBENCH
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/include/Interface_fifo.h"
10
11namespace morpheo              {
12namespace behavioural          {
13
14  string Interface_fifo::testbench_test_transaction (Vhdl * & vhdl)
15  {
16    log_printf(FUNC,Behavioural,"testbench_test_transaction","Begin");
17   
18    string name = testbench_test_transaction_name(vhdl);
19
20    vhdl->set_body(name+" <= '1'");
21
22    // list "val"
23    if (_list_signal_val->empty()== false)
24      {
25        list<Signal*>::iterator i = _list_signal_val->begin();
26
27        while (i != _list_signal_val->end())
28          {
29            vhdl->set_body("\tand "+(*i)->get_name());
30            ++i;
31          }
32      }
33
34    // list "ack"
35    if (_list_signal_ack->empty()== false)
36      {
37        list<Signal*>::iterator i = _list_signal_ack->begin();
38
39        while (i != _list_signal_ack->end())
40          {
41            vhdl->set_body("\tand "+(*i)->get_name());
42            ++i;
43          }
44      }
45
46    vhdl->set_body("\t;");
47    vhdl->set_body("");
48
49    log_printf(FUNC,Behavioural,"testbench_test_transaction","End");
50
51    return name;
52  };
53
54}; // end namespace behavioural         
55}; // end namespace morpheo             
56#endif
Note: See TracBrowser for help on using the repository browser.