Skip to content

jonathanmcmahon/mips

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mips

A MIPS processor simulator written in rust.

MIPS processor diagram

(Source: Ruye Wang)

Design notes

  • Clock cycles can be simulated by iterating over all CPU components and calling a cycle() function on each, which will execute whatever activities that component performs during a cycle. One complete iteration over all components corresponds to one clock cycle.

  • Separate compiler will convert MIPS assembly instructions to hex instructions and the processor will take such a compiled file as input. The file will contain one hex instruction per line.

Design references

Detailed, step-by-step MIPS design

RISC Architecture - MIPS (Stanford)

MIPS Processor (Multiple Cycle)

MIPS Architecture (Wikipedia)

Design of Pipelined MIPS Processor

MIPS Converter (Instruction to Hex)

About

A Rust MIPS processor simulator

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages