Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

verilog source code for traffic light controller

Status
Not open for further replies.

aizamiea

Newbie level 1
Joined
Nov 1, 2006
Messages
1
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,291
verilog code for traffic light controller

i'm 2nd year student in electical n electronics course. im taking digital system design n recently for our project, we have to prepare a verilog (verilog HDL) source code for traffic light controller. i already write the pseudo code but the problem is, i do not know how to convert a counter into verilog since the traffic light have 3 diffrent timer for each light.
any sample verilog coding for me to look as an example..? traffic light coding is much better
 

traffic light controller verilog code

Refer to this book i think it has the traffic light controller designed!

Advanced Digital Design with the Verilog™ HDL
* By Michael D. Ciletti.
* Published by Prentice Hall.
 

traffic light source code

yes Michael Cilleti....Advanced Digital Design with Verilog

has the code for traffic light controller
 

verilog sample code for controller

i have also a project for that...due next week..:D
did you have the solution?
uhmm.....im trying to have he program now...
my first approach is, to make it simplier..:D
my solution is, for the diffirent time, why not, divide the longer time to match..
uhmm..
i mean if RED=6s,Green=5s and Yelow=1s
therefore
the output would be
R1=1s,G2=2s
R1=1s,G2=2s
R1=1s,G2=2s
R1=1s,G2=2s
R1=1s,G2=2s
R1=1s,Y2=2s
G1s,R2=1s
G1s,R2=1s
G1s,R2=1s
G1s,R2=1s
G1s,R2=1s
Y1s,R2=1s
then it would be of the same time, you just divide ur state..
hop you get my point

Added after 1 minutes:

Guru59 said:
yes Michael Cilleti....Advanced Digital Design with Verilog

has the code for traffic light controller

do yo have the book??kindly upload it
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top