Lab11: Mini-Capstone
Time Estimate3-4 Hours Grade Impact2.5% DueDec 2 @ 3pm Required for Pass
Objective
Integrate what you have learned into one small but complete digital system: debounced inputs, at least one FSM, registers/counters, and a display. Keep it small enough to finish in one lab session.
Warning
Before starting any lab, always read the entire lab description. You are working with expensive, fragile hardware.
Choose One Project
Pick one of the following (or a similarly small approved idea, such as a Simon memory game, 4-bit processor, LFSR scrambler, or smart intersection controller):
Option A: Smart Crosswalk (Recommended)
- States: cars green, cars yellow, walk, flashing don’t walk.
- Inputs: pedestrian button (debounced), timer.
- Outputs: car lights, walk/don’t walk, 7-segment countdown (optional).
Option B: Two-Digit Counter with Modes
- Debounced up/down buttons.
- Mode switch: count by 1 or by 2.
- 7-segment display of the count.
- Overflow flag LED.
Option C: Simple Sequence Game
- Show a 3-bit pattern on LEDs.
- Player repeats it with buttons.
- FSM checks correctness and tracks score (register).
- Debounced inputs.
Requirements
- At least one FSM with 3+ states.
- Debounced button inputs.
- A register or counter for data/state.
- A testbench with at least 8 test vectors.
- Synthesis report (FFs, LUTs).
- Hardware demo.
Pre-Lab
- Sketch the state diagram.
- List module interfaces.
- Predict FF/LUT counts.
Deliverable Checkpoint
Submit your state diagram and module list.
In the Lab
Step 1: Implement
Build modules in Verilog (two-always style for FSMs). Use synchronous reset.
Step 2: Simulate
Run testbench; fix failures.
Deliverable Checkpoint
Demonstrate a working testbench, explaining why the design is working.
Step 3: Synthesize and Deploy
Synthesize, program Basys 3, test on hardware.
Deliverable Checkpoint
Demonstrate a working implementation, explaining why the design is working.
Post-Lab
Submit repository, waveforms, synthesis report, and a short paragraph on what you would improve with more time.
Deliverables
Indicate to your instructor that you’re ready to submit your work by leaving a comment on the Feedback PR and requesting a review from @mossbiscuits. Ensure that your submission is on the main branch. Create a tag named done to mark your submission:
git tag -a done -m "Lab11 submission"
git push origin doneTo receive 100 points, submissions must include evidence of the following:
- (20) Correct and timely completion of the pre-lab work
- (20) FSM and debounced inputs implemented
- (20) Self-checking testbench
- (20) Synthesis report
- (20) Hardware demonstration