Skip to content

VoidingWarranties/Comp-Org-Final

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

87 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Comp-Org-Final

Final project for Computer Organization and Design (CSCI 2500) - Fall 2014

Directory structure

  • asm_testprog Assembly-only test program (produces asm_testprog.elf). Modify as needed to test your simulator, but will not be graded.
  • c_testprog C+assembly test program (produces c_testprog.elf). Modify as needed to test your simulator, but will not be graded
  • sim The simulator itself, you will need to fill in the missing parts.

Basic workflow

  • Make changes to test code in c_testprog/ or asm_testprog/ as needed
  • Make changes to simulator code in sim as needed
  • Run "make" in the appropriate test program directory to compile your test code to a MIPS executable.
  • Go to the sim directory and run "make" to compile your simulator
  • Run "./sim ../test_program_dir/input_file.elf" (using the appropriate input file name) to launch the simulation.

Instructions Left to Implement:

R-type:

  • add
  • addu
  • and
  • or
  • sub
  • subu
  • xor
  • slt
  • sltu
  • sll
  • sllv
  • sra
  • srl
  • srlv
  • div
  • divu
  • mult
  • multu

I-type:

  • addi
  • addiu - tested somewhat
  • andi
  • lui
  • ori
  • xori
  • slti
  • sltiu

Move:

  • mfhi
  • mflo

Branch:

  • beq
  • bne
  • bgez
  • bltz
  • bgezal
  • bltzal
  • bgtz
  • blez

Jump:

  • j
  • jal
  • jr

Memory load/store:

  • lw - tested somewhat
  • sw - tested somewhat
  • lb - tested somewhat
  • sb - tested somewhat

Misc:

  • syscall

About

Computer Organization and Design final project

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published