source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interfaces_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: 783 bytes
Line 
1#ifdef VHDL_TESTBENCH
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/include/Interfaces.h"
10
11
12namespace morpheo              {
13namespace 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        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.