Last change
on this file since 61 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:
995 bytes
|
Line | |
---|
1 | #ifdef VHDL_TESTBENCH |
---|
2 | /* |
---|
3 | * $Id$ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/include/Interface_fifo.h" |
---|
10 | |
---|
11 | namespace morpheo { |
---|
12 | namespace 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 | 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 | 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.