Skip to content
All work
2026EECS 270 — digital logicCompleted

EECS 270 Project 7: sequential four-function calculator in Verilog. Shared AddSub datapath, Booth-style multiply, magnitude divide, SM/TC conversion, ModelSim tests, and board I/O on switches, keys, and HEX displays.

Stack
VerilogFPGAModelSimFSMRTL
Outcomes

DE2-115

Board

11-bit

Word width

+ − × ÷

Ops

Highlights
  • Datapath / controller split with one shared AddSub unit
  • Booth multiply and magnitude divide with overflow / divide-by-zero
  • Board demo — SW entry, KEY ops, HEX result, LEDG overflow
LabsLand console capture during board bring-up — HEX digits partially visible; source video is soft. A sharper personal board photo is still needed.

Gallery

Course datapath figure — single 11-bit AddSub shared across ops.
Course abstract STG — LOAD → ADD/SUB → MUL → DIV + overflow.

Problem and outcome

Build a sequential calculator — not a one-cycle ALU. An FSM walks operands through add, subtract, multiply, and divide and shows a stable result on HEX.

Outcome: FourFuncCalc datapath + controller for 11-bit two’s-complement arithmetic, with ModelSim coverage and a board demo.

Role

Architecture

SW / KEY / SW[17]  →  FourFuncCalc (FSM + datapath)
                         ├─ HEX operand / result
                         └─ LEDG[8] overflow / ÷0

Technical decisions

1. One shared AddSub for all four ops (required datapath).
2. Booth multiply embedded in the datapath (not a direct BoothMul instance).
3. Divide on magnitudes; sign via XOR; divisor zero → overflow until clear.
4. External signed-magnitude, internal two’s complement via staff converters.

Validation

ModelSim with state labels; autograder checkpoint (ADD/SUB) and final (all ops); board checks on DE2-115 / LabsLand.

Board demo clip — LabsLand remote session; still frames are soft.

Limitations

Cover is a frame from a soft LabsLand recording, not a sharp bench photo with a clearly readable result. Diagrams in the gallery are course-provided figures.