Last change
on this file since 61 was
43,
checked in by rosiere, 17 years ago
|
Modif mineur : ajout d'info de débug
Release non stable
|
File size:
783 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 | |
---|
[43] | 15 | #undef FUNCTION |
---|
| 16 | #define FUNCTION "Interfaces::get_cycle" |
---|
[41] | 17 | uint32_t Interfaces::get_cycle (void) |
---|
| 18 | { |
---|
[43] | 19 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
[41] | 20 | uint32_t cycle = 0; |
---|
| 21 | |
---|
| 22 | if (not _list_interface->empty()) |
---|
| 23 | { |
---|
| 24 | list<Interface_fifo*>::iterator i = _list_interface->begin(); |
---|
| 25 | |
---|
| 26 | while (i != _list_interface->end()) |
---|
| 27 | { |
---|
| 28 | uint32_t x = (*i)->get_cycle (); |
---|
| 29 | |
---|
| 30 | if (x > cycle) |
---|
| 31 | cycle = x; |
---|
| 32 | |
---|
| 33 | ++i; |
---|
| 34 | } |
---|
| 35 | } |
---|
[43] | 36 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
| 37 | |
---|
[41] | 38 | return cycle; |
---|
| 39 | }; |
---|
| 40 | |
---|
| 41 | }; // end namespace behavioural |
---|
| 42 | }; // end namespace morpheo |
---|
| 43 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.