VHDL でのSubprogram


VHDL のコンパイルを実行時、下記エラーメッセージが表示されました。何を解決したらよいのでしょうか?

Error: COMP96_0321: C:/../.vhd : Subprogram specification of the body must conform to the subprogram specification of the declaration.



  1. LRM に厳密に従っていないファイルをコンパイルするために-relax スイッチを使用してください:

    acom -relax …


  2. Subbrogram 宣言を修正してください:

    • On package body exist:
      function <Function_name> (in_value : in integer) return string

    • On package declaration:
      function <Function_name> (in_value : integer) return string

    • Please update the package declaration for:
      function <Function_name> (in_value : in integer) return string

Ask Us a Question
Ask Us a Question
Captcha ImageReload Captcha
Incorrect data entered.
Thank you! Your question has been submitted. Please allow 1-3 business days for someone to respond to your question.
Internal error occurred. Your question was not submitted. Please contact us using Feedback form.
We use cookies to ensure we give you the best user experience and to provide you with content we believe will be of relevance to you. If you continue to use our site, you consent to our use of cookies. A detailed overview on the use of cookies and other website information is located in our Privacy Policy.