top.vhd (663B)
1 --+-------------------------------------------------------------------------------------------------+ 2 --| 3 --| VHDL example for waf build automation tool 4 --| 5 --+-------------------------------------------------------------------------------------------------+ 6 7 library ieee; 8 use ieee.std_logic_1164.all; 9 10 entity waf_demo is 11 port ( 12 -- buttons 13 BUTTON_1 : in std_logic; 14 BUTTON_2 : in std_logic; 15 16 -- leds 17 DLED_2 : out std_logic; 18 DLED_3 : out std_logic; 19 DLED_4 : out std_logic; 20 DLED_5 : out std_logic 21 ); 22 end waf_demo; 23 24 architecture inside of waf_demo is 25 26 begin 27 28 DLED_5 <= '1'; 29 DLED_4 <= BUTTON_2; 30 DLED_3 <= '0'; 31 DLED_2 <= not BUTTON_1; 32 33 end inside; 34