Last change
on this file since 122 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:
718 bytes
|
Rev | Line | |
---|
[41] | 1 | #ifdef VHDL_TESTBENCH |
---|
| 2 | /* |
---|
| 3 | * $Id: Interface_fifo_get_cycle.cpp 81 2008-04-15 18:40:01Z rosiere $ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/include/Interface_fifo.h" |
---|
| 10 | |
---|
| 11 | |
---|
| 12 | namespace morpheo { |
---|
| 13 | namespace behavioural { |
---|
| 14 | |
---|
[43] | 15 | #undef FUNCTION |
---|
| 16 | #define FUNCTION "Interface_fifo::get_cycle" |
---|
[41] | 17 | uint32_t Interface_fifo::get_cycle (void) |
---|
| 18 | { |
---|
[43] | 19 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
| 20 | |
---|
| 21 | uint32_t _return; |
---|
| 22 | |
---|
[41] | 23 | if (_test_exhaustive == true) |
---|
[43] | 24 | _return = Interface::get_cycle(); |
---|
| 25 | else |
---|
| 26 | if (_list_cycle->empty() == true) |
---|
| 27 | _return = 0; |
---|
| 28 | else |
---|
| 29 | _return = _list_cycle->back(); |
---|
[42] | 30 | |
---|
[43] | 31 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
| 32 | |
---|
| 33 | return _return; |
---|
[41] | 34 | }; |
---|
| 35 | |
---|
| 36 | }; // end namespace behavioural |
---|
| 37 | }; // end namespace morpheo |
---|
| 38 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.