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

Last change on this file since 43 was 43, checked in by rosiere, 17 years ago

Modif mineur : ajout d'info de débug

Release non stable

File size: 718 bytes
Line 
1#ifdef VHDL_TESTBENCH
2/*
3 * $Id$
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.