Video Learning Series : Interfacing LED & Switch ::: Task - 3
|Click Here For Video ::: Video Learning Series (vhdlbynaresh.blogspot.com)|
Video Link -
TASK 3 :::: Interfacing LED & Switch With Cyclone II FPGA Device. -
Description - LED's Starts Blinking when Switch is pressed & Remains same as it's last update when Switch is released.
In our video we take 8 LED's as output packed in 7- segment package.
VHDL Code -
entity sl3 is
port (clk : in std_logic;
din : in std_logic;
dout : out std_logic_vector (7 downto 0));
architecture sl2_arc of sl3 is
p0 : process (clk,din) is
variable m : std_logic_vector (24 downto 0) := (others=>'0');
if (rising_edge (clk)) then
m := m + 1;
if (din='0') then
case m(24) is
when '0' => dout <= "00000000";
when others => dout <= "11111111";
end process p0;
Please revert with your suggestions, likes and comments to make this video series successful and helpful to others.
I would love to read your suggestions and comments here below