This repository contains VHDL implementations of fixed-point arithmetic units designed and tested on the DE-2 FPGA board. The project includes a 4-bit adder/subtractor and a signed multiplier. The design demonstrates structural VHDL coding, RTL-level modeling, and synthesis for FPGA deployment.
- Overview
- Number Representations
- Adder/Subtractor Design
- Multiplier Design
- Circuit Diagrams
- Simulation
- Directory Structure
- Usage
- References
The goal of this project is to implement fixed-point arithmetic operations for signed 4-bit numbers. Completed modules include:
- 1-bit half adder and full adder
- 4-bit ripple-carry adder/subtractor
- 4-bit signed multiplier (shift-and-add method)
- Status outputs for arithmetic operations: CarryOut, ZeroOut, OverflowOut
The project emphasizes structural VHDL design with synthesizable logic blocks.
All operations use 2’s complement representation for signed numbers, which allows:
- Easy addition and subtraction
- Unique zero representation
- Direct hardware mapping for multiplication
The full adder is the fundamental building block for multi-bit addition.
Truth Table (1-bit Full Adder)

Logic Diagram (1-bit Full Adder)

Cascading 1-bit full adders forms a ripple-carry adder. Subtraction is implemented using 2’s complement: