In this assignment, you are asked to design, implement and demonstrate the Traffic Light Controller as a Digital controller as hardware (using remote lab or DSX kit).
First let’s look at how such a system works in the real world.
A Traffic Light Controller of intersection of T section with sensor to detect the waiting car(s) in the intersection.
When the car detected by the sensor, a timer will start counting for some time to give a car driver to turn right since the turn right can be happen even the main road is red ( the driver can turn right with careful ).
If the timer reach the predefined time, the Traffic Light Controller start to change in the logical way (red, green, yellow) with certain time for each light.
The VHDL code must be in done in Xilinx software.
These solutions may offer step-by-step problem-solving explanations or good writing examples that include modern styles of formatting and construction
of bibliographies out of text citations and references. Students may use these solutions for personal skill-building and practice.
Unethical use is strictly forbidden.
-- Uncomment the following library declaration if using
-- arithmetic functions with Signed or Unsigned values
-- Uncomment the following library declaration if instantiating
-- any Xilinx primitives in this code.
entity Semaphore is
Port ( iCLK : in STD_LOGIC;
inRST : in STD_LOGIC;
inCAR1 : in STD_LOGIC; -- inputs for cars
inCAR2 : in STD_LOGIC;
inCAR3 : in STD_LOGIC;
oRE1 : out STD_LOGIC; -- outputs for controlling the lights on main road
oYE1 : out STD_LOGIC;
oGR1 : out STD_LOGIC;
oRE2 : out STD_LOGIC; -- outputs for controlling the lights on the cross street
oYE2 : out STD_LOGIC;
oGR2 : out STD_LOGIC;
oGRCON : out STD_LOGIC; -- conditional green...