Interactive Demo

Try RapidRTL Linting

Watch how RapidRTL analyzes VHDL hierarchies, catches warnings, and provides clean, organized lint reports. No installation required.

Hierarchy-Aware Analysis
Auto Dependency Resolution
VHDL-2008 Support
src/units/counter.vhd
1library ieee;
2use ieee.std_logic_1164.all;
3use ieee.numeric_std.all;
4
5entity counter is
6 generic (
7 G_WIDTH : natural := 8
8 );
9 port (
10 clk : in std_logic;
11 rst : in std_logic;
12 enable : in std_logic;
13 count : out std_logic_vector(G_WIDTH-1 downto 0)
14 );
15end entity counter;
16
17architecture rtl of counter is
18 signal cnt_reg : unsigned(G_WIDTH-1 downto 0);
19begin
20 process(clk)
21 begin
22 if rising_edge(clk) then
23 if rst = '1' then
24 cnt_reg <= (others => '0');
25 elsif enable = '1' then
26 cnt_reg <= cnt_reg + 1;
27 end if;
28 end if;
29 end process;
30
31 count <= std_logic_vector(cnt_reg);
32end architecture rtl;
linting -- -zsh
Click "Run Linting" to see RapidRTL in action...
Context

Watch the terminal for contextual hints about each step of the linting process...

Ready to lint your own designs?

Install RapidRTL and get the full power of automated linting, simulation, and multi-vendor build workflows.