source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_set_alias.cpp @ 88

Last change on this file since 88 was 81, checked in by rosiere, 16 years ago
  • Finish Environment (and test)
  • Continue predictor_unit
  • Add external tools
  • svn keyword "Id" set
  • Property svn:keywords set to Id
File size: 946 bytes
Line 
1#ifdef VHDL
2
3/*
4 * $Id: Vhdl_set_alias.cpp 81 2008-04-15 18:40:01Z rosiere $
5 *
6 * [ Description ]
7 *
8 */
9
10#include "Behavioural/include/Vhdl.h"
11
12#include <sstream>
13
14namespace morpheo              {
15namespace behavioural          {
16 
17#undef  FUNCTION
18#define FUNCTION "Vhdl::set_alias"
19  void Vhdl::set_alias (std::string      name1 ,
20                        std::string      type1 ,
21                        std::string      name2 ,
22                        std::string      range2)
23  {
24    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
25    set_list(_list_alias, "alias "+ name1+"\t: "+type1+"\tis "+name2+"\t"+range2);
26    log_printf(FUNC,Behavioural,FUNCTION,"End");
27  };
28
29  void Vhdl::set_alias (std::string      name1 ,
30                        uint32_t    size1 ,
31                        std::string      name2 ,
32                        std::string      range2)
33  {
34    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
35    set_alias(name1, std_logic(size1),name2,range2);
36    log_printf(FUNC,Behavioural,FUNCTION,"End");
37  };
38 
39}; // end namespace behavioural         
40}; // end namespace morpheo             
41
42#endif
Note: See TracBrowser for help on using the repository browser.