完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
我在做一个用altera Quartus II family:APEX20KE 的 交通灯控制器,代码过后会输入FPGA" class="t_tag">FPGA芯片.请高人指点,有完整报告更好,时间紧逼
The controller to be designed controls the traffic lights of a busy highway (HWY) intersectin g a side road (SRD) that has relatively lighter traffic load. Figure 1 shows the location of the traffic lights. Sensors at the intersection detect the presence of cars on the highway and side road. The Figure implies that both the highway and side roads offer single lanes for traffic in each direction. Both roads have ordinary (Red, Yellow, Green) signal lights. The intersection is fitted with a sensor. Finite-state machine specifications The traffic light controller works in the following way. 1. The lights controller makes use of car sensors at the intersection of the side road with the highway, to sense presence of cars. 2. The lights controller makes use of three timers: a 60 seconds timer (T60), a 30 seconds timer (T30), and a 10 seconds timer (T10). Once a trigger signal is applied to a timer, the timer output is zero and becomes 1 after the programmed time period. For example, upon reset, the T30 timer output is '0' and will become '1' after 30 s have elapsed and stays '1' until reset by the controller. 3. Pedestrians can use the intersection by pressing buttons and debouncing switches. Pedestrians will need to cross the highway only since crossing the side road is assured most of the time. 4. HWY lights remain green as long as there are no cars triggering the SRD sensors. 5. When HWY lights have been green for a minimum of 60 seconds, a car on SRD may cause HWY lights to cycle through yellow to red states. 6. Meanwhile, SRD lights will turn green and remain green for a minimum of 30 seconds. Further application of SRD sensors beyond the 30 seconds will enable SRD to remain green for a maximum of 60 seconds. 7. SRD lights will cycle through yellow and red states and HWY lights will then turn green. 8. The lights stay yellow for 10 seconds. 9. Each traffic post has three lights GREEN, YELLOW and RED. 10. In the default state, HWY lights show GREEN and SRD lights show RED. 完整提目请看附件 |
|
相关推荐
11 个讨论
|
|
谢谢LZ的共享好东东
|
|
|
|
|
|
谢谢
|
|
|
|
|
|
谢谢
|
|
|
|
|
|
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-12-25 19:21 , Processed in 0.957981 second(s), Total 69, Slave 57 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号