Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SAP-1 Educational Computer

A complete implementation of the SAP-1 (Simple-As-Possible Computer) architecture designed using Logisim and physically implemented on breadboards with TTL integrated circuits.

This project demonstrates the complete Fetch–Decode–Execute instruction cycle through both simulation and real hardware implementation as part of the Computer Architecture course.


Project Overview

The objective of this project was to design and implement a complete 8-bit SAP-1 educational computer from scratch.

The computer was first built and verified using Logisim, then physically implemented using breadboards and TTL integrated circuits to demonstrate the execution of machine-language programs.

The processor supports loading instructions into RAM, fetching instructions, decoding opcodes, executing arithmetic operations, storing results, and displaying the output on a 7-segment display.


Features

  • Complete SAP-1 computer architecture
  • Logisim simulation
  • Physical hardware implementation
  • Fetch–Decode–Execute instruction cycle
  • Program Counter (PC)
  • Memory Address Register (MAR)
  • RAM
  • Instruction Register (IR)
  • Controller / Control Unit
  • Arithmetic Logic Unit (ALU)
  • Register A
  • Register B
  • Output Register
  • Decoder
  • 7-Segment Display
  • Clock and Reset circuits
  • Sample machine-language program

Technologies

  • Logisim
  • Digital Logic
  • Computer Architecture
  • Breadboards
  • TTL Integrated Circuits
  • Combinational Logic
  • Sequential Logic

Project Structure

SAP1-Educational-Computer/

├── hardware/

├── logisim/

├── programs/

├── screenshots/

├── README.md

├── LICENSE

└── .gitignore


Simulation

The complete SAP-1 computer was first designed and verified using Logisim.

The simulation demonstrates the complete execution cycle including instruction fetching, decoding, arithmetic operations, memory access, and output generation.

Simulation


Hardware Implementation

After validating the design in Logisim, the SAP-1 computer was physically implemented using breadboards and TTL integrated circuits.

The hardware successfully reproduces the same instruction execution process performed in the simulator.

Hardware Prototype

Hardware 1

Hardware 2

Hardware 3

Hardware 4


Sample Program

A sample machine-language program is included inside:

programs/sap1program.txt

The instructions can be loaded directly into RAM before running the simulation or testing the physical implementation.

The provided program demonstrates instruction execution through the complete Fetch–Decode–Execute cycle.


How to Run

Simulation

  1. Open the Logisim circuit located inside the logisim folder.
  2. Load the instructions from programs/sap1program.txt into RAM.
  3. Reset the processor.
  4. Enable the clock.
  5. Execute the program step-by-step or continuously.
  6. Observe the register values and output display.

Hardware

  1. Power the breadboard implementation.
  2. Load the same machine instructions.
  3. Reset the processor.
  4. Start the clock.
  5. Observe LEDs, registers, and the seven-segment display.

Course Information

Computer Architecture

SAP-1 Educational Computer

Zewail City of Science and Technology


Acknowledgment

This project was developed as part of the Computer Architecture course at Zewail City of Science and Technology.


Course Information

Course: Computer Architecture

Project: SAP-1 Educational Computer


License

This project is intended for educational purposes only.

About

Designed and implemented a complete SAP-1 educational computer using Logisim and physical hardware.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors