Skip to content

32-bit MIPS processor using Logisim Evolution. The project is designed to help beginners understand how a processor works, with a focus on logical design and basic MIPS instructions. The project includes two versions of the MIPS processor: a single-cycle version and a pipelined version.

Notifications You must be signed in to change notification settings

zahidaof/Mips-logisim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

MIPS Processor Implementation in Logisim Evolution

Welcome to the MIPS Processor Implementation project! This repository demonstrates the design and functionality of a 32-bit MIPS processor using Logisim Evolution. It includes both a single-cycle processor and a pipelined processor to cater to different learning needs.

Overview

This project demonstrates the implementation of a 32-bit MIPS processor using Logisim Evolution. The project is designed to help beginners understand how a processor works, with a focus on logical design and basic MIPS instructions. The project includes two versions of the MIPS processor: a single-cycle version and a pipelined version.

Features

Single-Cycle MIPS Processor

  • Basic Instructions: Supports add, sub, and, or, addi, andi, ori, li.
  • Control Flow: Includes j (jump), bne (branch if not equal).

Pipelined MIPS Processor

  • Pipeline Stages: Implements five stages—Instruction Fetch (IF), Instruction Decode (ID), Execute (EX), Memory Access (MEM), Write Back (WB).
  • Hazard Handling: Includes basic hazard detection and forwarding for managing data hazards.
  • Advanced Instructions: Supports the same instructions as the single-cycle version, optimized for pipelining.

Getting Started

Prerequisites

  • Logisim Evolution: Download and install Logisim Evolution from Logisim Evolution.

Running the Project

  1. Open the .circ files in Logisim Evolution.
  2. Load your program into the instruction memory (if not already loaded).
  3. Run the simulation to see the processor in action.

Modulus Calculator Program

single-cycle processor version come with a modulus calculator program, which:

  1. Allows user input for two numbers.
  2. Calculates the quotient and remainder.
  3. Displays the results on the screen.

Customization

You can adapt the MIPS processor design to run your own programs by modifying the instruction memory. The processor supports a range of basic MIPS instructions, making it versatile for experimenting with various types of programs, including arithmetic operations, logical operations, and control flow instructions.

Conclusion

This project serves as a comprehensive learning tool for understanding processor design and MIPS architecture. With a straightforward single-cycle implementation and a more complex pipelined version, it provides valuable insights into processor design and the trade-offs involved in optimizing performance.

Feel free to explore, modify, and extend the design to enhance your understanding of processor systems.

About

32-bit MIPS processor using Logisim Evolution. The project is designed to help beginners understand how a processor works, with a focus on logical design and basic MIPS instructions. The project includes two versions of the MIPS processor: a single-cycle version and a pipelined version.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published