Sunday, December 13, 2009

Building a MIPS processor

To anyone who wishes to build a simple single-cycle MIPS processor, here's a diagram of how to do so!


Please excuse the not-so-straight lines, this was a crappy scan of a 22"x25.5" hand drawn diagram. It was made for a processor design class that I just finished up, and can execute the following instructions:
  • add
  • addi
  • sub
  • mul
  • lw
  • sw
  • sb
  • lh
  • lb
  • sh
  • lui
  • and
  • or
  • nor
  • xor
  • andi
  • ori
  • xori
  • sll
  • srl
  • slt
  • slti
  • movn
  • bgez
  • beq
  • bne
  • bgtz
  • blez
  • bltz
  • j
  • jr
  • jal
I don't know if anyone will ever have a use for this, but here it is, for all the world to enjoy! So.... Enjoy! :)

2 comments:

  1. kindly tell me the above architecture is applicable for all instructions you mentioned above????

    ReplyDelete