Files
APS/Vivado Basics/08. Code processing errors.md
Andrei Solodovnikov f3fcd27387 English version draft
Assisted-by: Claude:claude-4.6-sonnet
2026-05-07 16:04:46 +03:00

2.8 KiB
Raw Blame History

Guide to Handling Code Processing Errors

Some errors (such as syntax errors or hierarchy errors) may prevent the EDA tool from building the schematic or launching simulation.

Without sufficient experience, these errors can be confusing, as the pop-up windows reporting them are not very informative (see fig. 12).

Suppose we forgot to place a semicolon at the end of one of the assignments, and then tried to launch simulation.

As a result, the pop-up windows shown in fig. 12 will appear.

../.pic/Vivado%20Basics/08.%20Code%20processing%20errors/fig_01.png

Figure 1. First pop-up window when attempting to launch simulation with a syntax error in the project.

../.pic/Vivado%20Basics/08.%20Code%20processing%20errors/fig_02.png

Figure 2. Second pop-up window when attempting to launch simulation with a syntax error in the project.

The second window contains an Open Messages View button. Click it. The messages window shown in fig. 3 will be activated.

../.pic/Vivado%20Basics/08.%20Code%20processing%20errors/fig_03.png

Figure 3. Messages window after a failed attempt to launch simulation.

The messages in the Vivado commands section in fig. 2 provide little information. However, there are also critical warnings about the syntax error, with a link to the line in the file that triggered the warning. Of course, the EDA tool cannot always clearly explain what the error is — in this case, it simply detected that the keyword end appeared in an unexpected location (it was encountered before the assignment operator was terminated with a ;). In this situation, you need to figure out the exact nature of the error yourself (you can click the hyperlink in the critical warning to open the editor at the location of the error).

Keep in mind that most messages in this window persist even after the error is fixed, so it is recommended to clear the messages window when errors appear and it becomes difficult to distinguish old messages from new ones. This can be done by clicking the trash can icon in the messages window. Note that not all errors will be cleared — only those triggered by processes launched by the user. For example, if you clear the messages window without fixing the error, only the messages from the Vivado commands section will disappear. This is because the critical warnings appeared not when we attempted to launch simulation, but when Vivado automatically ran its code analysis tools. Vivado does this automatically every time a file is saved. These warnings will only disappear once a subsequent analysis confirms they have been resolved.