Search code examples
syntax-errorhdlvivado

How can I see why a file is listed in "syntax error files" in vivado


Syntax error files:

enter image description here

I want to know where I can see the exact error info.There's no hint in vivado. Thanks!


Solution

  • You can usually check the message tab at the bottom of the screen. Anyhow Vivado is not particularly good at telling you what's wrong with your code (I'm not sure if this has to do with Vivado or parsing HDL in general), so be aware that your error may be "cascading" from an error above in your code than where the message indicates there's something wrong).

    For instance, when making the following mistake in line 13:

    13    reg [15:0] test_reg_0
    14    reg [15:0] test_reg_1;
    

    it will tell you test_reg_1 is not declared and mark it as an error everywhere it's referenced.