Rev | Line | |
---|
[2] | 1 | #ifdef VHDL |
---|
| 2 | /* |
---|
| 3 | * $Id$ |
---|
| 4 | * |
---|
| 5 | * [ Description ] |
---|
| 6 | * |
---|
| 7 | */ |
---|
| 8 | |
---|
| 9 | #include "Behavioural/Generic/Counter/include/Counter.h" |
---|
| 10 | |
---|
| 11 | namespace morpheo { |
---|
| 12 | namespace behavioural { |
---|
| 13 | namespace generic { |
---|
| 14 | namespace counter { |
---|
| 15 | |
---|
| 16 | |
---|
| 17 | void Counter::vhdl_port (Vhdl & vhdl) |
---|
| 18 | { |
---|
| 19 | log_printf(FUNC,Counter,"vhdl_port","Begin"); |
---|
| 20 | |
---|
| 21 | for (uint32_t i=0; i<_param._nb_port; i++) |
---|
| 22 | { |
---|
| 23 | vhdl.set_port (" in_COUNTER_DATA_" +toString(i), IN, _param._size_data); |
---|
| 24 | vhdl.set_port (" in_COUNTER_ADDSUB_"+toString(i), IN, 1 ); |
---|
| 25 | vhdl.set_port ("out_COUNTER_DATA_" +toString(i),OUT, _param._size_data); |
---|
| 26 | } |
---|
| 27 | |
---|
| 28 | log_printf(FUNC,Counter,"vhdl_port","End"); |
---|
| 29 | }; |
---|
| 30 | |
---|
| 31 | }; // end namespace counter |
---|
| 32 | }; // end namespace generic |
---|
| 33 | |
---|
| 34 | }; // end namespace behavioural |
---|
| 35 | }; // end namespace morpheo |
---|
| 36 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.