source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Signal_get_reset.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: 766 bytes
Line 
1#ifdef VHDL_TESTBENCH
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/include/Signal.h"
10
11
12namespace morpheo              {
13namespace behavioural          {
14
15#undef  FUNCTION
16#define FUNCTION "Signal::get_reset"
17  Signal * Signal::get_reset (void)
18  {
19    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
20
21    Signal * _return;
22    if ((_presence_port == RESET_VHDL_YES) or
23        (_presence_port == RESET_VHDL_NO ))
24      {
25        if (_size != 1)
26          throw ErrorMorpheo ("<Signal.get_reset> : size of signal reset is more than one bit.");
27
28        _return = this;
29      }
30    else
31      _return = NULL;
32
33    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
34    return _return;
35  };
36
37}; // end namespace behavioural         
38}; // end namespace morpheo             
39#endif
Note: See TracBrowser for help on using the repository browser.