SlideShare a Scribd company logo
ISA DESIGN PROJECT
COMPUTER
ARCHITECTURE
신현준
요구사항
1. 명령어의 갯수가 같아야 한다.
2. 레지스터 갯수 및 길이는 자유(최소한의 갯수와 길이)
3. 메인메모리 1kb
4. 수행하는 명령어 종류 총 9개( + , - , immediate +,-, ==, !=, jump, load, store)
5. 명령어 type, field, name 자유
레지스터 갯수와 길이
32개와 32bits ?
Instruction Set (R, I, C)
OP
4 bits
Function Code S1 S2 D
R-type
I-type
OP
4 bits
S1 D
Constant or address
Logical
J-type
OP Constant or address
4 bits
MIP를 기반으로 이름, 순서 변경
ADD와 SUB
OP Function Code S1 S2 D
Logical
R-type
0000 0 ADD
1 SUB
OP S1 D
Constant or address
I-type
0001
수행해야할 명령어가 적기 때문에, Function Code가 있을 필요가 없다.
Instruction Set (R, I, C)
OP
4 bits
S1 S2 D
R-type
I-type
OP
4 bits
S1 D
Constant or address
J-type
OP Constant or address
4 bits
OP: Operation Code
S1: First source register
S2: Second source register
D: Destination register
5 bits 5 bits 6 bits
5 bits 6 bits
5 bits
16 bits
ADD와 SUB, Immediate Add, Sub
OP S1 S2 D
R-type
I-type
OP S1 D
Constant or address
0000. add
0001. sub
0010. addi
0011. subi
True and False
I-type
OP S1 D
Constant or address
0100. true
0101. false
When something happened and then
(Unconditional Jump)
J-type
OP Constant or address
0110. Jump
Load와 Store
I-type
OP S1 D
Constant or address
0111. load
1000. store
Summary
0000. add
0001. sub
0010. addi
0011. subi
0100. true
0101. false
0110. Jump
0111. load
1000. store
ISA The number of Registers The length of Registers
20 bits
?
Why RISC-V architecture has 32 registers?
https://www.vlsisystemdesign.com/why-risc-v-architecture-has-32-registers/
All registeres in a RISC-V architecture is represented by 5 bit binary pattern
5 bits to represent registers, which means total number of register is 2^5 = 32
registers
Risc-v는 워드 단위로 일을 처리
“Simplicity favors regularity and good design demands good compromises”
나도 레지스터의 할당 단위를 5bit로 고정했으니, 나도 32개가 필요하구나.
The number of Registers
Name Number Use
$zero $0 Constant 0 for speed up the putting into var or let
$at $1 Assembler temporary for machine instructions that
pseudoinstructions are translated into.(e.g.,load)
$v0 - $v1 $2 - $3 values for function returns and expression evaluation
$a0 - $a3 $4 - $7 function arguments
$t0 - $t9 $8 - $15, $24 - $25 Temporary Registers
$s0 - $s7 $16 - $23 Saved Registers
$k0 - $k1 $26 - $27 Kernel Registers
gp $28 Global Data Pointer
sp $29 Stack Pointer
fp $30 Frame Pointer
ra $31 Return Address
Summary
0000. add
0001. sub
0010. addi
0011. subi
0100. true
0101. false
0110. Jump
0111. load
1000. store
ISA The number of Registers The length of Registers
20 bits
32ea
Thank you!

More Related Content

Similar to Computer_Architecture.pptx

C from hello world to 010101
C from hello world to 010101C from hello world to 010101
C from hello world to 010101Bellaj Badr
 
other-architectures.ppt
other-architectures.pptother-architectures.ppt
other-architectures.pptJaya Chavan
 
07 processor basics
07 processor basics07 processor basics
07 processor basicsMurali M
 
Riscv 20160507-patterson
Riscv 20160507-pattersonRiscv 20160507-patterson
Riscv 20160507-pattersonKrste Asanovic
 
Systemsoftwarenotes 100929171256-phpapp02 2
Systemsoftwarenotes 100929171256-phpapp02 2Systemsoftwarenotes 100929171256-phpapp02 2
Systemsoftwarenotes 100929171256-phpapp02 2Khaja Dileef
 
Getting Started with Raspberry Pi - DCC 2013.1
Getting Started with Raspberry Pi - DCC 2013.1Getting Started with Raspberry Pi - DCC 2013.1
Getting Started with Raspberry Pi - DCC 2013.1Tom Paulus
 
11-risc-cisc-and-isa-w.pptx
11-risc-cisc-and-isa-w.pptx11-risc-cisc-and-isa-w.pptx
11-risc-cisc-and-isa-w.pptxSuma Prakash
 
My seminar new 28
My seminar new 28My seminar new 28
My seminar new 28rajeshkvdn
 
Instruction Set Architecture: MIPS
Instruction Set Architecture: MIPSInstruction Set Architecture: MIPS
Instruction Set Architecture: MIPSPrasenjit Dey
 
Using Python3 to Build a Cloud Computing Service for my Superboard II
Using Python3 to Build a Cloud Computing Service for my Superboard IIUsing Python3 to Build a Cloud Computing Service for my Superboard II
Using Python3 to Build a Cloud Computing Service for my Superboard IIDavid Beazley (Dabeaz LLC)
 
Instruction Set Architecture
Instruction  Set ArchitectureInstruction  Set Architecture
Instruction Set ArchitectureHaris456
 
Introduction to computer architecture .pptx
Introduction to computer architecture .pptxIntroduction to computer architecture .pptx
Introduction to computer architecture .pptxFatma Sayed Ibrahim
 
Simplified instructional computer
Simplified instructional computerSimplified instructional computer
Simplified instructional computerKirby Fabro
 
Creating a Fibonacci Generator in Assembly - by Willem van Ketwich
Creating a Fibonacci Generator in Assembly - by Willem van KetwichCreating a Fibonacci Generator in Assembly - by Willem van Ketwich
Creating a Fibonacci Generator in Assembly - by Willem van KetwichWillem van Ketwich
 

Similar to Computer_Architecture.pptx (20)

CODch3Slides.ppt
CODch3Slides.pptCODch3Slides.ppt
CODch3Slides.ppt
 
C from hello world to 010101
C from hello world to 010101C from hello world to 010101
C from hello world to 010101
 
other-architectures.ppt
other-architectures.pptother-architectures.ppt
other-architectures.ppt
 
07 processor basics
07 processor basics07 processor basics
07 processor basics
 
8871077.ppt
8871077.ppt8871077.ppt
8871077.ppt
 
Riscv 20160507-patterson
Riscv 20160507-pattersonRiscv 20160507-patterson
Riscv 20160507-patterson
 
Systemsoftwarenotes 100929171256-phpapp02 2
Systemsoftwarenotes 100929171256-phpapp02 2Systemsoftwarenotes 100929171256-phpapp02 2
Systemsoftwarenotes 100929171256-phpapp02 2
 
Assembly.ppt
Assembly.pptAssembly.ppt
Assembly.ppt
 
Getting Started with Raspberry Pi - DCC 2013.1
Getting Started with Raspberry Pi - DCC 2013.1Getting Started with Raspberry Pi - DCC 2013.1
Getting Started with Raspberry Pi - DCC 2013.1
 
11-risc-cisc-and-isa-w.pptx
11-risc-cisc-and-isa-w.pptx11-risc-cisc-and-isa-w.pptx
11-risc-cisc-and-isa-w.pptx
 
My seminar new 28
My seminar new 28My seminar new 28
My seminar new 28
 
Instruction Set Architecture: MIPS
Instruction Set Architecture: MIPSInstruction Set Architecture: MIPS
Instruction Set Architecture: MIPS
 
80x86_2.pdf
80x86_2.pdf80x86_2.pdf
80x86_2.pdf
 
Using Python3 to Build a Cloud Computing Service for my Superboard II
Using Python3 to Build a Cloud Computing Service for my Superboard IIUsing Python3 to Build a Cloud Computing Service for my Superboard II
Using Python3 to Build a Cloud Computing Service for my Superboard II
 
Instruction Set Architecture
Instruction  Set ArchitectureInstruction  Set Architecture
Instruction Set Architecture
 
Introduction to computer architecture .pptx
Introduction to computer architecture .pptxIntroduction to computer architecture .pptx
Introduction to computer architecture .pptx
 
Kirby, Fabro
Kirby, FabroKirby, Fabro
Kirby, Fabro
 
Simplified instructional computer
Simplified instructional computerSimplified instructional computer
Simplified instructional computer
 
Mips
MipsMips
Mips
 
Creating a Fibonacci Generator in Assembly - by Willem van Ketwich
Creating a Fibonacci Generator in Assembly - by Willem van KetwichCreating a Fibonacci Generator in Assembly - by Willem van Ketwich
Creating a Fibonacci Generator in Assembly - by Willem van Ketwich
 

More from JUNSHIN8

Swfit_Array_GDG.pdf
Swfit_Array_GDG.pdfSwfit_Array_GDG.pdf
Swfit_Array_GDG.pdfJUNSHIN8
 
AlamofirebyJun.pdf
AlamofirebyJun.pdfAlamofirebyJun.pdf
AlamofirebyJun.pdfJUNSHIN8
 
Hapit_mid_HyunjunShin.pptx
 Hapit_mid_HyunjunShin.pptx Hapit_mid_HyunjunShin.pptx
Hapit_mid_HyunjunShin.pptxJUNSHIN8
 
[Apple_Korea] Green World
[Apple_Korea] Green World[Apple_Korea] Green World
[Apple_Korea] Green WorldJUNSHIN8
 
CoreData.pptx
CoreData.pptxCoreData.pptx
CoreData.pptxJUNSHIN8
 
Notification_Center.pptx
Notification_Center.pptxNotification_Center.pptx
Notification_Center.pptxJUNSHIN8
 
Fundamental Design Patterns.pptx
Fundamental Design Patterns.pptxFundamental Design Patterns.pptx
Fundamental Design Patterns.pptxJUNSHIN8
 
GithubWithTerminal.pptx
GithubWithTerminal.pptxGithubWithTerminal.pptx
GithubWithTerminal.pptxJUNSHIN8
 
Algorithm Introduction.pptx
Algorithm Introduction.pptxAlgorithm Introduction.pptx
Algorithm Introduction.pptxJUNSHIN8
 

More from JUNSHIN8 (9)

Swfit_Array_GDG.pdf
Swfit_Array_GDG.pdfSwfit_Array_GDG.pdf
Swfit_Array_GDG.pdf
 
AlamofirebyJun.pdf
AlamofirebyJun.pdfAlamofirebyJun.pdf
AlamofirebyJun.pdf
 
Hapit_mid_HyunjunShin.pptx
 Hapit_mid_HyunjunShin.pptx Hapit_mid_HyunjunShin.pptx
Hapit_mid_HyunjunShin.pptx
 
[Apple_Korea] Green World
[Apple_Korea] Green World[Apple_Korea] Green World
[Apple_Korea] Green World
 
CoreData.pptx
CoreData.pptxCoreData.pptx
CoreData.pptx
 
Notification_Center.pptx
Notification_Center.pptxNotification_Center.pptx
Notification_Center.pptx
 
Fundamental Design Patterns.pptx
Fundamental Design Patterns.pptxFundamental Design Patterns.pptx
Fundamental Design Patterns.pptx
 
GithubWithTerminal.pptx
GithubWithTerminal.pptxGithubWithTerminal.pptx
GithubWithTerminal.pptx
 
Algorithm Introduction.pptx
Algorithm Introduction.pptxAlgorithm Introduction.pptx
Algorithm Introduction.pptx
 

Recently uploaded

Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfAbrahamGadissa
 
Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdfKamal Acharya
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234AafreenAbuthahir2
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfPipe Restoration Solutions
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxR&R Consult
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industriesMuhammadTufail242431
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdfAhmedHussein950959
 
Furniture showroom management system project.pdf
Furniture showroom management system project.pdfFurniture showroom management system project.pdf
Furniture showroom management system project.pdfKamal Acharya
 
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and Clustering
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and ClusteringKIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and Clustering
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and ClusteringDr. Radhey Shyam
 
Peek implant persentation - Copy (1).pdf
Peek implant persentation - Copy (1).pdfPeek implant persentation - Copy (1).pdf
Peek implant persentation - Copy (1).pdfAyahmorsy
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdfKamal Acharya
 
IT-601 Lecture Notes-UNIT-2.pdf Data Analysis
IT-601 Lecture Notes-UNIT-2.pdf Data AnalysisIT-601 Lecture Notes-UNIT-2.pdf Data Analysis
IT-601 Lecture Notes-UNIT-2.pdf Data AnalysisDr. Radhey Shyam
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationRobbie Edward Sayers
 
Online resume builder management system project report.pdf
Online resume builder management system project report.pdfOnline resume builder management system project report.pdf
Online resume builder management system project report.pdfKamal Acharya
 
İTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering WorkshopİTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering WorkshopEmre Günaydın
 
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data StreamKIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data StreamDr. Radhey Shyam
 
Natalia Rutkowska - BIM School Course in Kraków
Natalia Rutkowska - BIM School Course in KrakówNatalia Rutkowska - BIM School Course in Kraków
Natalia Rutkowska - BIM School Course in Krakówbim.edu.pl
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdfKamal Acharya
 
Construction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptxConstruction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptxwendy cai
 
2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edgePaco Orozco
 

Recently uploaded (20)

Digital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdfDigital Signal Processing Lecture notes n.pdf
Digital Signal Processing Lecture notes n.pdf
 
Courier management system project report.pdf
Courier management system project report.pdfCourier management system project report.pdf
Courier management system project report.pdf
 
WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234WATER CRISIS and its solutions-pptx 1234
WATER CRISIS and its solutions-pptx 1234
 
The Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdfThe Benefits and Techniques of Trenchless Pipe Repair.pdf
The Benefits and Techniques of Trenchless Pipe Repair.pdf
 
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptxCFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
CFD Simulation of By-pass Flow in a HRSG module by R&R Consult.pptx
 
Halogenation process of chemical process industries
Halogenation process of chemical process industriesHalogenation process of chemical process industries
Halogenation process of chemical process industries
 
ASME IX(9) 2007 Full Version .pdf
ASME IX(9)  2007 Full Version       .pdfASME IX(9)  2007 Full Version       .pdf
ASME IX(9) 2007 Full Version .pdf
 
Furniture showroom management system project.pdf
Furniture showroom management system project.pdfFurniture showroom management system project.pdf
Furniture showroom management system project.pdf
 
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and Clustering
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and ClusteringKIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and Clustering
KIT-601 Lecture Notes-UNIT-4.pdf Frequent Itemsets and Clustering
 
Peek implant persentation - Copy (1).pdf
Peek implant persentation - Copy (1).pdfPeek implant persentation - Copy (1).pdf
Peek implant persentation - Copy (1).pdf
 
Automobile Management System Project Report.pdf
Automobile Management System Project Report.pdfAutomobile Management System Project Report.pdf
Automobile Management System Project Report.pdf
 
IT-601 Lecture Notes-UNIT-2.pdf Data Analysis
IT-601 Lecture Notes-UNIT-2.pdf Data AnalysisIT-601 Lecture Notes-UNIT-2.pdf Data Analysis
IT-601 Lecture Notes-UNIT-2.pdf Data Analysis
 
HYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generationHYDROPOWER - Hydroelectric power generation
HYDROPOWER - Hydroelectric power generation
 
Online resume builder management system project report.pdf
Online resume builder management system project report.pdfOnline resume builder management system project report.pdf
Online resume builder management system project report.pdf
 
İTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering WorkshopİTÜ CAD and Reverse Engineering Workshop
İTÜ CAD and Reverse Engineering Workshop
 
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data StreamKIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
KIT-601 Lecture Notes-UNIT-3.pdf Mining Data Stream
 
Natalia Rutkowska - BIM School Course in Kraków
Natalia Rutkowska - BIM School Course in KrakówNatalia Rutkowska - BIM School Course in Kraków
Natalia Rutkowska - BIM School Course in Kraków
 
Event Management System Vb Net Project Report.pdf
Event Management System Vb Net  Project Report.pdfEvent Management System Vb Net  Project Report.pdf
Event Management System Vb Net Project Report.pdf
 
Construction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptxConstruction method of steel structure space frame .pptx
Construction method of steel structure space frame .pptx
 
2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge2024 DevOps Pro Europe - Growing at the edge
2024 DevOps Pro Europe - Growing at the edge
 

Computer_Architecture.pptx

  • 2. 요구사항 1. 명령어의 갯수가 같아야 한다. 2. 레지스터 갯수 및 길이는 자유(최소한의 갯수와 길이) 3. 메인메모리 1kb 4. 수행하는 명령어 종류 총 9개( + , - , immediate +,-, ==, !=, jump, load, store) 5. 명령어 type, field, name 자유
  • 4. Instruction Set (R, I, C) OP 4 bits Function Code S1 S2 D R-type I-type OP 4 bits S1 D Constant or address Logical J-type OP Constant or address 4 bits MIP를 기반으로 이름, 순서 변경
  • 5. ADD와 SUB OP Function Code S1 S2 D Logical R-type 0000 0 ADD 1 SUB OP S1 D Constant or address I-type 0001 수행해야할 명령어가 적기 때문에, Function Code가 있을 필요가 없다.
  • 6. Instruction Set (R, I, C) OP 4 bits S1 S2 D R-type I-type OP 4 bits S1 D Constant or address J-type OP Constant or address 4 bits OP: Operation Code S1: First source register S2: Second source register D: Destination register 5 bits 5 bits 6 bits 5 bits 6 bits 5 bits 16 bits
  • 7. ADD와 SUB, Immediate Add, Sub OP S1 S2 D R-type I-type OP S1 D Constant or address 0000. add 0001. sub 0010. addi 0011. subi
  • 8. True and False I-type OP S1 D Constant or address 0100. true 0101. false
  • 9. When something happened and then (Unconditional Jump) J-type OP Constant or address 0110. Jump
  • 10. Load와 Store I-type OP S1 D Constant or address 0111. load 1000. store
  • 11. Summary 0000. add 0001. sub 0010. addi 0011. subi 0100. true 0101. false 0110. Jump 0111. load 1000. store ISA The number of Registers The length of Registers 20 bits ?
  • 12. Why RISC-V architecture has 32 registers? https://www.vlsisystemdesign.com/why-risc-v-architecture-has-32-registers/ All registeres in a RISC-V architecture is represented by 5 bit binary pattern 5 bits to represent registers, which means total number of register is 2^5 = 32 registers Risc-v는 워드 단위로 일을 처리 “Simplicity favors regularity and good design demands good compromises” 나도 레지스터의 할당 단위를 5bit로 고정했으니, 나도 32개가 필요하구나.
  • 13. The number of Registers Name Number Use $zero $0 Constant 0 for speed up the putting into var or let $at $1 Assembler temporary for machine instructions that pseudoinstructions are translated into.(e.g.,load) $v0 - $v1 $2 - $3 values for function returns and expression evaluation $a0 - $a3 $4 - $7 function arguments $t0 - $t9 $8 - $15, $24 - $25 Temporary Registers $s0 - $s7 $16 - $23 Saved Registers $k0 - $k1 $26 - $27 Kernel Registers gp $28 Global Data Pointer sp $29 Stack Pointer fp $30 Frame Pointer ra $31 Return Address
  • 14. Summary 0000. add 0001. sub 0010. addi 0011. subi 0100. true 0101. false 0110. Jump 0111. load 1000. store ISA The number of Registers The length of Registers 20 bits 32ea

Editor's Notes

  1. 어디 부터 읽는가?