Skip to content

nikilearth/8-Bit-Adder-Subtractor

Repository files navigation

8 Bit Adder/Subtractor

Abstract

This project presents the design and implementation of an 8-bit Arithmetic Logic Unit using 74LS283 4-bit binary adders and 74LS86 XOR gates. The ALU performs addition and subtraction on two 8-bit binary numbers, selected through DIP switches, and displays results via LEDs. Subtraction is implemented using the two’s complement method, where the B input is inverted through XOR gates and a carry in is introduced.

Components Used

  • 74LS283 – Two 4-bit full adders (to build 8-bit adder/subtractor).
  • 74LS86 – XOR gates (to invert B input during subtraction).
  • DIP Switches – User inputs for binary values.
  • LEDs – Result output display.

Circuit Overview

  • Addition Mode: Result = A + B
  • Subtraction Mode: Result = A + (~B) + 1

Schematic & Layout

  • 8-bit ALU Schematic
image

Truth Tables

Addition

image

Subtraction

image

Date: 21/09/2025

About

made a 8 bit ALU schematic in kiCAD and simulated it in python

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors