SlideShare a Scribd company logo
COMPUTER ARCHITECTURE
Von Neumann Vs Harvard Architecture
MIPS INSTRUCTION FORMAT
– Type
– Type
- Type
R – TYPE INSTRUCTION FORMAT
Eg:1. add $s1,$s2,$s3
Eg:2. sll $s1,$s2,10
000000
EXAMPLE
add $s1,$s2,$s3
6 5 5 5 5 6
op rs rt rd Shift amt fn
000000 10010 10011 10001 00000 100000
6 5 5 5 5 6
op rs rt rd Shift amt fn
000000 00000 10010 10001 01010 000000
sll $s1,$s2,10
I – TYPE INSTRUCTION FORMAT
Eg:1. lw $s1,4($s2)
Eg:2. beq $s1,$s2,10
Eg:3. ori $t0,$t1,8
EXAMPLE
lw $s1,4($s2)
6 5 5 16
op rs rt address
100011 10010 10001 0000000000000100
beq $s0,$s3,10
6 5 5 16
op rs rt address
000100 10011 10000 0000000000001010
EXAMPLE
ori $t0,$t1,8
6 5 5 16
op rs rt address
001011 01001 01000 0000000000001000
J – TYPE INSTRUCTION FORMAT
Eg J 500
6 26
op address
6 26
op address
000010 500
EXAMPLE f = (g + h) – (i + j)
lw $t0,20($s4)
lw $t1,24($s4)
lw $t2,28($s4)
lw $t3,32($s4)
add $s1,$t0,$t1
add $s2,$t2,$t3
sub $s0,$s1,$s2
sw $s0, 16($s4)
35 20 8 20
35 20 9 24
35 20 10 28
35 20 11 32
0 8 9 17 0 32
0 10 11 18 0 32
0 17 18 16 0 34
43 20 16 16
COMPUTER ARCHITECTURE
0000 0000 0001 0000 0101 0001 0000 0000
0000 0000 0001 0000 0101 0001 0000 000000000000000100000101000100000000
000000 00000100000101000100000000
R - Type
000000 00000100000101000100 000000
sll
000000 00000 10000 01010 00100 000000
sll $t2,
op rs rt rd Shift amt fn
$s0, 4
MIPS Instruction Formats

More Related Content

What's hot

CDN overview
CDN overviewCDN overview
CDN overview
Yoohyun Kim
 
4 bit uni shift reg
4 bit uni shift reg4 bit uni shift reg
4 bit uni shift reg
E ER Yash nagaria
 
Cisco CCNA- How to Configure Multi-Layer Switch
Cisco CCNA- How to Configure Multi-Layer SwitchCisco CCNA- How to Configure Multi-Layer Switch
Cisco CCNA- How to Configure Multi-Layer Switch
Hamed Moghaddam
 
Modified booth's algorithm Part 2
Modified booth's algorithm Part 2Modified booth's algorithm Part 2
Modified booth's algorithm Part 2
babuece
 
Uart
UartUart
Uart
cs1090211
 
Huawei cisco command conversion
Huawei cisco command conversionHuawei cisco command conversion
Huawei cisco command conversion
james Omara
 
Synchronous Loadable Up and Down Counter
Synchronous Loadable Up and Down Counter Synchronous Loadable Up and Down Counter
Synchronous Loadable Up and Down Counter
Digital System Design
 
Hotspot on Mikrotik Router
Hotspot on Mikrotik RouterHotspot on Mikrotik Router
Hotspot on Mikrotik Router
KHNOG
 
Cisco vs. huawei CLI Commands
Cisco vs. huawei CLI CommandsCisco vs. huawei CLI Commands
Cisco vs. huawei CLI Commands
Bootcamp SCL
 
Microprocessor Based Systems.ppt
Microprocessor Based Systems.pptMicroprocessor Based Systems.ppt
Microprocessor Based Systems.ppt
TALHARIAZ46
 
LF_DPDK17_Flexible and Extensible support for new protocol processing with DP...
LF_DPDK17_Flexible and Extensible support for new protocol processing with DP...LF_DPDK17_Flexible and Extensible support for new protocol processing with DP...
LF_DPDK17_Flexible and Extensible support for new protocol processing with DP...
LF_DPDK
 
101 CCNA LABS.pdf
101 CCNA LABS.pdf101 CCNA LABS.pdf
101 CCNA LABS.pdf
AKSHAYKARMANKAR3
 
CCNA PPT
CCNA PPTCCNA PPT
CCNA PPT
AIRTEL
 
Hardware Multi-Threading
Hardware Multi-ThreadingHardware Multi-Threading
Hardware Multi-Threading
babuece
 
database application using SQL DML statements: all types of Join, Sub-Query ...
 database application using SQL DML statements: all types of Join, Sub-Query ... database application using SQL DML statements: all types of Join, Sub-Query ...
database application using SQL DML statements: all types of Join, Sub-Query ...
bhavesh lande
 
4 bit add sub
4 bit add sub4 bit add sub
4 bit add sub
dennis gookyi
 
Computer architecture instruction formats
Computer architecture instruction formatsComputer architecture instruction formats
Computer architecture instruction formats
Mazin Alwaaly
 
Hardware I/O organization
Hardware  I/O organization Hardware  I/O organization
Hardware I/O organization
faria_khan
 
8086 alp
8086 alp8086 alp
Stable OSPF: choosing network type.pdf
Stable OSPF: choosing network type.pdfStable OSPF: choosing network type.pdf
Stable OSPF: choosing network type.pdf
GLC Networks
 

What's hot (20)

CDN overview
CDN overviewCDN overview
CDN overview
 
4 bit uni shift reg
4 bit uni shift reg4 bit uni shift reg
4 bit uni shift reg
 
Cisco CCNA- How to Configure Multi-Layer Switch
Cisco CCNA- How to Configure Multi-Layer SwitchCisco CCNA- How to Configure Multi-Layer Switch
Cisco CCNA- How to Configure Multi-Layer Switch
 
Modified booth's algorithm Part 2
Modified booth's algorithm Part 2Modified booth's algorithm Part 2
Modified booth's algorithm Part 2
 
Uart
UartUart
Uart
 
Huawei cisco command conversion
Huawei cisco command conversionHuawei cisco command conversion
Huawei cisco command conversion
 
Synchronous Loadable Up and Down Counter
Synchronous Loadable Up and Down Counter Synchronous Loadable Up and Down Counter
Synchronous Loadable Up and Down Counter
 
Hotspot on Mikrotik Router
Hotspot on Mikrotik RouterHotspot on Mikrotik Router
Hotspot on Mikrotik Router
 
Cisco vs. huawei CLI Commands
Cisco vs. huawei CLI CommandsCisco vs. huawei CLI Commands
Cisco vs. huawei CLI Commands
 
Microprocessor Based Systems.ppt
Microprocessor Based Systems.pptMicroprocessor Based Systems.ppt
Microprocessor Based Systems.ppt
 
LF_DPDK17_Flexible and Extensible support for new protocol processing with DP...
LF_DPDK17_Flexible and Extensible support for new protocol processing with DP...LF_DPDK17_Flexible and Extensible support for new protocol processing with DP...
LF_DPDK17_Flexible and Extensible support for new protocol processing with DP...
 
101 CCNA LABS.pdf
101 CCNA LABS.pdf101 CCNA LABS.pdf
101 CCNA LABS.pdf
 
CCNA PPT
CCNA PPTCCNA PPT
CCNA PPT
 
Hardware Multi-Threading
Hardware Multi-ThreadingHardware Multi-Threading
Hardware Multi-Threading
 
database application using SQL DML statements: all types of Join, Sub-Query ...
 database application using SQL DML statements: all types of Join, Sub-Query ... database application using SQL DML statements: all types of Join, Sub-Query ...
database application using SQL DML statements: all types of Join, Sub-Query ...
 
4 bit add sub
4 bit add sub4 bit add sub
4 bit add sub
 
Computer architecture instruction formats
Computer architecture instruction formatsComputer architecture instruction formats
Computer architecture instruction formats
 
Hardware I/O organization
Hardware  I/O organization Hardware  I/O organization
Hardware I/O organization
 
8086 alp
8086 alp8086 alp
8086 alp
 
Stable OSPF: choosing network type.pdf
Stable OSPF: choosing network type.pdfStable OSPF: choosing network type.pdf
Stable OSPF: choosing network type.pdf
 

More from babuece

Introduction to Advance Computer Architecture
Introduction to Advance Computer ArchitectureIntroduction to Advance Computer Architecture
Introduction to Advance Computer Architecture
babuece
 
Clusters and Wharehouse Scale Computers
Clusters and Wharehouse Scale ComputersClusters and Wharehouse Scale Computers
Clusters and Wharehouse Scale Computers
babuece
 
Introduction to GPU
Introduction to GPUIntroduction to GPU
Introduction to GPU
babuece
 
Shared Memory Multi Processor
Shared Memory Multi ProcessorShared Memory Multi Processor
Shared Memory Multi Processor
babuece
 
Instruction Level Parallelism | Static Multiple Issue & Dynamic Multiple Issu...
Instruction Level Parallelism | Static Multiple Issue & Dynamic Multiple Issu...Instruction Level Parallelism | Static Multiple Issue & Dynamic Multiple Issu...
Instruction Level Parallelism | Static Multiple Issue & Dynamic Multiple Issu...
babuece
 
Exception | How Exceptions are Handled in MIPS architecture
Exception | How Exceptions are Handled in MIPS architectureException | How Exceptions are Handled in MIPS architecture
Exception | How Exceptions are Handled in MIPS architecture
babuece
 
Introduction to Embedded Laboratory EC 8711
Introduction to Embedded Laboratory EC 8711 Introduction to Embedded Laboratory EC 8711
Introduction to Embedded Laboratory EC 8711
babuece
 
Implementation of pipelining in datapath
Implementation of pipelining in datapathImplementation of pipelining in datapath
Implementation of pipelining in datapath
babuece
 
Datapath design with control unit
Datapath design with control unitDatapath design with control unit
Datapath design with control unit
babuece
 
Introduction to datapath design
Introduction to datapath designIntroduction to datapath design
Introduction to datapath design
babuece
 
Floating point Binary Represenataion
Floating point Binary RepresenataionFloating point Binary Represenataion
Floating point Binary Represenataion
babuece
 
Introduction to floating point Arithmetic
Introduction to floating point ArithmeticIntroduction to floating point Arithmetic
Introduction to floating point Arithmetic
babuece
 
Improved version of division
Improved version of divisionImproved version of division
Improved version of division
babuece
 
Booth's algorithm part 3
Booth's algorithm part 3Booth's algorithm part 3
Booth's algorithm part 3
babuece
 
Booth's algorithm part 1
Booth's algorithm part 1Booth's algorithm part 1
Booth's algorithm part 1
babuece
 
Modified booths algorithm part 1
Modified booths algorithm part 1Modified booths algorithm part 1
Modified booths algorithm part 1
babuece
 
Booth's algorithm part 2
Booth's algorithm part 2Booth's algorithm part 2
Booth's algorithm part 2
babuece
 
Booth's algorithm part 4
Booth's algorithm part 4Booth's algorithm part 4
Booth's algorithm part 4
babuece
 
Sequential Version / Version 1 Unsigned Multiplication Algorithm
Sequential Version / Version 1 Unsigned Multiplication AlgorithmSequential Version / Version 1 Unsigned Multiplication Algorithm
Sequential Version / Version 1 Unsigned Multiplication Algorithm
babuece
 
Binary addition and subtraction
Binary addition and subtractionBinary addition and subtraction
Binary addition and subtraction
babuece
 

More from babuece (20)

Introduction to Advance Computer Architecture
Introduction to Advance Computer ArchitectureIntroduction to Advance Computer Architecture
Introduction to Advance Computer Architecture
 
Clusters and Wharehouse Scale Computers
Clusters and Wharehouse Scale ComputersClusters and Wharehouse Scale Computers
Clusters and Wharehouse Scale Computers
 
Introduction to GPU
Introduction to GPUIntroduction to GPU
Introduction to GPU
 
Shared Memory Multi Processor
Shared Memory Multi ProcessorShared Memory Multi Processor
Shared Memory Multi Processor
 
Instruction Level Parallelism | Static Multiple Issue & Dynamic Multiple Issu...
Instruction Level Parallelism | Static Multiple Issue & Dynamic Multiple Issu...Instruction Level Parallelism | Static Multiple Issue & Dynamic Multiple Issu...
Instruction Level Parallelism | Static Multiple Issue & Dynamic Multiple Issu...
 
Exception | How Exceptions are Handled in MIPS architecture
Exception | How Exceptions are Handled in MIPS architectureException | How Exceptions are Handled in MIPS architecture
Exception | How Exceptions are Handled in MIPS architecture
 
Introduction to Embedded Laboratory EC 8711
Introduction to Embedded Laboratory EC 8711 Introduction to Embedded Laboratory EC 8711
Introduction to Embedded Laboratory EC 8711
 
Implementation of pipelining in datapath
Implementation of pipelining in datapathImplementation of pipelining in datapath
Implementation of pipelining in datapath
 
Datapath design with control unit
Datapath design with control unitDatapath design with control unit
Datapath design with control unit
 
Introduction to datapath design
Introduction to datapath designIntroduction to datapath design
Introduction to datapath design
 
Floating point Binary Represenataion
Floating point Binary RepresenataionFloating point Binary Represenataion
Floating point Binary Represenataion
 
Introduction to floating point Arithmetic
Introduction to floating point ArithmeticIntroduction to floating point Arithmetic
Introduction to floating point Arithmetic
 
Improved version of division
Improved version of divisionImproved version of division
Improved version of division
 
Booth's algorithm part 3
Booth's algorithm part 3Booth's algorithm part 3
Booth's algorithm part 3
 
Booth's algorithm part 1
Booth's algorithm part 1Booth's algorithm part 1
Booth's algorithm part 1
 
Modified booths algorithm part 1
Modified booths algorithm part 1Modified booths algorithm part 1
Modified booths algorithm part 1
 
Booth's algorithm part 2
Booth's algorithm part 2Booth's algorithm part 2
Booth's algorithm part 2
 
Booth's algorithm part 4
Booth's algorithm part 4Booth's algorithm part 4
Booth's algorithm part 4
 
Sequential Version / Version 1 Unsigned Multiplication Algorithm
Sequential Version / Version 1 Unsigned Multiplication AlgorithmSequential Version / Version 1 Unsigned Multiplication Algorithm
Sequential Version / Version 1 Unsigned Multiplication Algorithm
 
Binary addition and subtraction
Binary addition and subtractionBinary addition and subtraction
Binary addition and subtraction
 

MIPS Instruction Formats

  • 1.
  • 3. Von Neumann Vs Harvard Architecture
  • 4. MIPS INSTRUCTION FORMAT – Type – Type - Type
  • 5. R – TYPE INSTRUCTION FORMAT Eg:1. add $s1,$s2,$s3 Eg:2. sll $s1,$s2,10 000000
  • 6. EXAMPLE add $s1,$s2,$s3 6 5 5 5 5 6 op rs rt rd Shift amt fn 000000 10010 10011 10001 00000 100000 6 5 5 5 5 6 op rs rt rd Shift amt fn 000000 00000 10010 10001 01010 000000 sll $s1,$s2,10
  • 7. I – TYPE INSTRUCTION FORMAT Eg:1. lw $s1,4($s2) Eg:2. beq $s1,$s2,10 Eg:3. ori $t0,$t1,8
  • 8. EXAMPLE lw $s1,4($s2) 6 5 5 16 op rs rt address 100011 10010 10001 0000000000000100 beq $s0,$s3,10 6 5 5 16 op rs rt address 000100 10011 10000 0000000000001010
  • 9. EXAMPLE ori $t0,$t1,8 6 5 5 16 op rs rt address 001011 01001 01000 0000000000001000
  • 10. J – TYPE INSTRUCTION FORMAT Eg J 500 6 26 op address 6 26 op address 000010 500
  • 11. EXAMPLE f = (g + h) – (i + j) lw $t0,20($s4) lw $t1,24($s4) lw $t2,28($s4) lw $t3,32($s4) add $s1,$t0,$t1 add $s2,$t2,$t3 sub $s0,$s1,$s2 sw $s0, 16($s4) 35 20 8 20 35 20 9 24 35 20 10 28 35 20 11 32 0 8 9 17 0 32 0 10 11 18 0 32 0 17 18 16 0 34 43 20 16 16
  • 13. 0000 0000 0001 0000 0101 0001 0000 0000 0000 0000 0001 0000 0101 0001 0000 000000000000000100000101000100000000 000000 00000100000101000100000000 R - Type 000000 00000100000101000100 000000 sll 000000 00000 10000 01010 00100 000000 sll $t2, op rs rt rd Shift amt fn $s0, 4

Editor's Notes

  1. Notes to presenter: Description of what you learned in your own words on one side. Include information about the topic Details about the topic will also be helpful here. Tell the story of your learning experience. Just like a story there should always be a beginning, middle and an end. On the other side, you can add a graphic that provides evidence of what you learned. Feel free to use more than one slide to reflect upon your process. It also helps to add some video of your process.
  2. Notes to presenter: Description of what you learned in your own words on one side. Include information about the topic Details about the topic will also be helpful here. Tell the story of your learning experience. Just like a story there should always be a beginning, middle and an end. On the other side, you can add a graphic that provides evidence of what you learned. Feel free to use more than one slide to reflect upon your process. It also helps to add some video of your process.
  3. Notes to presenter: Description of what you learned in your own words on one side. Include information about the topic Details about the topic will also be helpful here. Tell the story of your learning experience. Just like a story there should always be a beginning, middle and an end. On the other side, you can add a graphic that provides evidence of what you learned. Feel free to use more than one slide to reflect upon your process. It also helps to add some video of your process.