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):

  • 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

  1. At least one FSM with 3+ states.
  2. Debounced button inputs.
  3. A register or counter for data/state.
  4. A testbench with at least 8 test vectors.
  5. Synthesis report (FFs, LUTs).
  6. Hardware demo.

Pre-Lab

  1. Sketch the state diagram.
  2. List module interfaces.
  3. 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 done

To 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