source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Signal_get_connect_from_signal.cpp

Last change on this file 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: 662 bytes
Line 
1/*
2 * $Id: Signal_get_connect_from_signal.cpp 81 2008-04-15 18:40:01Z rosiere $
3 *
4 * [ Description ]
5 *
6 */
7
8#include "Behavioural/include/Signal.h"
9
10
11namespace morpheo              {
12namespace behavioural          {
13
14#undef  FUNCTION
15#define FUNCTION "Signal::get_connect_from_signal"
16  Signal * Signal::get_connect_from_signal (void)
17  {
18    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
19
20    Signal * _return = _connect_from_signal;
21
22    while ((_return != NULL) and
23           (_return->get_direction () == INTERNAL))
24      _return = _return->get_connect_from_signal();
25
26    log_printf(FUNC,Behavioural,FUNCTION,"End");
27
28    return _return;
29  };
30
31}; // end namespace behavioural         
32}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.