Skip to content

cunyame/PROCESSOR

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

6 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Pipelined MIPS32 Processor Simulation in Verilog

This project implements a simplified 5-stage pipelined MIPS32 processor in Verilog and simulates it using a custom testbench. The design supports a basic instruction set and demonstrates pipelined execution, including register updates and memory access for calculating factorial using loop-based control.


๐Ÿ“ Files

  • pipe_MIPS32.v โ€“ Verilog module for pipelined MIPS32 processor.
  • test_mips32.v โ€“ Testbench to simulate the processor and observe register/memory changes.
  • mips.vcd โ€“ Waveform dump generated after simulation (viewable in GTKWave or Vivado).
  • README.md โ€“ This file.

โœ… Features

  • Two-phase clocked pipeline: clk1 and clk2
  • 32 general-purpose registers
  • 1024 32-bit memory locations
  • Implements key instructions:
    • R-type: ADD, SUB, AND, OR, SLT, MUL
    • I-type: ADDI, SUBI, SLTI, LW, SW, BEQZ, BNEQZ
    • Control: HLT
  • Simulates factorial computation using loop

๐Ÿ”ง Instructions to Run

๐Ÿ›  Requirements

  • Xilinx Vivado (tested with 2024.2)
  • Basic Verilog knowledge

โ–ถ๏ธ Simulation Steps

  1. Open Vivado โ†’ Create New Project โ†’ Add pipe_MIPS32.v and test_mips32.v
  2. Set test_mips32 as the top module.
  3. Run behavioral simulation.
  4. Observe simulation output or open mips.vcd in waveform viewer.

About

MIP32 PROCESSOR IMPLEMENTED ON VERILOG

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published