source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_fifo_get_cycle.cpp @ 146

Last change on this file since 146 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
Line 
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
12namespace morpheo              {
13namespace behavioural          {
14
15#undef  FUNCTION
16#define FUNCTION "Interface_fifo::get_cycle"
17  uint32_t Interface_fifo::get_cycle (void)
18  {
19    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
20   
21    uint32_t _return;
22
23    if (_test_exhaustive == true)
24      _return = Interface::get_cycle();
25    else
26      if (_list_cycle->empty() == true)
27        _return = 0;
28      else
29        _return = _list_cycle->back();
30
31    log_printf(FUNC,Behavioural,FUNCTION,"End");
32
33    return _return;
34  };
35
36}; // end namespace behavioural         
37}; // end namespace morpheo             
38#endif
Note: See TracBrowser for help on using the repository browser.