source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_fifo_testbench_transaction.cpp @ 81

Last change on this file since 81 was 81, checked in by rosiere, 16 years ago
  • Finish Environment (and test)
  • Continue predictor_unit
  • Add external tools
  • svn keyword "Id" set
  • Property svn:keywords set to Id
File size: 1005 bytes
Line 
1#ifdef VHDL_TESTBENCH
2/*
3 * $Id: Interface_fifo_testbench_transaction.cpp 81 2008-04-15 18:40:01Z rosiere $
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/include/Interface_fifo.h"
10
11namespace morpheo              {
12namespace behavioural          {
13
14  bool Interface_fifo::testbench_transaction (void)
15  {
16    log_printf(FUNC,Behavioural,"testbench_transaction","Begin");
17   
18    bool res = true;
19
20    // list "val"
21    if (_list_signal_val->empty()== false)
22      {
23        std::list<Signal*>::iterator i = _list_signal_val->begin();
24
25        while ((i != _list_signal_val->end()) and (res == true))
26          {
27            res = (*i)->read<bool>();
28            ++i;
29          }
30      }
31
32    // list "ack"
33    if (_list_signal_ack->empty()== false)
34      {
35        std::list<Signal*>::iterator i = _list_signal_ack->begin();
36
37        while ((i != _list_signal_ack->end()) and (res == true))
38          {
39            res = (*i)->read<bool>();
40            ++i;
41          }
42      }
43
44    log_printf(FUNC,Behavioural,"testbench_transaction","End");
45
46    return res;
47  };
48
49}; // end namespace behavioural         
50}; // end namespace morpheo             
51#endif
Note: See TracBrowser for help on using the repository browser.