source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Signal_set_size.cpp @ 65

Last change on this file since 65 was 65, checked in by rosiere, 17 years ago

register_unit : systemc et VHDL ok

File size: 709 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::set_size"
16  void Signal::set_size (uint32_t size)
17  {
18    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
19    _size = size;
20    log_printf(FUNC,Behavioural,FUNCTION,"End");
21  };
22
23#undef  FUNCTION
24#define FUNCTION "Signal::set_size_max"
25  void Signal::set_size_max (uint32_t size)
26  {
27    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
28    if (size > _size)
29      _size = size;
30    log_printf(FUNC,Behavioural,FUNCTION,"End");
31  };
32
33}; // end namespace behavioural         
34}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.