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

Support for treesitter-vhdl #420

Open
kusnezoff-alexander opened this issue Oct 18, 2024 · 0 comments
Open

Support for treesitter-vhdl #420

kusnezoff-alexander opened this issue Oct 18, 2024 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@kusnezoff-alexander
Copy link

Language: VHDL

Example file:

library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;

entity decoder is
    generic (
        SELBITS : positive := 2
    );
    port (
        en  : in  std_logic;
        sel : in  std_logic_vector(SELBITS-1 downto 0);
        hot : out std_logic_vector(2**SELBITS-1 downto 0)
    );
end decoder;

architecture BHV of decoder is
begin
    process(en, sel)
    begin
        hot <= (others => '0');
        if(en = '1') then
            hot(to_integer(unsigned(sel))) <= '1';
        end if;
    end process;
end BHV;

(taken from vhdl-examples
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants