This lab is a refresher on finite state machines (FSMs) that you learned about and designed in EE271 or CSE369. Be sure to read the and before getting started so you know what information to collect and present as you go.
Consider a parking lot with a single gate for both entry and exit. To keep track of the occupancy of the lot, we decide to use two photosensors to track when cars enter or exit, as shown in the figure below.
When an object is between the photo transmitter and the photo receiver, the light is blocked and the corresponding output is asserted to 1. By monitoring the events of both sensors, we can determine whether a car is entering or exiting, or even if a pedestrian is passing through! You may assume that two cars won't be entering/exiting at the same time and that you don't have to worry about multiple pedestrians mimicking a car (i.e., if it looks like a car sequence, count it as a car).
For example, the following sequence indicates that a car entered:
You can (1) start from a copy of an existing project folder from EE271 or CSE369 or (2) watch the following video on how to .
The use of these are optional, depending on your preferred workflow. Versions of these should have been provided in EE271 and CSE369.
For .sv files, you may want to right-click and save/download instead of clicking.
Due within one week of the lab report deadline, but typically during your assigned demo slot or a scheduled office hour.