Last change
on this file since 41 was
40,
checked in by rosiere, 17 years ago
|
Interface et Signal, c'est deux classes enregistres la valeurs des signaux à chaque cycle ... étape préparatoire avan le changement de la classe Vhdl_Testbench
|
File size:
966 bytes
|
Rev | Line | |
---|
[40] | 1 | /* |
---|
| 2 | * $Id$ |
---|
| 3 | * |
---|
| 4 | * [ Description ] |
---|
| 5 | * |
---|
| 6 | */ |
---|
| 7 | |
---|
| 8 | #include "Behavioural/include/Interface_fifo.h" |
---|
| 9 | |
---|
| 10 | namespace morpheo { |
---|
| 11 | namespace behavioural { |
---|
| 12 | |
---|
| 13 | bool Interface_fifo::testbench_transaction (void) |
---|
| 14 | { |
---|
| 15 | log_printf(FUNC,Behavioural,"testbench_transaction","Begin"); |
---|
| 16 | |
---|
| 17 | bool res = true; |
---|
| 18 | |
---|
| 19 | // list "val" |
---|
| 20 | if (_list_signal_val->empty()== false) |
---|
| 21 | { |
---|
| 22 | list<Signal*>::iterator i = _list_signal_val->begin(); |
---|
| 23 | |
---|
| 24 | while ((i != _list_signal_val->end()) and (res == true)) |
---|
| 25 | { |
---|
| 26 | res = (*i)->read<bool>(); |
---|
| 27 | ++i; |
---|
| 28 | } |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | // list "ack" |
---|
| 32 | if (_list_signal_ack->empty()== false) |
---|
| 33 | { |
---|
| 34 | list<Signal*>::iterator i = _list_signal_ack->begin(); |
---|
| 35 | |
---|
| 36 | while ((i != _list_signal_ack->end()) and (res == true)) |
---|
| 37 | { |
---|
| 38 | res = (*i)->read<bool>(); |
---|
| 39 | ++i; |
---|
| 40 | } |
---|
| 41 | } |
---|
| 42 | |
---|
| 43 | log_printf(FUNC,Behavioural,"testbench_transaction","End"); |
---|
| 44 | |
---|
| 45 | return res; |
---|
| 46 | }; |
---|
| 47 | |
---|
| 48 | }; // end namespace behavioural |
---|
| 49 | }; // end namespace morpheo |
---|
Note: See
TracBrowser
for help on using the repository browser.