source: trunk/IPs/systemC/processor/Morpheo/Behavioural/src/Vhdl_set_alias.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: 1016 bytes
Line 
1#ifdef VHDL
2
3/*
4 * $Id: Vhdl_set_alias.cpp 113 2009-04-14 18:39:12Z 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   
26    test_architecture();
27   
28    set_list(_architecture[_name_architecture]._list_alias, "alias "+ name1+"\t: "+type1+"\tis "+name2+"\t"+range2);
29
30    log_printf(FUNC,Behavioural,FUNCTION,"End");
31  };
32
33  void Vhdl::set_alias (std::string      name1 ,
34                        uint32_t    size1 ,
35                        std::string      name2 ,
36                        std::string      range2)
37  {
38    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
39    set_alias(name1, std_logic(size1),name2,range2);
40    log_printf(FUNC,Behavioural,FUNCTION,"End");
41  };
42 
43}; // end namespace behavioural         
44}; // end namespace morpheo             
45
46#endif
Note: See TracBrowser for help on using the repository browser.