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

#include "Behavioural/@DIRECTORY/include/@COMPONENT.h"

#ifdef VHDL_TESTBENCH
# define VHDL_SET_PORT(name,direction,size) do {vhdl.set_port (name,direction,size); _vhdl_testbench->set_port (name,direction,size);} while(0)
#else
# define VHDL_SET_PORT(name,direction,size)     vhdl.set_port (name,direction,size)
#endif

namespace morpheo                    {
namespace behavioural {
@NAMESPACE_BEGIN

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

    vhdl.set_port (" in_CLOCK" , IN, 1);
    VHDL_SET_PORT (" in_NRESET", IN, 1);

    log_printf(FUNC,@COMPONENT,"vhdl_port","End");
  };

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