verilog code for traffic light controller
#1

Verilog source code for traffic light controller that can use at 3 and 4 junctionskimeyaacob[at]yahoo.com" class="mycode_email
Reply
#2
DESIGN of traffic light controller using Verilog

DESIGN of traffic light controller using Verilog

AIM:
Design of traffic light controller using Verilog.
Device is required:
· Personal computer.
· Xilinx ISE software.
THEORY:
Consider the controller for a traffic light at the intersection of four roads. Consider the P1, P2, P3, and P4 as four roads and the PL as pedestrians Road consists of the following steps.
Green = 10011,
Yellow = 01000,
Red = 00100.
Pedestrian following two
Green = 00000000
Red = 1111
First road P1 green and all other road P2, P3, P4, and PL red. After some delay, P1, this turn to yellow and then red light at P2 green. After delaying P2 refer to yellow and then a red signal on a P3 green.Then P3 is changed to yellow and then red. Similarly, P4, the yellow has turned green and then red. A pedestrian Light PL green after the delay. P1 is in green again and the program will continue.
PROGRAM:
Traffic module (CLK, reset, P1, P2, P3, P4, PL);
input CLK;
input reset;
power [4: 0], page 1;
power [4: 0] p2;
power [4: 0] p3;
power [4: 0] 4;
power [3: 0] p1;
Reg [4: 0] p1;
Reg [4: 0] p2;
Reg [4: 0] p3;
Reg [4: 0] 4;
Reg [3: 0] PL;
Reg [4: 0] cur;
always @ (Posedge CLK or negedge reset)
Start
If (1'b0 == reset) begin
P1 = 5'b00100 <;
P2 = 5'b00100 <;
P3 < 5'b00100; =
P4 < 5'b00100; =
PL < = 4'b01111;
SIG = 6'b000000 <;
The end
else begin
SIG SIG + = 1 <;
case (SIG [4: 0])
6'b000000: start
P1 = 5'b10011 <; Path 1 green
P2 = 5'b00100 <; All other ways are red
P3 < 5'b00100; =
P4 < 5'b00100; =
PL < = 4'b1111;
The end
6'b000100: start
P1 = 5'b01000 <; Path 1 yellow
P2 = 5'b00100 <; All other ways are red
P3 < 5'b00100; =
P4 < 5'b00100; =
P1 = 4'b1111 <;
The end
6'b001000: start
P1 = 5'b00100 <; Path1 Red
P2 = 5'b10011 <; path2 Green
P3 < 5'b00100; = All other ways are red
P4 < 5'b00100; =
PL < = 4'b1111;
The end
6'b001100: start
P1 = 5'b00100 <;
P2 = 5'b01000 <; path2 yellow
P3 < 5'b00100; = All other ways are red
P4 < 5'b00100; =
PL < = 4'b1111;
The end
6'b010000: start
P1 = 5'b00100 <;
P2 = 5'b00100 <;
P3 < 5'b10011; = path3 is green
P4 < 5'b00100; = All other ways are red
P1 = 4'b1111 <;
The end
6'b010100: start
P1 = 5'b00100 <;
P2 = 5'b00100 <;
P3 < 5'b01000; = path3 is yellow
P4 < 5'b00100; = all other way Red
PL < = 4'b1111;
The end
6'b011000: start
P1 = 5'b00100 <;
P2 = 5'b00100 <;
P3 < 5'b00100; = all other way Red
P4 < 5'b10011; = path4 yellow
P1 = 4'b1111 <;
The end
6'b100000: start
P1 = 5'b00100 <; All other ways are red
P2 = 5'b00100 <;
P3 < 5'b00100; =
P4 < 5'b00100; =
P1 = 4'b0000 <; The pedestrian green
6'b100100: SIG < = 6'b000000
default: start
The end
end case
The end
The end
End Module
THE RESULT:
Thus, traffic light controller using Verilog module is designed.
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: kuk reg no byname, the source code of traffic light controller using microcontroller, traffic light controller multiway vhdl code, matlab code for intelligent traffic controller project, what is yellow, traffic light controller for multiway using vhdl code, vhdl code for traffic light controller multiway,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  block diagram of low cost automatic gate light with musical bell 1 7,257 06-10-2018, 05:46 AM
Last Post: Guest
  literature review of an automatic room light controller with bi directional visitor counter 4 2,233 24-10-2017, 09:53 AM
Last Post: jaseela123d
  verilog radix 8 booth multiplier 7 3,234 18-10-2017, 11:05 AM
Last Post: jaseela123d
  source code in matlab for fuzzy based traffic light controll system 2 1,313 08-10-2017, 02:12 PM
Last Post: nomanamjad143
  street light that glows on detecting vehicle movement pdf 3 1,191 13-09-2017, 09:57 PM
Last Post: Guest
  srs on traffic management system 3 2,769 12-09-2017, 09:38 AM
Last Post: jaseela123d
  circuit diagram of street light glow on detecting vehicle movement 4 2,623 08-09-2017, 10:11 AM
Last Post: jaseela123d
  four quadrant dc motor speed controller without microcontroller applications 4 3,838 05-09-2017, 03:30 PM
Last Post: jaseela123d
  street light which glows on detecting vehicle movement circuit code 2 1,469 16-08-2017, 10:51 AM
Last Post: jaseela123d
Video verilog code for low power and area efficient carry select adder 2 1,535 02-05-2017, 09:56 AM
Last Post: jaseela123d

Forum Jump: