Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse GHDL diagnostic severity #719

Merged
merged 1 commit into from
Jan 5, 2025

Conversation

JennToo
Copy link
Contributor

@JennToo JennToo commented Jan 5, 2025

GHDL provides the severity of its diagnostics. For example:

test/tb_lfsr.vhd:7:20:error: no declaration for "std_logic"
    signal clk   : std_logic;
                   ^
test/tb_lfsr.vhd:8:20:error: no declaration for "std_logic"
    signal arst  : std_logic;
                   ^
test/tb_lfsr.vhd:9:20:error: no declaration for "std_logic_vector"
    signal value : std_logic_vector(15 downto 0);
                   ^
test/tb_lfsr.vhd:7:12:warning: signal "clk" is never referenced [-Wunused]
    signal clk   : std_logic;
           ^
test/tb_lfsr.vhd:8:12:warning: signal "arst" is never referenced [-Wunused]
    signal arst  : std_logic;
           ^
test/tb_lfsr.vhd:9:12:warning: signal "value" is never referenced [-Wunused]
    signal value : std_logic_vector(15 downto 0);

I don't know if it will ever produce any other kind of severity. But these two seem to be the most common.

GHDL provides the severity of its diagnostics. For example:

```
test/tb_lfsr.vhd:7:20:error: no declaration for "std_logic"
    signal clk   : std_logic;
                   ^
test/tb_lfsr.vhd:8:20:error: no declaration for "std_logic"
    signal arst  : std_logic;
                   ^
test/tb_lfsr.vhd:9:20:error: no declaration for "std_logic_vector"
    signal value : std_logic_vector(15 downto 0);
                   ^
test/tb_lfsr.vhd:7:12:warning: signal "clk" is never referenced [-Wunused]
    signal clk   : std_logic;
           ^
test/tb_lfsr.vhd:8:12:warning: signal "arst" is never referenced [-Wunused]
    signal arst  : std_logic;
           ^
test/tb_lfsr.vhd:9:12:warning: signal "value" is never referenced [-Wunused]
    signal value : std_logic_vector(15 downto 0);
```

I don't know if it will ever produce any other kind of severity. But
these two seem to be the most common.
@mfussenegger mfussenegger merged commit 139cd3c into mfussenegger:master Jan 5, 2025
3 checks passed
@JennToo JennToo deleted the GHDL-severity branch January 7, 2025 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants