报错信息[Synth 8-1031] cnt is not declared

开放1 回答 213 浏览

报错信息[Synth 8-1031] cnt is not declared。

分享:
  • 二牛学FPGA

    原因:信号没有被声明,多出现在中间信号。

    措施:给中间信号添加声明,如 reg、wire。

    ————————————

    75293 – Vivado Synthesis – ERROR: [Synth 8-1031] xxxxxx is not declared

    DESCRIPTION

    I have encountered the below error when running Synthesis:ERROR: [Synth 8-1031] xxxxxx is not declared.How can I resolve this error?

    SOLUTION

    This error occurs when the Synthesis tool does not find the declaration of the object.

    For example the object could be a library or package that is referenced in this file, a user data type, or a signal name.

    1) Compile Order issues

    If the error states that a library or package is not declared, it could be a compile order issue.

    In general, the library/package files are compiled at the beginning of the file list because they are going to be referenced by the other source files.

    You can try changing the compile order list by following the steps below:

    GUI project

    The GUI can normally analyze the source files and put them in the right compile order.

    If you find that the GUI is using an incorrect compile order (this can can be checked in the Compile Order tab in the Sources window), you can right click on the Sources window and select “Hierarchy Update” –> “Manual Compile Order”.

    You can then then manually change the compile order of the files using drag-and-drop.

    Tcl script project

    You can change the compile order by changing the order of the add_files or read_xxx command lines so that the library files are added first.

    2) Library/package file issues

    If the error states that user data types/signal names/functions have not been declared, check if those are expected to be declared in the local source file or in a library/package file.

    If they are expected to be in a library/package file, check if you have imported/used the library or package correctly in the file.

登录后可在本页底部提交回答

提问者

爱提问的小白白查看主页

描述场景与已尝试方案,更容易获得有效解答

浏览「技术分享」

相关问题

同分类问答

提问建议

  • 标题写清核心疑问,避免「求助」「请问」等空泛用语
  • 正文补充环境、版本、报错信息或截图
  • 先搜索本站是否已有相近问题,减少重复提问
  • 若与课程相关,请标明课时或章节便于讲师定位

技术问答

问完之后的闭环

  • 关联课程精学高频问题往往对应章节,建议回到课程补基础。
  • 产出与互助解决过程可写成笔记,帮助后续同学。

探索全站