#ifdef VHDL

/*
 * $Id$
 *
 * [ Description ]
 * 
 */

#include "Behavioural/include/Vhdl.h"

#include <sstream>
using namespace std;

namespace morpheo              {
namespace behavioural          {
  
#undef  FUNCTION
#define FUNCTION "Vhdl::set_port"
  void Vhdl::set_port (string      name     ,
		       direction_t direction,
		       string      type     )
  {
    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
    set_list (_list_port, name + "\t: " + direction_toString(direction) + " " + type);
    log_printf(FUNC,Behavioural,FUNCTION,"End");
  };

  void Vhdl::set_port (string      name     ,
		       direction_t direction,
		       uint32_t    size     )
  {
    log_printf(FUNC,Behavioural,FUNCTION,"Begin");
    set_port(name,direction,std_logic(size));
    log_printf(FUNC,Behavioural,FUNCTION,"End");
  };
    
}; // end namespace behavioural          
}; // end namespace morpheo              

#endif
