source: trunk/IPs/systemC/processor/Morpheo/Behavioural/Generic/Counter/src/Counter_vhdl_port.cpp @ 2

Last change on this file since 2 was 2, checked in by kane, 17 years ago

Import Morpheo

File size: 797 bytes
Line 
1#ifdef VHDL
2/*
3 * $Id$
4 *
5 * [ Description ]
6 *
7 */
8
9#include "Behavioural/Generic/Counter/include/Counter.h"
10
11namespace morpheo                    {
12namespace behavioural {
13namespace generic {
14namespace 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.