Forum Discussion
Altera_Forum
Honored Contributor
8 years agoImplementation of VHDL program on FPGA
Hello, I try to implement a simple vhdl program " if the switch button is ON then the led has to be ON" on FPGA using Quartus but it doesn't work means the switch is ON but the led is still OFF. ...
Altera_Forum
Honored Contributor
8 years agoHere is the code :
library ieee; use ieee.std_logic_1164.all; use IEEE.STD_LOGIC_ARITH.ALL; use IEEE.STD_LOGIC_UNSIGNED.ALL; entity TEST is port ( bouton: in std_logic; led0: out std_logic ; led1: out std_logic ; led2: out std_logic ; led3: out std_logic ); end TEST; architecture behavior of TEST is begin process (bouton) begin if bouton = '1' then led0 <= '0'; led1 <= '1'; led2 <= '1'; led3 <= '1'; nd if; end process; end behavior;