VHDL Code For A Single Traffic Light Con
VHDL Code For A Single Traffic Light Con
Task
Write a VHDL code for a single traffic light controller. Assume you have 60 Hz clock signal. Your
design should allow asynchronous reset. When the circuit is reset, the traffic light should be Red. The
waiting times are as follows: Red (45 sec), Yellow (5 sec), and Green (45 sec).
Method
library ieee;
use ieee.std_logic_1164.all;
entity tlc is
port (
clk, reset : in bit;
r, y, g : out bit);
end tlc;