source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Interface_get_reset.cpp @ 75

Last change on this file since 75 was 75, checked in by rosiere, 16 years ago

Update all component (except front_end) to :

  • new statistics model
  • no namespace std
File size: 880 bytes
Line 
1#ifdef VHDL_TESTBENCH
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/include/Interface.h"
10
11
12namespace morpheo              {
13namespace behavioural          {
14
15#undef  FUNCTION
16#define FUNCTION "Interface::get_reset"
17  Signal * Interface::get_reset (void)
18  {
19    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
20
21    Signal * reset = NULL;
22   
23    if (not _list_signal->empty())
24      {
25        std::list<Signal*>::iterator i = _list_signal->begin();
26       
27        while (i != _list_signal->end())
28          {
29            Signal * sig = (*i)->get_reset ();
30
31            if (sig != NULL)
32              {
33                if (reset != NULL)
34                  throw ErrorMorpheo ("<Interface.get_reset> : find too many reset.");
35                reset = sig;
36              }
37            ++i;
38          }
39      }
40
41    log_printf(FUNC,Behavioural,FUNCTION,"End");
42
43    return reset;
44  };
45
46}; // end namespace behavioural         
47}; // end namespace morpheo             
48#endif
Note: See TracBrowser for help on using the repository browser.