CS223 Laboratory Assignment 4 (Solution)

$ 20.99
Category:

Description

Traffic Light System

All Sections: 28th Nov, Mon 09:00

Lab dates and times:
Section 1: 28th Nov, Mon 08:30-12:20 in EA-Z04
Section 2: 29th Nov, Tue 08:30-12:20 in EA-Z04
Section 3: 30th Nov, Wed 08:30-12:20 in EA-Z04
Section 4: 28th Nov, Mon 13:30-17:20 in EA-Z04
Section 5: 2nd Dec, Fri 08:30-12:20 in EA-Z04
Section 6: 29th Nov, Tue 13:30-17:20 in EA-Z04

Location: EA Z04 (in the EA building, straight ahead past the elevators)
Groups: Each student will do the lab individually. Group size = 1

Traffic Light System

● Preliminary Design Report (30 pts)
All the content in the preliminary report must be machine-printed. No hand-written or hand-drawn content will be accepted.

a) Your improved Moore machine state transition diagram, state encodings, state transition table, output table, next state, and output equations. b) Your Finite State Machine schematic.
c) How many flip-flops do you need to implement this problem?
d) Redesign of your outputs using decoders.
e) Your System Verilog design code and testbench.

● Simulation (30 pts)
Enter Verilog module to Xilinx ISE software and select simulation mode. Prepare a testbench using the Verilog Test Fixture of the ISE software. In the simulation, try all possible variations through the inputs (including the sensors SA and SB) and observe the LA and LB traffic lights.

● Implementation on FPGA (40 pts)
In this part, you are going to implement your code on FPGA.
1) Slow down the clock to 3 seconds to see the change in the lights.

2) Use LEDs on the BASYS board for outputs of LA and LB traffic lights.
Red : *** (three leds)
Green: ** (two leds)
Yellow: * (one led)

3) The SA and SB sensors will be two left-most buttons. The sensor will be active when as long as the button is set to 1.

Cleanup!
Clean up your lab station, and return all the parts, etc. Throw away any parts that do not work. Save your project on a flash memory stick. Delete the Xilinx Project you created and any files you created today so that the computer is in the same state that you found it. Now turn off the computer, and leave your lab workstation for others the way you would like to find it—clean and organized.

Reviews

There are no reviews yet.

Be the first to review “CS223 Laboratory Assignment 4 (Solution)”

Your email address will not be published. Required fields are marked *