Rev | Line | |
---|
[2] | 1 | #ifdef VHDL |
---|
| 2 | |
---|
| 3 | /* |
---|
| 4 | * $Id$ |
---|
| 5 | * |
---|
| 6 | * [ Description ] |
---|
| 7 | * |
---|
| 8 | */ |
---|
| 9 | |
---|
| 10 | #include "Behavioural/include/Vhdl.h" |
---|
| 11 | |
---|
| 12 | #include <sstream> |
---|
| 13 | using namespace std; |
---|
| 14 | |
---|
| 15 | namespace morpheo { |
---|
| 16 | namespace behavioural { |
---|
| 17 | |
---|
| 18 | void Vhdl::set_port (string name , |
---|
| 19 | direction_t direction, |
---|
| 20 | string type ) |
---|
| 21 | { |
---|
| 22 | set_list (_list_port, name + "\t: " + direction_toString(direction) + " " + type); |
---|
| 23 | }; |
---|
| 24 | |
---|
| 25 | void Vhdl::set_port (string name , |
---|
| 26 | direction_t direction, |
---|
| 27 | uint32_t size ) |
---|
| 28 | { |
---|
| 29 | set_port(name,direction,std_logic(size)); |
---|
| 30 | }; |
---|
| 31 | |
---|
| 32 | }; // end namespace behavioural |
---|
| 33 | }; // end namespace morpheo |
---|
| 34 | |
---|
| 35 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.