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

Last change on this file since 113 was 113, checked in by rosiere, 15 years ago

1) Add modelsim simulation systemC
2) Modelsim cosimulation systemC / VHDL is not finish !!!! (cf execute_queue and write_unit)
3) Add multi architecture
5) Add template for comparator, multiplier and divider
6) Change Message
Warning) Various test macro have change, many selftest can't compile

  • Property svn:keywords set to Id
File size: 712 bytes
Line 
1/*
2 * $Id: Signal_set_size.cpp 113 2009-04-14 18:39:12Z 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::set_size"
16  void Signal::set_size (uint32_t size)
17  {
18    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
19    _size = size;
20
21    log_printf(FUNC,Behavioural,FUNCTION,"End");
22  };
23
24#undef  FUNCTION
25#define FUNCTION "Signal::set_size_max"
26  void Signal::set_size_max (uint32_t size)
27  {
28    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
29    if (size > _size)
30      set_size(size);
31    log_printf(FUNC,Behavioural,FUNCTION,"End");
32  };
33
34}; // end namespace behavioural         
35}; // end namespace morpheo             
Note: See TracBrowser for help on using the repository browser.