#ifdef VHDL
/*
 * $Id$
 *
 * [ Description ]
 * 
 */

#include "Behavioural/Generic/Counter/include/Counter.h"

namespace morpheo                    {
namespace behavioural {
namespace generic {
namespace counter {


  void Counter::vhdl_port (Vhdl & vhdl)
  {
    log_printf(FUNC,Counter,"vhdl_port","Begin");

    for (uint32_t i=0; i<_param._nb_port; i++)
      {
	vhdl.set_port (" in_COUNTER_DATA_"  +toString(i), IN, _param._size_data);
	vhdl.set_port (" in_COUNTER_ADDSUB_"+toString(i), IN, 1                );
	vhdl.set_port ("out_COUNTER_DATA_"  +toString(i),OUT, _param._size_data);
      }
    
    log_printf(FUNC,Counter,"vhdl_port","End");
  };

}; // end namespace counter
}; // end namespace generic

}; // end namespace behavioural
}; // end namespace morpheo              
#endif
