Module pedestrian_st(clk, rst, ped_detected ,ped_passed, green, yellow, red, ![]() I'm sure its a simple fix, but I am having trouble understanding. I have attached my code for the pedestrian bellow. ![]() When I press the button the light simply changes to yellow and red and then changes back to the original state green and red when I let go of the button. However when I press the button on the FPGA board that means a pedestrian is at the crosswalk and the light should behave like the waveform above, but it does not work. "_sc" is the main street and "_st" is the crosswalk street. I have shown the simulation bellow that is working correctly. I am working on a traffic light code and the code seems to be working fine in simulation, but when implemented on the FPGA the colors do not seem to toggle from yellow to red for the main street (sc) and green to yellow to red for the crosswalk street (st).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |