Lab 6: Traffic Light Controller: 1. Open A New Project by Issuing "File - New Project"
Lab 6: Traffic Light Controller: 1. Open A New Project by Issuing "File - New Project"
i.
Click
7-1
2.
ii. Click iii. Click iv. Click v. Click Create a new module by issuing Project > New Source Create a verilog file traffic_light.v .
7-2
3.
Save the file and issue Synthesis-> Check syntax by doubling click.
7-3
4.
5.
If no syntax error, create a new verilog module by issuing Project > New Source. Create a verilog file bc_4b_ce_aclr.v
7-4
6.
Start HDL Editor and create macro for a 4-bit binary counter with a clock enable and an asynchronous reset inputs.
7.
Save the file and issue Synthesis-> Check syntax by double click.
7-5
8.
9.
Create another module named clk12Hz to generate 11.9 Hz clock, check syntax and then create the symbol of the module clk12Hz.
7-6
10. In Project Manager window, issue Project -> New Source. Create a schematic file named trf_ltc.
7-7
11. In Schematic Editor window Xilinx ESC, create your design at here.
7-8
12. In addition, assign input and output pads to appropriate pins of the FPGA.
7-9
Requirements:
A. Design a two-way traffic light controller. G g g ? H G
7-10
F B. Refer to the FSM as shown in class-handout. C. Design clock, counter and controller modules using verilog code. D. The top module must implemented in schematic design, cannot use verilog code. (Pin connection:) CAR -> P62 HG -> p5 HY -> p4 HR -> p3 FG- > p9 FY -> p8 FR -> p6
7-11