source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Signal_mapping.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: 982 bytes
Line 
1/*
2 * $Id$
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::mapping"
16  void Signal::mapping (Signal * signal)
17  {
18    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
19
20    if (_is_map == true)
21      throw (ErrorMorpheo ("<Signal::mapping> Can't mapping signal \""+_name+"\" with \""+signal->get_name()+"\", because it's already map."));
22   
23    if (signal->_is_allocate == false)
24      throw (ErrorMorpheo ("<Signal::mapping> Signal \""+_name+"\", can't map with signal \""+signal->get_name()+"\", because it's not already allocate."));
25
26    if (_direction == OUT)
27      {
28        // This output is mapped
29        _is_map     = true;
30
31        if (signal->_direction == OUT)
32          _sc_signal_map = signal->_sc_signal_map;
33      }
34   
35    log_printf(FUNC,Behavioural,FUNCTION,"End");
36  };
37
38}; // end namespace behavioural         
39}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.