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:
629 bytes
|
Rev | Line | |
---|
[41] | 1 | #ifdef VHDL_TESTBENCH |
---|
| 2 | /* |
---|
| 3 | * $Id$ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/include/Interfaces.h" |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | |
---|
| 15 | uint32_t Interfaces::get_cycle (void) |
---|
| 16 | { |
---|
| 17 | uint32_t cycle = 0; |
---|
| 18 | |
---|
| 19 | if (not _list_interface->empty()) |
---|
| 20 | { |
---|
| 21 | list<Interface_fifo*>::iterator i = _list_interface->begin(); |
---|
| 22 | |
---|
| 23 | while (i != _list_interface->end()) |
---|
| 24 | { |
---|
| 25 | uint32_t x = (*i)->get_cycle (); |
---|
| 26 | |
---|
| 27 | if (x > cycle) |
---|
| 28 | cycle = x; |
---|
| 29 | |
---|
| 30 | ++i; |
---|
| 31 | } |
---|
| 32 | } |
---|
| 33 | |
---|
| 34 | return cycle; |
---|
| 35 | }; |
---|
| 36 | |
---|
| 37 | }; // end namespace behavioural |
---|
| 38 | }; // end namespace morpheo |
---|
| 39 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.