• DEPARTMENT
    • Overview
    • Computing
    • Facilities
    • Organizations
    • Scholarship Awards
    • Employment
    • Advisory Committee
    • Contact
  • ACADEMICS
    • Undergraduate
      • Computer Eng.
      • Electrical Eng.
      • Ambassadors
    • Graduate
      • Information for Prospective Students
      • ECE Graduate Handbook
      • Graduate Forms
      • Ph.D. Qualifying Exam
      • Distance Education
      • Frequently Asked Questions (FAQ)
    • Courses
    • Student Survival kit
    • Distance Learning
  • PEOPLE
    • Faculty
    • Staff
  • PROSPECTIVE STUDENTS
    • Overview
    • FAQ
    • Considering ECE
    • Scholarships
    • PC Requirements
    • Office of Admissions
  • RESEARCH
    • Overview
    • Signal Processing & Communications
    • Digital Systems & Microelectronics
    • Power & High Voltage
    • Research Centers
      • Emerging Materials Research Laboratory
      • High Voltage Laboratory
      • Robotics
    • HPCC
  • ALUMNI
Irish Potato Famine - Ece
Personal tools
  • Log in
Views
  • Page
  • Discussion
  • View source
  • History

Irish Potato Famine

From Ece

Jump to: navigation, search

Contents

  • 1 Team Name and Members
  • 2 Design Overview
  • 3 Instruction Format
    • 3.1 R-Format
    • 3.2 I-Format
    • 3.3 J-Format
  • 4 Instructions
  • 5 Assembly language and machine code for the test program
  • 6 Machine Code

Team Name and Members

Team name: Irish Potato Famine (IPF)
Team leader: Brice McElroy
Team member: Tina McGlaston


Design Overview

The team will create a 16-bit processor based on the MIPS instruction set. Our processor will implement 15 instructions, use 12 registers, and use separate program and data memories. The clocking type will be rising edge triggered. The processor will utilize pipe-lining when possible by forwarding, and the necessary signals to indicate data hazards. These will be contained in the datapath. Below is a description of the register file.

Register Address Register Name
0000 $zero
0001 $v0
0010 $v1
0011 $v2
0100 $v3
0101 $t0
0110 $a0
0111 $a1
1000 $t1
1001 $t2
1010 $t3
1011 $t4

Instruction Format

R-Format

Opcode rs rt rd/func
4 bits 4 bits 4 bits 4 bits

I-Format

Opcode rs Immediate8
4 bits 4 bits 8 bits

J-Format

Opcode Address
4 bits 12 bits

Instructions

Name Mnemonic Operation Opcode Format
Add add add $s1, $s2, $s3; $s3 = $s1 + $s2 0000 R
Add immediate addi addi $s1, 100; $s1 = $s1 + 100 0001 I
Subtract sub sub $s1, $s2, $s3; $s3 = $s1 - $s2 0010 R
And and and $s1, $s2, $s3; $s3 = $s1 & $s2 0011 R
Or Immediate ori ori $s1, $s1, 1; $s1 = $s1 | 1 0100 I
Or or or $s1, $s2, $s3; $s3 = $s1 | $s2 0101 R
Exclusive Or xor xor $s1, $s2, $s3; $s3 = $s1 ^ $s2 0110 R
Shift Left logical sll sll $s1, 1; $s1 = $s1 << 1; 0111 I
Shift Right logical srl srl $s1, 1; $s1 = $s1 >> 1; 1000 I
Branch Equal to Zero bez bez $s1, L;
if $s1 == 0; go to L
1001 I
Branch if not equal bne bne $s1, $s2, BranchAddr;
if $s1 != $s2; pc = pc + 4 + BranchAddr
1010 R
Set Less Than slt slt $s1, $s2, $s3; $s3 = ($s1 < $s2); 1011 R
Load Word lw lw $s1, A($s2); $s1 = Mem[$s2 + SignExtImm] 1100 R
Store word sw sw $s1, A($s2); Mem[$s0 + SignExtImm] = $s1 1101 R
Jump j j address; pc = address 1110 J

Assembly language and machine code for the test program

while ($a1 > 0) do {
     $a1 = $a1 - 1;
     $t0 = Mem[$a0];
     if ($t0 > 0100hex) then {
          $v0 = $v0 ÷ 8;
          $v1 = $v1 | $v0; //or
          Mem[$a0] = FF00hex;
     }
     else {
          $v2 = $v2 × 4;
          $v3 = $v3 ⊕ $v2; //xor
          Mem[$a0] = 00FFhex;
     }
          $a0 = $a0 + 2;
}
return;

Machine Code

Retrieved from "http://www.ece.msstate.edu/wiki/index.php/Irish_Potato_Famine"
Navigation
  • Main Page
  • Community portal
  • Current events
  • Recent changes
  • Random page
  • Help
SEARCH
TOOLBOX
LANGUAGES
 
Toolbox
  • What links here
  • Related changes
  • Upload file
  • Special pages
  • Printable version
  • Permanent link
Powered by MediaWiki
  • This page was last modified on 22 April 2009, at 03:55.
  • This page has been accessed 174 times.
  • Privacy policy
  • About Ece
  • Disclaimers

Mississippi State University Home| PO Box 9571, Mississippi State, MS 39762 | Main Office: 1.662.325.3912

Bagley College of Engineering | Mississippi State University| Legal| Webmaster| Intranet

Page modified: Tue, 23 Sep 2008 15:18:39 CDT