EE 2731 Chapter : E9G16

8 views8 pages
15 Mar 2019
School
Course
Professor

Document Summary

Design and implement a 4-way traffic light controller that uses pressure activated sensors embedded into the roadway to determine the sequence of light changes used to optimize the flow of traffic. Nsr <= 1; nsy <= 0; nsg <= 0; ewr <= 0; ewy <= end begin begin. Nsr <= 0; nsy <= 0; nsg <= 1; ewr <= 1; ewy <= 0; ewg <= 0; if((state==4) && nsy || ewg) begin state <= 0; count <= count; end else if(!nsg) begin. Nsr <= 1; nsy <= 0; nsg <= 0; ewr <= 0; ewy <= 1; ewg <= 0; state <= state+1; end end else if(!ns && ew) 0; ewg <= 1; state<= 0; count<= count; else if(!ewg) Nsr <= 1; nsy <= 0; nsg <= 0; ewr <= 0; ewy <= 0; ewg <= 1; count<=count; end else if (!ns && !ew && nsg)

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents