summaryrefslogtreecommitdiff
path: root/vendor/bundle/ruby/3.4.0/gems/rouge-4.5.2/lib/rouge/demos/vhdl
blob: 9355b50cae92f69de1c1dc86ad1ca81cb5c33d42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
entity toggle_demo is
	port (
		clk_in : in  std_logic; -- System Clock
		data_q : out std_logic	-- Toggling Port
	);
end entity toggle_demo;

architecture RTL of toggle_demo is
	signal data : std_logic := '0';
begin

	data_q <= data;

	data_proc : process (clk_in)
	begin
	
		if (rising_edge(clk_in)) then
			data <= not data;
		end if;
	
	end process; 

end architecture RTL;