Design Sheet
1. Team Members
Team member: Name
Team member: Name
2. Design Overview
The design and instructionset is fora16-register 16-bit computer. Likein MIPSarchitecture,register
0 will always contain the value 0. The machine code instruction is 6 bits meaning it can handle up to
64 different instructions, but the design will be limited to only 25 different instructions. Each
instruction and operation is triggered by the rise of the computer clock.
2.1. Instructionformat
R-Format:
Opcode rs rt 0 rd
5 bits 3 bits 3 bits 2 bits 3 bits
I–Format:
Opcode rs rt Immediate
5 bits 3 bits 3 bits 5 bits
2.2. Instructions
Name
Mnem
onic
Operation Opcode Func
For
mat
Add immediate addi addi $s1, $s2, I; $s1 = $s2 + I 00000 000000 I
Subtract immediate subi sub $s1, $s2, I; $s1 = $s2 – I 00001 000000 I
OR immediate ori ori $s1, $s2, I; $s1= $s2 v I 00010 000000 I
AND immediate andi andi $s1, $s2, I; $s1= $s2 ^ I 00011 000000 I
XORimmediate xori xori $s1, $s2, I; $s1= $s2 ⊕I 00100 000000 I
NOR immediate nori nori $s1, $s2, I;$s1= ~($s2| I) 00101 000000 I
NAND immediate nandi andi $s1, $s2, I; $s1= ~($s2& I) 00110 000000 I
XNORimmediate xnori xori $s1, $s2, I; $s1= ~($s2⊕I) 00111 000000 I
Add add add $s1, $s2, $s3; $s1 = $s2 + $s3 01000 000000 R
Subtract sub sub $s1, $s2, $s3; $s1 = $s2 - $s3 01001 000000 R
OR or or $s1, $s2, $s3; $s1= $s2 v $s3 01010 000000 R
AND and and $s1, $s2, $s3; $s1= $s2 ^ $s3 01011 000000 R
XOR xor xor $s1, $s2, $s3; $s1= $s2 ⊕$s3 01100 000000 R
NOR nor nor $s1, $s2, $s3; $s1= ~($s2| $s3) 01101 000000 R
NAND nand and $s1, $s2, $s3; $s1= ~($s2& $s3) 01110 000000 R
XNOR xnor xor $s1, $s2, $s3; $s1= ~($s2⊕ $s3) 01111 000000 R
Branch if equal beq beq $s1, $s2, $s3; if $s1=$s2, j to $s3 10000 000000 R
Branch if not equal bne bne $s1, $s2, $s3; if $s1=/=$s2, j to $s3 10001 000000 R
Shift bits to the left sl Sl $s1, $s2, I; $s1 = $s2 << I 10010 000000 I
Shift bits to the right sr Sl $s1, $s2, I; $s1 = $s2 >> I 10011 000000 I
Jump j J I 10100 000000 J
No operation nop nop 10101 000000 J
Move immediate movi movi $s1, I; $s1 = I 10110 000000
I
Move mov mov $s1, $s2; $s1 = $s2 10111 000000 I
The instructions supported are
● Arithmetic-logical instructions
● Control flow instructions
Individual functional units:
R-Type Instructions
R typeinstructions take2 registers and performALU operation on these two.The result of whichwill
be written to another register.
I-TypeInstructions
I type instructions is almost the same as R type instructions with the exception that the second
operand forI type instruction is an immediate value given by the user.
Both instructions willfollow the same data path shown below
Considering the data path given, the main differencebetween the R and I typeinstruction is that the
ALUSrc for the R type instructions will be set to 1 so that the multiplexer connected to the input of
the main ALU will be the second read data. Consequently, I typeinstructions will have its ALUSrc set
to 0, so the multiplexer connected to the main ALU will be the first 16 bits.
JUMP
The data path followedby the jump instruction resembles the complete data path for the computer.
The only thing missing is the controlunit. Thecontrolunit is responsible for setting whichvalues will
pass through each of the multiplexors available.
The figure above shows the complete data path with the control unit. The simple control unit
produces a certain array of bits depending on the type of instruction given.
Instruction RegDst ALUSr
c
MemToReg MemWrite MemRea
d
Branch Jump RegWrit
e
R-format 1 0 0 0 0 0 0 1
I-format 0 0 0 0 0 0 0 1
J-format x 0 x 0 0 1 1 0

More Related Content

PDF
2 data and c
PDF
In what way can C++0x standard help you eliminate 64-bit errors
DOCX
Matlab project
PPTX
Logical, Shift, and Rotate Instruction
PDF
05 Jo P May 07
PDF
2. ALU and MIPS Arcitecture introduction.pdf
2 data and c
In what way can C++0x standard help you eliminate 64-bit errors
Matlab project
Logical, Shift, and Rotate Instruction
05 Jo P May 07
2. ALU and MIPS Arcitecture introduction.pdf

Similar to Attachment_ VHDL datasheet (20)

PDF
3. Single Cycle Data Path in computer architecture
PPT
W9: Laboratory 2
PPTX
PROCESSOR AND CONTROL UNIT
PPTX
PROCESSOR AND CONTROL UNIT - unit 3 Architecture
PPT
Instruction set of 8051.ppt
PPTX
ARM instruction set
PPT
Lec20 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Da...
PPT
microcontroller_instruction_set for ENGINEERING STUDENTS
PPTX
BASICS OF MIPS ARCHITECTURE AND THEIR INSTRUCTION SET
PPTX
Building a datapath and control in processor
PPT
instruction_set_8051_microcontroller.ppt
PDF
ARM_InstructionSet.pdf; For VTU 22 regulation course code BCS402
PPTX
ARM instruction set
PPTX
UNIT 3 - General Purpose Processors
PDF
digitaldesign-2020-lecture10a-lc3andmips-beforelecture.pdf
PPT
Chapter 4 the processor
PPT
W8_1: Intro to UoS Educational Processor
PPT
Register Transfer Language and Micro Operations
PPT
W8_2: Inside the UoS Educational Processor
3. Single Cycle Data Path in computer architecture
W9: Laboratory 2
PROCESSOR AND CONTROL UNIT
PROCESSOR AND CONTROL UNIT - unit 3 Architecture
Instruction set of 8051.ppt
ARM instruction set
Lec20 Intro to Computer Engineering by Hsien-Hsin Sean Lee Georgia Tech -- Da...
microcontroller_instruction_set for ENGINEERING STUDENTS
BASICS OF MIPS ARCHITECTURE AND THEIR INSTRUCTION SET
Building a datapath and control in processor
instruction_set_8051_microcontroller.ppt
ARM_InstructionSet.pdf; For VTU 22 regulation course code BCS402
ARM instruction set
UNIT 3 - General Purpose Processors
digitaldesign-2020-lecture10a-lc3andmips-beforelecture.pdf
Chapter 4 the processor
W8_1: Intro to UoS Educational Processor
Register Transfer Language and Micro Operations
W8_2: Inside the UoS Educational Processor
Ad

Recently uploaded (20)

PDF
LOW POWER CLASS AB SI POWER AMPLIFIER FOR WIRELESS MEDICAL SENSOR NETWORK
PPTX
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
PPTX
Chemical Technological Processes, Feasibility Study and Chemical Process Indu...
PDF
August 2025 - Top 10 Read Articles in Network Security & Its Applications
PDF
Applications of Equal_Area_Criterion.pdf
PPTX
Amdahl’s law is explained in the above power point presentations
PPTX
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
PDF
First part_B-Image Processing - 1 of 2).pdf
PDF
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
PDF
Exploratory_Data_Analysis_Fundamentals.pdf
PDF
Computer organization and architecuture Digital Notes....pdf
PPTX
Information Storage and Retrieval Techniques Unit III
PPTX
ASME PCC-02 TRAINING -DESKTOP-NLE5HNP.pptx
PPTX
Management Information system : MIS-e-Business Systems.pptx
PDF
Soil Improvement Techniques Note - Rabbi
PDF
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
PDF
distributed database system" (DDBS) is often used to refer to both the distri...
PDF
Unit1 - AIML Chapter 1 concept and ethics
PPTX
Petroleum Refining & Petrochemicals.pptx
PDF
MLpara ingenieira CIVIL, meca Y AMBIENTAL
LOW POWER CLASS AB SI POWER AMPLIFIER FOR WIRELESS MEDICAL SENSOR NETWORK
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
Chemical Technological Processes, Feasibility Study and Chemical Process Indu...
August 2025 - Top 10 Read Articles in Network Security & Its Applications
Applications of Equal_Area_Criterion.pdf
Amdahl’s law is explained in the above power point presentations
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
First part_B-Image Processing - 1 of 2).pdf
null (2) bgfbg bfgb bfgb fbfg bfbgf b.pdf
Exploratory_Data_Analysis_Fundamentals.pdf
Computer organization and architecuture Digital Notes....pdf
Information Storage and Retrieval Techniques Unit III
ASME PCC-02 TRAINING -DESKTOP-NLE5HNP.pptx
Management Information system : MIS-e-Business Systems.pptx
Soil Improvement Techniques Note - Rabbi
Artificial Superintelligence (ASI) Alliance Vision Paper.pdf
distributed database system" (DDBS) is often used to refer to both the distri...
Unit1 - AIML Chapter 1 concept and ethics
Petroleum Refining & Petrochemicals.pptx
MLpara ingenieira CIVIL, meca Y AMBIENTAL
Ad

Attachment_ VHDL datasheet

  • 1. Design Sheet 1. Team Members Team member: Name Team member: Name 2. Design Overview The design and instructionset is fora16-register 16-bit computer. Likein MIPSarchitecture,register 0 will always contain the value 0. The machine code instruction is 6 bits meaning it can handle up to 64 different instructions, but the design will be limited to only 25 different instructions. Each instruction and operation is triggered by the rise of the computer clock. 2.1. Instructionformat R-Format: Opcode rs rt 0 rd 5 bits 3 bits 3 bits 2 bits 3 bits I–Format: Opcode rs rt Immediate 5 bits 3 bits 3 bits 5 bits 2.2. Instructions Name Mnem onic Operation Opcode Func For mat Add immediate addi addi $s1, $s2, I; $s1 = $s2 + I 00000 000000 I Subtract immediate subi sub $s1, $s2, I; $s1 = $s2 – I 00001 000000 I OR immediate ori ori $s1, $s2, I; $s1= $s2 v I 00010 000000 I AND immediate andi andi $s1, $s2, I; $s1= $s2 ^ I 00011 000000 I XORimmediate xori xori $s1, $s2, I; $s1= $s2 ⊕I 00100 000000 I NOR immediate nori nori $s1, $s2, I;$s1= ~($s2| I) 00101 000000 I NAND immediate nandi andi $s1, $s2, I; $s1= ~($s2& I) 00110 000000 I XNORimmediate xnori xori $s1, $s2, I; $s1= ~($s2⊕I) 00111 000000 I Add add add $s1, $s2, $s3; $s1 = $s2 + $s3 01000 000000 R Subtract sub sub $s1, $s2, $s3; $s1 = $s2 - $s3 01001 000000 R OR or or $s1, $s2, $s3; $s1= $s2 v $s3 01010 000000 R AND and and $s1, $s2, $s3; $s1= $s2 ^ $s3 01011 000000 R XOR xor xor $s1, $s2, $s3; $s1= $s2 ⊕$s3 01100 000000 R NOR nor nor $s1, $s2, $s3; $s1= ~($s2| $s3) 01101 000000 R
  • 2. NAND nand and $s1, $s2, $s3; $s1= ~($s2& $s3) 01110 000000 R XNOR xnor xor $s1, $s2, $s3; $s1= ~($s2⊕ $s3) 01111 000000 R Branch if equal beq beq $s1, $s2, $s3; if $s1=$s2, j to $s3 10000 000000 R Branch if not equal bne bne $s1, $s2, $s3; if $s1=/=$s2, j to $s3 10001 000000 R Shift bits to the left sl Sl $s1, $s2, I; $s1 = $s2 << I 10010 000000 I Shift bits to the right sr Sl $s1, $s2, I; $s1 = $s2 >> I 10011 000000 I Jump j J I 10100 000000 J No operation nop nop 10101 000000 J Move immediate movi movi $s1, I; $s1 = I 10110 000000 I Move mov mov $s1, $s2; $s1 = $s2 10111 000000 I The instructions supported are ● Arithmetic-logical instructions ● Control flow instructions Individual functional units:
  • 3. R-Type Instructions R typeinstructions take2 registers and performALU operation on these two.The result of whichwill be written to another register. I-TypeInstructions I type instructions is almost the same as R type instructions with the exception that the second operand forI type instruction is an immediate value given by the user. Both instructions willfollow the same data path shown below Considering the data path given, the main differencebetween the R and I typeinstruction is that the ALUSrc for the R type instructions will be set to 1 so that the multiplexer connected to the input of the main ALU will be the second read data. Consequently, I typeinstructions will have its ALUSrc set to 0, so the multiplexer connected to the main ALU will be the first 16 bits.
  • 5. The data path followedby the jump instruction resembles the complete data path for the computer. The only thing missing is the controlunit. Thecontrolunit is responsible for setting whichvalues will pass through each of the multiplexors available.
  • 6. The figure above shows the complete data path with the control unit. The simple control unit produces a certain array of bits depending on the type of instruction given. Instruction RegDst ALUSr c MemToReg MemWrite MemRea d Branch Jump RegWrit e R-format 1 0 0 0 0 0 0 1 I-format 0 0 0 0 0 0 0 1 J-format x 0 x 0 0 1 1 0