mirror of
https://github.com/XAMPPRocky/tokei.git
synced 2026-05-28 00:20:57 +02:00
14870d7625
* Added tests for c++ source and header files and java files. * Added VHDL to languages and tests * Updated readme Updated to reflect VHDL being added to languages
31 lines
568 B
VHDL
31 lines
568 B
VHDL
-- 30 lines 20 code 4 comments 6 blanks
|
|
|
|
library IEEE;
|
|
use IEEE.STD_LOGIC_1164.ALL;
|
|
use IEEE.NUMERIC_STD.ALL;
|
|
|
|
entity tb is
|
|
Port ( clk : in STD_LOGIC; -- clock
|
|
rst : in STD_LOGIC; -- reset
|
|
-- removed: in STD_LOGIC_VECTOR(7 downto 0)
|
|
);
|
|
end tb;
|
|
|
|
-- architecture
|
|
architecture behavioural of tb is
|
|
signal toggle : STD_LOGIC := '0';
|
|
|
|
begin
|
|
|
|
-- Toggles signal
|
|
process(clk, rst)
|
|
begin
|
|
if (rst='1') then
|
|
toggle <= '0';
|
|
else
|
|
toggle <= not toggle;
|
|
end if;
|
|
end process;
|
|
|
|
end
|