Last change
on this file since 103 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:
918 bytes
|
Rev | Line | |
---|
[2] | 1 | #ifdef VHDL |
---|
| 2 | |
---|
| 3 | /* |
---|
| 4 | * $Id: Vhdl_set_port.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_port" |
---|
[71] | 19 | void Vhdl::set_port (std::string name , |
---|
[2] | 20 | direction_t direction, |
---|
[71] | 21 | std::string type ) |
---|
[2] | 22 | { |
---|
[43] | 23 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
[2] | 24 | set_list (_list_port, name + "\t: " + direction_toString(direction) + " " + type); |
---|
[43] | 25 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
[2] | 26 | }; |
---|
| 27 | |
---|
[71] | 28 | void Vhdl::set_port (std::string name , |
---|
[2] | 29 | direction_t direction, |
---|
| 30 | uint32_t size ) |
---|
| 31 | { |
---|
[43] | 32 | log_printf(FUNC,Behavioural,FUNCTION,"Begin"); |
---|
[2] | 33 | set_port(name,direction,std_logic(size)); |
---|
[43] | 34 | log_printf(FUNC,Behavioural,FUNCTION,"End"); |
---|
[2] | 35 | }; |
---|
| 36 | |
---|
| 37 | }; // end namespace behavioural |
---|
| 38 | }; // end namespace morpheo |
---|
| 39 | |
---|
| 40 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.