Last change
on this file since 102 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
|
Rev | Line | |
---|
[2] | 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 | |
---|
| 14 | namespace morpheo { |
---|
| 15 | namespace behavioural { |
---|
| 16 | |
---|
[43] | 17 | #undef FUNCTION |
---|
| 18 | #define FUNCTION "Vhdl::set_alias" |
---|
[71] | 19 | void Vhdl::set_alias (std::string name1 , |
---|
| 20 | std::string type1 , |
---|
| 21 | std::string name2 , |
---|
| 22 | std::string range2) |
---|
[2] | 23 | { |
---|
[43] | 24 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
[2] | 25 | set_list(_list_alias, "alias "+ name1+"\t: "+type1+"\tis "+name2+"\t"+range2); |
---|
[43] | 26 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
[2] | 27 | }; |
---|
[69] | 28 | |
---|
[71] | 29 | void Vhdl::set_alias (std::string name1 , |
---|
[69] | 30 | uint32_t size1 , |
---|
[71] | 31 | std::string name2 , |
---|
| 32 | std::string range2) |
---|
[69] | 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 | }; |
---|
[2] | 38 | |
---|
| 39 | }; // end namespace behavioural |
---|
| 40 | }; // end namespace morpheo |
---|
| 41 | |
---|
| 42 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.