Last change
on this file since 136 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:
788 bytes
|
Line | |
---|
1 | #ifdef VHDL_TESTBENCH |
---|
2 | /* |
---|
3 | * $Id: Interfaces_get_cycle.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
4 | * |
---|
5 | * [ Description ] |
---|
6 | * |
---|
7 | */ |
---|
8 | |
---|
9 | #include "Behavioural/include/Interfaces.h" |
---|
10 | |
---|
11 | |
---|
12 | namespace morpheo { |
---|
13 | namespace behavioural { |
---|
14 | |
---|
15 | #undef FUNCTION |
---|
16 | #define FUNCTION "Interfaces::get_cycle" |
---|
17 | uint32_t Interfaces::get_cycle (void) |
---|
18 | { |
---|
19 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
20 | uint32_t cycle = 0; |
---|
21 | |
---|
22 | if (not _list_interface->empty()) |
---|
23 | { |
---|
24 | std::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 | } |
---|
36 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
37 | |
---|
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.