%------------------------------------------------------------------------------ % $Id: document-morpheo-vhdl_generation-fr-03_vhdl_body.tex 100 2009-01-08 13:06:27Z rosiere $ %------------------------------------------------------------------------------ \Section{VHDL : comportement}\label{vhdl_body} Le comportement du composant est défini dans le fichier {\it Component\_vhdl\_body.cpp}. Il n'y a pas de fonction aidant à l'écriture du Vhdl. La méthode {\it set\_body} permet de définir une ligne de code VHDL. Un retour à la ligne est automatiquement inséré. Le premier argument est pour l'indentation. \lstparam{C++} \begin{lstlisting} void set_body (uint32_t depth, std::string text ); void set_body (std::string text ); \end{lstlisting} Pour les commentaires, il y a la fonction {\it set\_comment}. \lstparam{C++} \begin{lstlisting} void set_comment (uint32_t depth, std::string text ); void set_comment (std::string text ); \end{lstlisting}