All projects

VLSI & digital design Digital logic exercise

Vending Machine Controller

A Verilog state machine for coin inputs, dispensing and a change signal.

Vending controller input and output connections shown in the testbench schematic
Controller input and output signals
Simulation waveform showing changes in the vending controller signals
Testbench waveform

The brief

Model a small vending controller to practice tracking state across clock cycles.

How it works

  • Encode the coin input and running balance
  • Drive the dispense and change signals from states
  • Inspect transitions using a testbench waveform

Want to build something similar?

Send your own project title and target budget.

Get an estimate