source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_set_constant.cpp @ 66

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

Modif mineur : ajout d'info de débug

Release non stable

File size: 1.1 KB
RevLine 
[2]1#ifdef VHDL
2
3/*
4 * $Id$
5 *
6 * [ Description ]
7 *
8 */
9
10#include "Behavioural/include/Vhdl.h"
11
12#include <sstream>
13using namespace std;
14
15namespace morpheo              {
16namespace behavioural          {
17 
[43]18#undef  FUNCTION
19#define FUNCTION "Vhdl::set_constant"
[2]20  void Vhdl::set_constant (string      name     ,
21                           string      type     ,
22                           string      init)
23  {
[43]24    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
[2]25    set_list(_list_type, "constant "+ name+"\t: "+type+"\t:= "+init);
[43]26    log_printf(FUNC,Behavioural,FUNCTION,"End");
[2]27  };
28
29  void Vhdl::set_constant (string      name     ,
30                           uint32_t    size     ,
31                           string      init)
32  {
[43]33    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
[2]34    set_constant(name,std_logic(size),init);
[43]35    log_printf(FUNC,Behavioural,FUNCTION,"End");
[2]36  };
37
38  void Vhdl::set_constant (string      name     ,
39                           uint32_t    size     ,
40                           uint32_t    init)
41  {
[43]42    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
[2]43    set_constant(name,std_logic(size),std_logic_conv(size,init));
[43]44    log_printf(FUNC,Behavioural,FUNCTION,"End");
[2]45  };
46 
47}; // end namespace behavioural         
48}; // end namespace morpheo             
49
50#endif
Note: See TracBrowser for help on using the repository browser.