将* .vhdl编译到库中时出现编译器错误 - Altera Quartus II [英] compiler errors when compiling *.vhdl into a library - Altera Quartus II

查看:434
本文介绍了将* .vhdl编译到库中时出现编译器错误 - Altera Quartus II的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经从 http://www.vhdl.org/fphdl/ ,并执行以下操作:


  1. 我在项目中包含了math_utility_pkg.vhd,fixed_pkg_c.vhd和float_pkg_c.vhd文件, li>
  2. 我将它们分配给一个库(按照
  3. 尝试编译它们,首先将我的项目的顶层实体设置为顶层实体,第二次将float_pkg_c.vhd设置为顶层实体

我遇到了几个问题:


  1. 我不确定是使用ieee_proposed库名还是使用floatfixlib,因为前者是在文档中建议的,后者是从包文件中使用的。

  2. 编译时,我保留从包文件中获取错误(例如, 没有详细说明调用子程序remaining和类似的内容)。
  3. 包文件有后缀_c的事实似乎有些争议,但是应该包含它(例如,使用FLOATFIXLIB.float_pkg.all;),但是最终我不能在这个时候遇到这个错误,当float_pkg_c.vhd设置为顶层实体时,编译器生成此错误:顶级设计实体float_pkg_c未定义


  4. 我一直尝试上述尝试的变体,所有进展。

    解决方案

    您不妨重新下载软件包。我没有看到一个math_utility_pkg,我看不到在程序包中引用的库floatfixlib。你必须有一个很老的版本。

    我刚刚重新下载了Altera发行版。在其中,我看到了你在交叉列表中引用的包:fixed_float_types_c.vhdl,fixed_pkg_c.vhdl和float_pkg_c.vhdl。我还注意到,zip文件中的文件日期戳是:8/27/2009。

    I've downloaded the floating point package from http://www.vhdl.org/fphdl/ and did the following:

    1. I included the math_utility_pkg.vhd, fixed_pkg_c.vhd and float_pkg_c.vhd files in my project
    2. I assigned them to a library (following the instructions in Compiling *.vhdl into a library, using Altera Quartus II)
    3. tried to compile them, first by setting my project's top entity as top entity and the second time by setting float_pkg_c.vhd as top entity

    I'v encountered several issues:

    1. I'm not sure whether to use the ieee_proposed library name or floatfixlib, as the former is suggested in the documentation and the latter is used from within the package files
    2. When compiling, I keep getting errors from within the package files (e.g. "failed to elaborate call to subprogram "remainder"" and similar)
    3. There seem to be some dispute between the facts that the package file has the suffix _c, but it should be included without it (e.g. use FLOATFIXLIB.float_pkg.all;), I can't get to that error at this moment though
    4. finally, when the float_pkg_c.vhd is set as top entity, the compiler generates this error: "Top-level design entity "float_pkg_c" is undefined"

    I keep trying variations of the above attempts, but get no progress at all.

    解决方案

    You may wish to re-download the packages. I don't see a math_utility_pkg and I don't see library floatfixlib referenced in the packages. You must have a very old release.

    I just re-downloaded the Altera distribution. In it, I see the packages referenced in the post you cross listed: fixed_float_types_c.vhdl, fixed_pkg_c.vhdl, and float_pkg_c.vhdl. I also note that the file date stamps in the zip file are: 8/27/2009.

    这篇关于将* .vhdl编译到库中时出现编译器错误 - Altera Quartus II的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆