VHDL Code for External Light Control Using Relays
Advertisement
This page provides VHDL source code for controlling external lights using relays.
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;
library unisim;
use unisim.vcomponents.all;
entity light is
Port (
cntrl1, cntrl2 : in STD_LOGIC;
led : out STD_LOGIC
);
end light;
architecture Behavioral of light is
begin
led <= cntrl1 or cntrl2;
end behavioral;
Explore VHDL Hardware Interfaces & Controllers
- UART VHDL Code (Transmitter / Receiver)
- VHDL Baud Rate Generator
- 7-Segment Display Interface (VHDL Source Code)
- VHDL Code: 7-Segment Hex Keypad
- Stepper Motor FPGA Interface (VHDL Source Code)
- DC Motor Control FPGA (VHDL)
- Relay FPGA Interface (VHDL Source Code)
- VHDL Light Control Relays
- VHDL Code for 8-Channel Analog Signal Acquisition and Display
- VHDL Code: Elevator Simulation
