SlideShare a Scribd company logo
CONTROL UNIT
UNIT-2
Mohammad Asif Iqbal
Assistant Professor,
Deptt of ECE,
JETGI, Barabanki
“Instruction set architecture is the
structure of a computer that a
machine language programmer
(or a compiler) must understand
to write a correct (timing
independent) program for that
machine” –IBM introducing 360
(1964)
Instructions Definition
An instruction is an order given to a computer
processor by a computer program.
At lowest level, each instruction is a sequence of
0s and 1s that describes a physical operations the
computer has to perform, such as (add);
And depending on the particular instruction type,
the specification of special storage areas called
register.
Elements of a machine
instructionsEach instruction must contain the information required by the processor
for execution.
Operation
fetch
Instruction
operation
decoding
Operand
address
calculation
Operand
fetch
Data
operation
Operand
address
calculation
Operand
store
Instruction
address
calculation
Instruction complete,
fetch next instruction
Multiple
operands
Multiple
results
Continue…
1. Operation code: specifies the operation to be performed(e.g.
add, I/O). The operation is specify by a binary code known as
operation code, or opcode.
2. Source operand reference: The operation may involve one or
more source operands, that is, operands that are input for the
operation
3. Result operand reference: The operation may produce a result.
4. Next instruction reference: This tells the processor where to
fetch the next instruction after the execution of this instruction is
complete.
Types of instructions
Consider a high-level language instruction that could be expressed in a language such
as BASIC or FORTRAN, For example,
X = X + Y
This statement instruct
the computer to add the
value stored in Y to the
value stored in X and put
the result in X. how
might this be
accomplished with
machine instructions?
Lets assume that the variable X & Y corresponds to locations 513 and
514. if we assume a simple set of machine instructions, this operation
could be accomplished with three instructions
1. Load a register with the contents of memory location 513.
2.Add the contents of memory location 514 to the register.
3.Store the contents of the register in memory location 513.
High level
language
Machine
language
Thus the set of Machine instructions must be sufficient
to express any of the instructions from a high level
language
Thus keeping in mind the previous discussion we can
categorize instruction type as follows:
1. Data processing: Arithmetic & logic instructions
2. Data storage: Memory instructions
3. Data movement: I/O instructions
4. Control: Test and branch instructions
Instruction cycles and subcycles (fetch and execute etc)
1
2
3
4
5
6
ALU
+1
Instruction
decoder
Program
counter Memory
Address
Register
Memory Buffer
Register
Current
Instruction
Register
Op-code Operand
Accumulator
Data Bus
Address
Bus
Main Memory
0000 0000 0000 0011
0101 0000 0000 0110
FETCH
MAR ← [PC]
0000 0000 0000 0011
PC ← [PC] + 1
0000 0000 0000 0100
MBR ← memory
content
0101 0000 0000 0110
0101 0000 0000 0110
CIR ← [MBR]
Decode Unit
Opcode operand Instruction
……….. ………..
0101 Address load
………... …………
0000 0000 0110
0100 0000 0110 0101
0100 0000 0110 0101
Register Transfers
Suppose we have to transfer the contents of a register R1
to the register R4.
This can be accomplished as follows
•Enable the output of register R1 by setting R1out to 1.
this places the contents of R1 on the processor bus.
•Enable the input of register R4 by setting R4in to 1. this
loads data from the processor bus into register R4.
R1out
R4in
Register Transfers….
Ri(in) = 0
Ri(in) = 1 Ri(out) = 0
= Off
Ri(out) = 1
= On
Performing an arithmetic or logic operation
Suppose we have to add the contents of
register R1 to those of R2 and store the
result in register R3. Suggest the steps
required.
1. R1out, Yin
2. R2out, Select Y, Add, Zin
3. Zout, R3in
Fetching a word from memory
Continued….
4. Load MDR from the memory bus
3. Wait for the MFC response from the memory
As an example of a read operation, consider the instruction Move
(R1), R2. Following are the steps required to execute this
instruction are:
1. MAR → [R1]
2. Start a Read operation on the memory bus
5. [R2]→MDR
•The response time of each memory access varies (cache miss,
memory-mapped I/O,…).
•To accommodate this, the processor waits until it receives an
indication that the requested operation has been completed
(Memory-Function-Completed, MFC).
Timing
Assume MAR
is always available
on the address lines
of the memory bus.
1Step
Clock
MARin
MAR ← [R1]
Read
2
Will cause the bus interface circuit to send
a read command, MR on the bus
Address
MR
MDRinE
Data
MFC
3
MDRout
3. MDRout, R2in
1. R1out,MARin,
Read
2. MDRinE, WMFC
N.B.- here we
have reduced
the steps, now
these are three
only.
Storing a Word in Memory
DO IT BY YOUR
OWN
Execution of a complete Instruction
REFER TO
SLIDE NO 7.
THANK YOU!

More Related Content

What's hot

Computer Organisation and Architecture
Computer Organisation and ArchitectureComputer Organisation and Architecture
Computer Organisation and Architecture
Subhasis Dash
 
MCA-I-COA- overview of register transfer, micro operations and basic computer...
MCA-I-COA- overview of register transfer, micro operations and basic computer...MCA-I-COA- overview of register transfer, micro operations and basic computer...
MCA-I-COA- overview of register transfer, micro operations and basic computer...
Rai University
 
Chapter 8
Chapter 8Chapter 8
Part I:Introduction to assembly language
Part I:Introduction to assembly languagePart I:Introduction to assembly language
Part I:Introduction to assembly language
Ahmed M. Abed
 
Register transfer and micro-operation
Register transfer and micro-operationRegister transfer and micro-operation
Register transfer and micro-operation
Nikhil Pandit
 
Computer organization and architecture
Computer organization and architectureComputer organization and architecture
Computer organization and architecture
Subesh Kumar Yadav
 
Bca 2nd sem-u-2.1-overview of register transfer, micro operations and basic c...
Bca 2nd sem-u-2.1-overview of register transfer, micro operations and basic c...Bca 2nd sem-u-2.1-overview of register transfer, micro operations and basic c...
Bca 2nd sem-u-2.1-overview of register transfer, micro operations and basic c...
Rai University
 
Chapter 4 the processor
Chapter 4 the processorChapter 4 the processor
Chapter 4 the processor
s9007912
 
Instruction cycle
Instruction cycleInstruction cycle
Instruction cycle
shweta-sharma99
 
Instruction codes
Instruction codesInstruction codes
Instruction codes
pradeepa velmurugan
 
Computer organization basics
Computer organization  basicsComputer organization  basics
Computer organization basics
Deepak John
 
Instruction Set Architecture
Instruction  Set ArchitectureInstruction  Set Architecture
Instruction Set Architecture
Haris456
 
Lec 12-15 mips instruction set processor
Lec 12-15 mips instruction set processorLec 12-15 mips instruction set processor
Lec 12-15 mips instruction set processor
Mayank Roy
 
Types of instructions
Types of instructionsTypes of instructions
Types of instructions
ihsanjamil
 
Data manipulation instructions
Data manipulation instructionsData manipulation instructions
Data manipulation instructions
Mahesh Kumar Attri
 
Computer Architecture - Program Execution
Computer Architecture - Program ExecutionComputer Architecture - Program Execution
Computer Architecture - Program Execution
Varun Bhargava
 
05 instruction set design and architecture
05 instruction set design and architecture05 instruction set design and architecture
05 instruction set design and architecture
Waqar Jamil
 
Machine cycles
Machine cyclesMachine cycles
Machine cycles
WafaAbied
 
Processor Basics
Processor BasicsProcessor Basics
Processor Basics
Education Front
 
Introduction to Assembly Language Programming
Introduction to Assembly Language ProgrammingIntroduction to Assembly Language Programming
Introduction to Assembly Language Programming
Rahul P
 

What's hot (20)

Computer Organisation and Architecture
Computer Organisation and ArchitectureComputer Organisation and Architecture
Computer Organisation and Architecture
 
MCA-I-COA- overview of register transfer, micro operations and basic computer...
MCA-I-COA- overview of register transfer, micro operations and basic computer...MCA-I-COA- overview of register transfer, micro operations and basic computer...
MCA-I-COA- overview of register transfer, micro operations and basic computer...
 
Chapter 8
Chapter 8Chapter 8
Chapter 8
 
Part I:Introduction to assembly language
Part I:Introduction to assembly languagePart I:Introduction to assembly language
Part I:Introduction to assembly language
 
Register transfer and micro-operation
Register transfer and micro-operationRegister transfer and micro-operation
Register transfer and micro-operation
 
Computer organization and architecture
Computer organization and architectureComputer organization and architecture
Computer organization and architecture
 
Bca 2nd sem-u-2.1-overview of register transfer, micro operations and basic c...
Bca 2nd sem-u-2.1-overview of register transfer, micro operations and basic c...Bca 2nd sem-u-2.1-overview of register transfer, micro operations and basic c...
Bca 2nd sem-u-2.1-overview of register transfer, micro operations and basic c...
 
Chapter 4 the processor
Chapter 4 the processorChapter 4 the processor
Chapter 4 the processor
 
Instruction cycle
Instruction cycleInstruction cycle
Instruction cycle
 
Instruction codes
Instruction codesInstruction codes
Instruction codes
 
Computer organization basics
Computer organization  basicsComputer organization  basics
Computer organization basics
 
Instruction Set Architecture
Instruction  Set ArchitectureInstruction  Set Architecture
Instruction Set Architecture
 
Lec 12-15 mips instruction set processor
Lec 12-15 mips instruction set processorLec 12-15 mips instruction set processor
Lec 12-15 mips instruction set processor
 
Types of instructions
Types of instructionsTypes of instructions
Types of instructions
 
Data manipulation instructions
Data manipulation instructionsData manipulation instructions
Data manipulation instructions
 
Computer Architecture - Program Execution
Computer Architecture - Program ExecutionComputer Architecture - Program Execution
Computer Architecture - Program Execution
 
05 instruction set design and architecture
05 instruction set design and architecture05 instruction set design and architecture
05 instruction set design and architecture
 
Machine cycles
Machine cyclesMachine cycles
Machine cycles
 
Processor Basics
Processor BasicsProcessor Basics
Processor Basics
 
Introduction to Assembly Language Programming
Introduction to Assembly Language ProgrammingIntroduction to Assembly Language Programming
Introduction to Assembly Language Programming
 

Similar to instruction

Precessor organization
Precessor organizationPrecessor organization
Precessor organization
Asif Iqbal
 
Computer architecture instruction formats
Computer architecture instruction formatsComputer architecture instruction formats
Computer architecture instruction formats
Mazin Alwaaly
 
basic-processing-unit computer organ.ppt
basic-processing-unit computer organ.pptbasic-processing-unit computer organ.ppt
basic-processing-unit computer organ.ppt
ssuser702532
 
Computer Organization for third semester Vtu SyllabusModule 4.ppt
Computer Organization  for third semester Vtu SyllabusModule 4.pptComputer Organization  for third semester Vtu SyllabusModule 4.ppt
Computer Organization for third semester Vtu SyllabusModule 4.ppt
ShilpaKc3
 
Basic processing unit by aniket bhute
Basic processing unit by aniket bhuteBasic processing unit by aniket bhute
Basic processing unit by aniket bhute
Aniket Bhute
 
the-cpu-design-central-processing-unit-design-1
the-cpu-design-central-processing-unit-design-1the-cpu-design-central-processing-unit-design-1
the-cpu-design-central-processing-unit-design-1
Basel Mansour
 
Central processing unit i
Central processing unit iCentral processing unit i
Central processing unit i
JyotiprakashMishra18
 
CO Unit 3.pdf (Important chapter of coa)
CO Unit 3.pdf (Important chapter of coa)CO Unit 3.pdf (Important chapter of coa)
CO Unit 3.pdf (Important chapter of coa)
guptakrishns23
 
4bit PC report
4bit PC report4bit PC report
4bit PC report
tanvin
 
4bit pc report[cse 08-section-b2_group-02]
4bit pc report[cse 08-section-b2_group-02]4bit pc report[cse 08-section-b2_group-02]
4bit pc report[cse 08-section-b2_group-02]
shibbirtanvin
 
Please send the answers to my email. Mirre06@hotmail.comSomeone se.pdf
Please send the answers to my email. Mirre06@hotmail.comSomeone se.pdfPlease send the answers to my email. Mirre06@hotmail.comSomeone se.pdf
Please send the answers to my email. Mirre06@hotmail.comSomeone se.pdf
ebrahimbadushata00
 
ICT-Lecture_12(VonNeumannArchitecture).pptx
ICT-Lecture_12(VonNeumannArchitecture).pptxICT-Lecture_12(VonNeumannArchitecture).pptx
ICT-Lecture_12(VonNeumannArchitecture).pptx
SirRafiLectures
 
CPU.ppd
CPU.ppdCPU.ppd
Computer organisation and architecture updated unit 2 COA ppt.pptx
Computer organisation and architecture updated unit 2 COA ppt.pptxComputer organisation and architecture updated unit 2 COA ppt.pptx
Computer organisation and architecture updated unit 2 COA ppt.pptx
MalligaarjunanN
 
Bc0040
Bc0040Bc0040
Bc0040
hayerpa
 
Chapter1a
Chapter1aChapter1a
Chapter 7
Chapter 7Chapter 7
ITEC582-Chapter 12.pptx
ITEC582-Chapter 12.pptxITEC582-Chapter 12.pptx
ITEC582-Chapter 12.pptx
SabaNaeem26
 
INSTRUCTION TYPES
INSTRUCTION TYPESINSTRUCTION TYPES
INSTRUCTION TYPES
devi195058
 
basic structure of computers
basic structure of computersbasic structure of computers
basic structure of computers
Himanshu Chawla
 

Similar to instruction (20)

Precessor organization
Precessor organizationPrecessor organization
Precessor organization
 
Computer architecture instruction formats
Computer architecture instruction formatsComputer architecture instruction formats
Computer architecture instruction formats
 
basic-processing-unit computer organ.ppt
basic-processing-unit computer organ.pptbasic-processing-unit computer organ.ppt
basic-processing-unit computer organ.ppt
 
Computer Organization for third semester Vtu SyllabusModule 4.ppt
Computer Organization  for third semester Vtu SyllabusModule 4.pptComputer Organization  for third semester Vtu SyllabusModule 4.ppt
Computer Organization for third semester Vtu SyllabusModule 4.ppt
 
Basic processing unit by aniket bhute
Basic processing unit by aniket bhuteBasic processing unit by aniket bhute
Basic processing unit by aniket bhute
 
the-cpu-design-central-processing-unit-design-1
the-cpu-design-central-processing-unit-design-1the-cpu-design-central-processing-unit-design-1
the-cpu-design-central-processing-unit-design-1
 
Central processing unit i
Central processing unit iCentral processing unit i
Central processing unit i
 
CO Unit 3.pdf (Important chapter of coa)
CO Unit 3.pdf (Important chapter of coa)CO Unit 3.pdf (Important chapter of coa)
CO Unit 3.pdf (Important chapter of coa)
 
4bit PC report
4bit PC report4bit PC report
4bit PC report
 
4bit pc report[cse 08-section-b2_group-02]
4bit pc report[cse 08-section-b2_group-02]4bit pc report[cse 08-section-b2_group-02]
4bit pc report[cse 08-section-b2_group-02]
 
Please send the answers to my email. Mirre06@hotmail.comSomeone se.pdf
Please send the answers to my email. Mirre06@hotmail.comSomeone se.pdfPlease send the answers to my email. Mirre06@hotmail.comSomeone se.pdf
Please send the answers to my email. Mirre06@hotmail.comSomeone se.pdf
 
ICT-Lecture_12(VonNeumannArchitecture).pptx
ICT-Lecture_12(VonNeumannArchitecture).pptxICT-Lecture_12(VonNeumannArchitecture).pptx
ICT-Lecture_12(VonNeumannArchitecture).pptx
 
CPU.ppd
CPU.ppdCPU.ppd
CPU.ppd
 
Computer organisation and architecture updated unit 2 COA ppt.pptx
Computer organisation and architecture updated unit 2 COA ppt.pptxComputer organisation and architecture updated unit 2 COA ppt.pptx
Computer organisation and architecture updated unit 2 COA ppt.pptx
 
Bc0040
Bc0040Bc0040
Bc0040
 
Chapter1a
Chapter1aChapter1a
Chapter1a
 
Chapter 7
Chapter 7Chapter 7
Chapter 7
 
ITEC582-Chapter 12.pptx
ITEC582-Chapter 12.pptxITEC582-Chapter 12.pptx
ITEC582-Chapter 12.pptx
 
INSTRUCTION TYPES
INSTRUCTION TYPESINSTRUCTION TYPES
INSTRUCTION TYPES
 
basic structure of computers
basic structure of computersbasic structure of computers
basic structure of computers
 

More from Asif Iqbal

5415Microprocessor-Lecture-11.pdf
5415Microprocessor-Lecture-11.pdf5415Microprocessor-Lecture-11.pdf
5415Microprocessor-Lecture-11.pdf
Asif Iqbal
 
11815939.ppt
11815939.ppt11815939.ppt
11815939.ppt
Asif Iqbal
 
Chandrayaan 3.pptx
Chandrayaan 3.pptxChandrayaan 3.pptx
Chandrayaan 3.pptx
Asif Iqbal
 
Memory unit 6
Memory unit 6Memory unit 6
Memory unit 6
Asif Iqbal
 
OPTICAL COMMUNICATION Unit 5
OPTICAL COMMUNICATION Unit 5OPTICAL COMMUNICATION Unit 5
OPTICAL COMMUNICATION Unit 5
Asif Iqbal
 
OPTICAL COMMUNICATION Unit 4
OPTICAL COMMUNICATION Unit 4OPTICAL COMMUNICATION Unit 4
OPTICAL COMMUNICATION Unit 4
Asif Iqbal
 
optical communication Unit 3
optical communication Unit 3optical communication Unit 3
optical communication Unit 3
Asif Iqbal
 
OPTICAL COMMUNICATION Unit 2
OPTICAL COMMUNICATION Unit 2OPTICAL COMMUNICATION Unit 2
OPTICAL COMMUNICATION Unit 2
Asif Iqbal
 
OPTICAL FIBER COMMUNICATION UNIT-1
OPTICAL FIBER COMMUNICATION UNIT-1OPTICAL FIBER COMMUNICATION UNIT-1
OPTICAL FIBER COMMUNICATION UNIT-1
Asif Iqbal
 
Synchronous Sequential Logic Unit 4
Synchronous Sequential Logic Unit 4Synchronous Sequential Logic Unit 4
Synchronous Sequential Logic Unit 4
Asif Iqbal
 
Combinational Logic Unit 2
Combinational Logic Unit 2Combinational Logic Unit 2
Combinational Logic Unit 2
Asif Iqbal
 
Unit-1 Digital Design and Binary Numbers:
Unit-1 Digital Design and Binary Numbers:Unit-1 Digital Design and Binary Numbers:
Unit-1 Digital Design and Binary Numbers:
Asif Iqbal
 
voltage regulater
 voltage regulater voltage regulater
voltage regulater
Asif Iqbal
 
special diode
special diodespecial diode
special diode
Asif Iqbal
 
oscillator unit 3
oscillator unit 3 oscillator unit 3
oscillator unit 3
Asif Iqbal
 
Nunit 2 feedback
Nunit 2 feedbackNunit 2 feedback
Nunit 2 feedback
Asif Iqbal
 
digital to analog (DAC) & analog to digital converter (ADC)
digital to analog (DAC) & analog to digital converter (ADC) digital to analog (DAC) & analog to digital converter (ADC)
digital to analog (DAC) & analog to digital converter (ADC)
Asif Iqbal
 
opamp application, Bistable, astable and monostable multivibrator, IC-555 timer
opamp application, Bistable, astable and monostable multivibrator, IC-555 timeropamp application, Bistable, astable and monostable multivibrator, IC-555 timer
opamp application, Bistable, astable and monostable multivibrator, IC-555 timer
Asif Iqbal
 
Unit 5
Unit 5Unit 5
Unit 5
Asif Iqbal
 
Unit 4
Unit 4Unit 4
Unit 4
Asif Iqbal
 

More from Asif Iqbal (20)

5415Microprocessor-Lecture-11.pdf
5415Microprocessor-Lecture-11.pdf5415Microprocessor-Lecture-11.pdf
5415Microprocessor-Lecture-11.pdf
 
11815939.ppt
11815939.ppt11815939.ppt
11815939.ppt
 
Chandrayaan 3.pptx
Chandrayaan 3.pptxChandrayaan 3.pptx
Chandrayaan 3.pptx
 
Memory unit 6
Memory unit 6Memory unit 6
Memory unit 6
 
OPTICAL COMMUNICATION Unit 5
OPTICAL COMMUNICATION Unit 5OPTICAL COMMUNICATION Unit 5
OPTICAL COMMUNICATION Unit 5
 
OPTICAL COMMUNICATION Unit 4
OPTICAL COMMUNICATION Unit 4OPTICAL COMMUNICATION Unit 4
OPTICAL COMMUNICATION Unit 4
 
optical communication Unit 3
optical communication Unit 3optical communication Unit 3
optical communication Unit 3
 
OPTICAL COMMUNICATION Unit 2
OPTICAL COMMUNICATION Unit 2OPTICAL COMMUNICATION Unit 2
OPTICAL COMMUNICATION Unit 2
 
OPTICAL FIBER COMMUNICATION UNIT-1
OPTICAL FIBER COMMUNICATION UNIT-1OPTICAL FIBER COMMUNICATION UNIT-1
OPTICAL FIBER COMMUNICATION UNIT-1
 
Synchronous Sequential Logic Unit 4
Synchronous Sequential Logic Unit 4Synchronous Sequential Logic Unit 4
Synchronous Sequential Logic Unit 4
 
Combinational Logic Unit 2
Combinational Logic Unit 2Combinational Logic Unit 2
Combinational Logic Unit 2
 
Unit-1 Digital Design and Binary Numbers:
Unit-1 Digital Design and Binary Numbers:Unit-1 Digital Design and Binary Numbers:
Unit-1 Digital Design and Binary Numbers:
 
voltage regulater
 voltage regulater voltage regulater
voltage regulater
 
special diode
special diodespecial diode
special diode
 
oscillator unit 3
oscillator unit 3 oscillator unit 3
oscillator unit 3
 
Nunit 2 feedback
Nunit 2 feedbackNunit 2 feedback
Nunit 2 feedback
 
digital to analog (DAC) & analog to digital converter (ADC)
digital to analog (DAC) & analog to digital converter (ADC) digital to analog (DAC) & analog to digital converter (ADC)
digital to analog (DAC) & analog to digital converter (ADC)
 
opamp application, Bistable, astable and monostable multivibrator, IC-555 timer
opamp application, Bistable, astable and monostable multivibrator, IC-555 timeropamp application, Bistable, astable and monostable multivibrator, IC-555 timer
opamp application, Bistable, astable and monostable multivibrator, IC-555 timer
 
Unit 5
Unit 5Unit 5
Unit 5
 
Unit 4
Unit 4Unit 4
Unit 4
 

Recently uploaded

BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
MIGUELANGEL966976
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
VICTOR MAESTRE RAMIREZ
 
Textile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdfTextile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdf
NazakatAliKhoso2
 
Heat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation pptHeat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation ppt
mamunhossenbd75
 
The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.
sachin chaurasia
 
CSM Cloud Service Management Presentarion
CSM Cloud Service Management PresentarionCSM Cloud Service Management Presentarion
CSM Cloud Service Management Presentarion
rpskprasana
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
jpsjournal1
 
New techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdfNew techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdf
wisnuprabawa3
 
Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
bijceesjournal
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
IJECEIAES
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
insn4465
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
ihlasbinance2003
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
SUTEJAS
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
JamalHussainArman
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
Victor Morales
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
RadiNasr
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
gerogepatton
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
IJECEIAES
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
Rahul
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
IJECEIAES
 

Recently uploaded (20)

BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdfBPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
BPV-GUI-01-Guide-for-ASME-Review-Teams-(General)-10-10-2023.pdf
 
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student MemberIEEE Aerospace and Electronic Systems Society as a Graduate Student Member
IEEE Aerospace and Electronic Systems Society as a Graduate Student Member
 
Textile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdfTextile Chemical Processing and Dyeing.pdf
Textile Chemical Processing and Dyeing.pdf
 
Heat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation pptHeat Resistant Concrete Presentation ppt
Heat Resistant Concrete Presentation ppt
 
The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.The Python for beginners. This is an advance computer language.
The Python for beginners. This is an advance computer language.
 
CSM Cloud Service Management Presentarion
CSM Cloud Service Management PresentarionCSM Cloud Service Management Presentarion
CSM Cloud Service Management Presentarion
 
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECTCHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
CHINA’S GEO-ECONOMIC OUTREACH IN CENTRAL ASIAN COUNTRIES AND FUTURE PROSPECT
 
New techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdfNew techniques for characterising damage in rock slopes.pdf
New techniques for characterising damage in rock slopes.pdf
 
Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...Comparative analysis between traditional aquaponics and reconstructed aquapon...
Comparative analysis between traditional aquaponics and reconstructed aquapon...
 
Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...Advanced control scheme of doubly fed induction generator for wind turbine us...
Advanced control scheme of doubly fed induction generator for wind turbine us...
 
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
哪里办理(csu毕业证书)查尔斯特大学毕业证硕士学历原版一模一样
 
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
5214-1693458878915-Unit 6 2023 to 2024 academic year assignment (AutoRecovere...
 
Understanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine LearningUnderstanding Inductive Bias in Machine Learning
Understanding Inductive Bias in Machine Learning
 
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptxML Based Model for NIDS MSc Updated Presentation.v2.pptx
ML Based Model for NIDS MSc Updated Presentation.v2.pptx
 
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressionsKuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
KuberTENes Birthday Bash Guadalajara - K8sGPT first impressions
 
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdfIron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
Iron and Steel Technology Roadmap - Towards more sustainable steelmaking.pdf
 
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODELDEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
DEEP LEARNING FOR SMART GRID INTRUSION DETECTION: A HYBRID CNN-LSTM-BASED MODEL
 
Embedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoringEmbedded machine learning-based road conditions and driving behavior monitoring
Embedded machine learning-based road conditions and driving behavior monitoring
 
ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024ACEP Magazine edition 4th launched on 05.06.2024
ACEP Magazine edition 4th launched on 05.06.2024
 
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
Redefining brain tumor segmentation: a cutting-edge convolutional neural netw...
 

instruction

  • 1. CONTROL UNIT UNIT-2 Mohammad Asif Iqbal Assistant Professor, Deptt of ECE, JETGI, Barabanki
  • 2. “Instruction set architecture is the structure of a computer that a machine language programmer (or a compiler) must understand to write a correct (timing independent) program for that machine” –IBM introducing 360 (1964) Instructions Definition An instruction is an order given to a computer processor by a computer program. At lowest level, each instruction is a sequence of 0s and 1s that describes a physical operations the computer has to perform, such as (add); And depending on the particular instruction type, the specification of special storage areas called register.
  • 3. Elements of a machine instructionsEach instruction must contain the information required by the processor for execution. Operation fetch Instruction operation decoding Operand address calculation Operand fetch Data operation Operand address calculation Operand store Instruction address calculation Instruction complete, fetch next instruction Multiple operands Multiple results
  • 4. Continue… 1. Operation code: specifies the operation to be performed(e.g. add, I/O). The operation is specify by a binary code known as operation code, or opcode. 2. Source operand reference: The operation may involve one or more source operands, that is, operands that are input for the operation 3. Result operand reference: The operation may produce a result. 4. Next instruction reference: This tells the processor where to fetch the next instruction after the execution of this instruction is complete.
  • 5. Types of instructions Consider a high-level language instruction that could be expressed in a language such as BASIC or FORTRAN, For example, X = X + Y This statement instruct the computer to add the value stored in Y to the value stored in X and put the result in X. how might this be accomplished with machine instructions? Lets assume that the variable X & Y corresponds to locations 513 and 514. if we assume a simple set of machine instructions, this operation could be accomplished with three instructions 1. Load a register with the contents of memory location 513. 2.Add the contents of memory location 514 to the register. 3.Store the contents of the register in memory location 513. High level language Machine language Thus the set of Machine instructions must be sufficient to express any of the instructions from a high level language
  • 6. Thus keeping in mind the previous discussion we can categorize instruction type as follows: 1. Data processing: Arithmetic & logic instructions 2. Data storage: Memory instructions 3. Data movement: I/O instructions 4. Control: Test and branch instructions
  • 7. Instruction cycles and subcycles (fetch and execute etc) 1 2 3 4 5 6 ALU +1 Instruction decoder Program counter Memory Address Register Memory Buffer Register Current Instruction Register Op-code Operand Accumulator Data Bus Address Bus Main Memory 0000 0000 0000 0011 0101 0000 0000 0110 FETCH MAR ← [PC] 0000 0000 0000 0011 PC ← [PC] + 1 0000 0000 0000 0100 MBR ← memory content 0101 0000 0000 0110 0101 0000 0000 0110 CIR ← [MBR] Decode Unit Opcode operand Instruction ……….. ……….. 0101 Address load ………... ………… 0000 0000 0110 0100 0000 0110 0101 0100 0000 0110 0101
  • 8. Register Transfers Suppose we have to transfer the contents of a register R1 to the register R4. This can be accomplished as follows •Enable the output of register R1 by setting R1out to 1. this places the contents of R1 on the processor bus. •Enable the input of register R4 by setting R4in to 1. this loads data from the processor bus into register R4. R1out R4in
  • 9. Register Transfers…. Ri(in) = 0 Ri(in) = 1 Ri(out) = 0 = Off Ri(out) = 1 = On
  • 10. Performing an arithmetic or logic operation Suppose we have to add the contents of register R1 to those of R2 and store the result in register R3. Suggest the steps required. 1. R1out, Yin 2. R2out, Select Y, Add, Zin 3. Zout, R3in
  • 11. Fetching a word from memory
  • 12. Continued…. 4. Load MDR from the memory bus 3. Wait for the MFC response from the memory As an example of a read operation, consider the instruction Move (R1), R2. Following are the steps required to execute this instruction are: 1. MAR → [R1] 2. Start a Read operation on the memory bus 5. [R2]→MDR •The response time of each memory access varies (cache miss, memory-mapped I/O,…). •To accommodate this, the processor waits until it receives an indication that the requested operation has been completed (Memory-Function-Completed, MFC).
  • 13. Timing Assume MAR is always available on the address lines of the memory bus. 1Step Clock MARin MAR ← [R1] Read 2 Will cause the bus interface circuit to send a read command, MR on the bus Address MR MDRinE Data MFC 3 MDRout 3. MDRout, R2in 1. R1out,MARin, Read 2. MDRinE, WMFC N.B.- here we have reduced the steps, now these are three only.
  • 14. Storing a Word in Memory DO IT BY YOUR OWN
  • 15. Execution of a complete Instruction REFER TO SLIDE NO 7.