Report Title: Traffic Light Controller Using VHDL: Electronic Workshop - 2
Report Title: Traffic Light Controller Using VHDL: Electronic Workshop - 2
INSTITUTE OF TECHNOLOGY
ELECTRONIC WORKSHOP - 2
REPORT
PROJECT MEMBERS:
1. Priyal Nile 55
2. Ajay Patkar 59
3. Prasad Pawaskar 61
4. Vishal Thakur 74
Traffic Light Controller
I. INTRODUCTION
1. Clock
2. Sensor
yellow_light=’0’;
The code that was written of the above
circuit implementation is as follows: when red=>
red_light=’1’;
use ns<=green;
IEEE.STD_LOGIC_UNSIGNED.ALL; else
entity traffic_light is ns=>red;
port(sensor,clock:in std_logic; end if;
red_light,green_light,yellow_light:out when yellow=>
std_logic);
red_light=’0’;
end traffic_light;
green_light=’0’;
architecture fsm of traffic_light is
yellow_light=’1’;
type t_state is (red,green,yellow);
ns<=red;
signal ps,ns:t_state;
end case;
begin
end process;
process(ps,sensor)
process
begin
begin
case ps is
wait untilclock’event and clock=’1’;
when green=>
ps<=ns;
ns<=yellow;
end process;
red_light=’0’;
end fsm;
IV. RTL Schematic of Given
Design
VI. Results
The results of the simulation were
seen to be as follows:
V. Technology Schematics
The figure shown below is an
Technology Schematic :
1. The FPGA kit was connected to
the PC via Parallel port slot.
2. Supply was given to the FPGA
kit.
3. The program code was copied
into the Xilinx folder.
4. Then the project was opened in
the Xilinx simulator.
5. Process Synthesize XST was
carried out
6. Then In User Constraints Process
the pin name and numbers of
input and output are defined i.e.
UCF file is created.
7. Then Process Implement Design
was Carried Out.
8. Program file was generated.
9. Then the Process was Run on the
FPGA kit.
10. At last, input conditions are
VII. Hardware Implementation changed and respective output
pins were observed.
IX. CONCLUSION
X. REFERENCES
The following were some of the
references used in getting the desired
project successfully implemented