VHDL でのSubprogram

内容

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

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

ソリューション

2つの解決方法があります:

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

    Example:
    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



Printed version of site: www.aldec.com/jp/support/resources/documentation/faq/1161