SlideShare a Scribd company logo
CPU
CONTROL UNIT
CONTROL UNIT
• KEY POINTS
• The execution of an instruction involves the
execution of a sequence of substeps, generally
called cycles. For example, an execution may
consist of fetch, execute, and interrupt cycles. Each
cycle is in turn made up of a sequence of more
fundamental operations, called micro-operations. A
single micro-operation generally involves a transfer
between registers, a transfe between a register and
an external bus, or a simple ALU operation.
CONTROL UNIT
• KEY POINTS
• The control unit of a processor performs two tasks:
(1) It causes the processor to ste through a series of
micro-operations in the proper sequence, based on
the program being executed, and (2) it generates the
contro signals that cause each micro-operation to be
executed.
CONTROL UNIT
• KEY POINTS
• The control signals generated by the control unit
cause the opening and closing of logic gates,
resulting in the transfer of data to and from registers
and the operation of the ALU.
• each of the smaller cycles involves a series of steps,
each of which involves the processor registers. We
will refer to these steps as micro-operations.
The Fetch Cycle
• Four registers are involved:
1. Memory address register (MAR): Is connected to
the address lines of the system bus. It specifies the
address in memory for a read or write operation.
2. • Memory buffer register (MBR): Is connected to the
data lines of the system bus. It contains the value
to be stored in memory or the last value read from
memory.
3. • Program counter (PC): Holds the address of the
next instruction to be fetched.
4. • Instruction register (IR): Holds the last instruction
fetched
The Fetch Cycle
• Steps
1. the address of the next instruction to be executed is in the
program counter (PC);
2. move that address to the memory address register (MAR)
3. bring in the instruction:The desired address (in the MAR) is
placed on the address bus, the control unit issues a READ
command on the control bus, and the result appears on the
data bus and is copied into the memory buffer register (MBR)
4. increment the PC by the instruction length to get ready for the
next instruction.(Because these two actions (read word from
memory, increment PC) do not interfere with each other, we
can do them simultaneously to save time.)
5. move the contents of the MBR to the instruction register (IR).
The Fetch Cycle
The Execute Cycle
• there are a number of different sequences of micro-
operations that can occur , due to the variety opcodes.
• ADD R1, X
• t1: MAR ← (IR(address))
• t2: MBR ← Memory
• t3: R1 ← (R1) + (MBR)
micro-operations
• micro-operations fall in to one of the following
categories:
1. Transfer data from one register to another.
2. Transfer data from a register to an external
interface (e.g., system bus).
3. Transfer data from an external interface to a
register.
4. Perform an arithmetic or logic operation, using
registers for input and output
tasks
• The control unit performs two basic tasks:
• Sequencing: The control unit causes the processor
to step through a series of micro-operations in the
proper sequence, based on the program being
executed.
• Execution: The control unit causes each micro-
operation to be performed.
Interfaces
Interfaces
Three types of control signals are used: those
1. that activate an ALU function,
2. those that activate a data path,
3. and those that are signals on the external system
bus or other external interface.
All of these signals are ultimately applied directly as
binary inputs to individual logic gates.
• E.g : to transfer the contents of the PC to the MAR.
The control unit does this by activating the control
signal that opens the gates between the bits of the
PC and the bits of the MAR.
HARDWIRED
IMPLEMENTATION
HARDWIRED
IMPLEMENTATION
• To simplify the control unit logic, there should be a
unique logic input for each opcode This function can
be performed by a decoder, which takes an encoded
input and produces a single output.
• Timing Generator: generate timing signal consist of
counter and decoder ,with pulse there is single
timing signal.
HARDWIRED
IMPLEMENTATION
• Consider I0 required the following sequence of
control signal
• C7 = t2  I0 C3 = t1  I0
HARDWIRED
IMPLEMENTATION
• Consider I9 required the following sequence of
control signal
HARDWIRED
IMPLEMENTATION
CISC & RISC
• Complex instruction set computers (CISC)
o These machines provided a variety of
instructions that may perform very
complex tasks
o To ease task for programmers
o Use large numbers of addressing modes
o Require many clock cycles per instruction
o Used a number of different instruction
formats of varying lengths
CISC & RISC
• Reduced instruction set computers (RISC)
o Fewer and simpler instructions
o Few instruction formats
o Few cycle per instruction
o Large number of internal CPU registers
o Best suited with pipeline processors

More Related Content

Similar to Control unit

assignment on control unit and control signal micro instruction
assignment on control unit and control signal micro instructionassignment on control unit and control signal micro instruction
assignment on control unit and control signal micro instruction
ChHusnainHassanI
 
Unit 2 ca- control unit
Unit 2 ca- control unitUnit 2 ca- control unit
Unit 2 ca- control unit
BBDITM LUCKNOW
 
computer architecture
computer architecturecomputer architecture
computer architecture
Pandiya Rajan
 
Unit II.pptx
Unit II.pptxUnit II.pptx
Unit II.pptx
NidaKhan232565
 
Computer Organization
Computer OrganizationComputer Organization
Computer Organization
JasmineShaik14
 
Unit 3 CO.pptx
Unit 3 CO.pptxUnit 3 CO.pptx
Unit 3 CO.pptx
NeerajaBhukya
 
Compuer organizaion processing unit
Compuer organizaion processing unitCompuer organizaion processing unit
Compuer organizaion processing unit
Deepak John
 
Micro programmed control
Micro programmed controlMicro programmed control
Micro programmed control
Syed Zaid Irshad
 
17 micro programmed control
17 micro programmed control17 micro programmed control
17 micro programmed control
dilip kumar
 
CS304PC:Computer Organization and Architecture UNIT II .pdf
CS304PC:Computer Organization and Architecture UNIT II .pdfCS304PC:Computer Organization and Architecture UNIT II .pdf
CS304PC:Computer Organization and Architecture UNIT II .pdf
Asst.prof M.Gokilavani
 
chapter3_CA.pptt nnnnnnnnnnnnnnnnnnnnnnn
chapter3_CA.pptt nnnnnnnnnnnnnnnnnnnnnnnchapter3_CA.pptt nnnnnnnnnnnnnnnnnnnnnnn
chapter3_CA.pptt nnnnnnnnnnnnnnnnnnnnnnn
NineTo1
 
310471266 chapter-7-notes-computer-organization
310471266 chapter-7-notes-computer-organization310471266 chapter-7-notes-computer-organization
310471266 chapter-7-notes-computer-organization
srinoni
 
COMPUTER ORGANIZATION NOTES Unit 7
COMPUTER ORGANIZATION NOTES Unit 7COMPUTER ORGANIZATION NOTES Unit 7
COMPUTER ORGANIZATION NOTES Unit 7
Dr.MAYA NAYAK
 
Control unit
Control unitControl unit
Control unit
Syed Zaid Irshad
 
SAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdf
SAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdfSAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdf
SAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdf
DrKalaavathiBuvanesh
 
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
 
Computer Organization
Computer OrganizationComputer Organization
Computer Organization
Anish Goel
 
3 4- computer organization and archietecture- COA- CO- Computer organization
3 4- computer organization and archietecture- COA- CO- Computer organization3 4- computer organization and archietecture- COA- CO- Computer organization
3 4- computer organization and archietecture- COA- CO- Computer organization
Jay Patel
 
Micro controller
Micro controllerMicro controller
Micro controller
Shrikunj Patel
 

Similar to Control unit (20)

assignment on control unit and control signal micro instruction
assignment on control unit and control signal micro instructionassignment on control unit and control signal micro instruction
assignment on control unit and control signal micro instruction
 
Unit 2 ca- control unit
Unit 2 ca- control unitUnit 2 ca- control unit
Unit 2 ca- control unit
 
computer architecture
computer architecturecomputer architecture
computer architecture
 
Unit II.pptx
Unit II.pptxUnit II.pptx
Unit II.pptx
 
Computer Organization
Computer OrganizationComputer Organization
Computer Organization
 
Unit 3 CO.pptx
Unit 3 CO.pptxUnit 3 CO.pptx
Unit 3 CO.pptx
 
Compuer organizaion processing unit
Compuer organizaion processing unitCompuer organizaion processing unit
Compuer organizaion processing unit
 
Micro programmed control
Micro programmed controlMicro programmed control
Micro programmed control
 
17 micro programmed control
17 micro programmed control17 micro programmed control
17 micro programmed control
 
CS304PC:Computer Organization and Architecture UNIT II .pdf
CS304PC:Computer Organization and Architecture UNIT II .pdfCS304PC:Computer Organization and Architecture UNIT II .pdf
CS304PC:Computer Organization and Architecture UNIT II .pdf
 
chapter3_CA.pptt nnnnnnnnnnnnnnnnnnnnnnn
chapter3_CA.pptt nnnnnnnnnnnnnnnnnnnnnnnchapter3_CA.pptt nnnnnnnnnnnnnnnnnnnnnnn
chapter3_CA.pptt nnnnnnnnnnnnnnnnnnnnnnn
 
310471266 chapter-7-notes-computer-organization
310471266 chapter-7-notes-computer-organization310471266 chapter-7-notes-computer-organization
310471266 chapter-7-notes-computer-organization
 
COMPUTER ORGANIZATION NOTES Unit 7
COMPUTER ORGANIZATION NOTES Unit 7COMPUTER ORGANIZATION NOTES Unit 7
COMPUTER ORGANIZATION NOTES Unit 7
 
Control unit
Control unitControl unit
Control unit
 
SAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdf
SAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdfSAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdf
SAMPLE FOR MICRO PROGRAMMING CO_-_7th_UNIT.pdf
 
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)
 
Computer Organization
Computer OrganizationComputer Organization
Computer Organization
 
3 4- computer organization and archietecture- COA- CO- Computer organization
3 4- computer organization and archietecture- COA- CO- Computer organization3 4- computer organization and archietecture- COA- CO- Computer organization
3 4- computer organization and archietecture- COA- CO- Computer organization
 
Micro controller
Micro controllerMicro controller
Micro controller
 

Recently uploaded

TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
MIRIAMSALINAS13
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
Celine George
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
Pavel ( NSTU)
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
Peter Windle
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
RaedMohamed3
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
Delapenabediema
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
siemaillard
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
BhavyaRajput3
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
Balvir Singh
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
Thiyagu K
 

Recently uploaded (20)

TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXXPhrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
Phrasal Verbs.XXXXXXXXXXXXXXXXXXXXXXXXXX
 
Model Attribute Check Company Auto Property
Model Attribute  Check Company Auto PropertyModel Attribute  Check Company Auto Property
Model Attribute Check Company Auto Property
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Synthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptxSynthetic Fiber Construction in lab .pptx
Synthetic Fiber Construction in lab .pptx
 
Embracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic ImperativeEmbracing GenAI - A Strategic Imperative
Embracing GenAI - A Strategic Imperative
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Palestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptxPalestine last event orientationfvgnh .pptx
Palestine last event orientationfvgnh .pptx
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
The Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official PublicationThe Challenger.pdf DNHS Official Publication
The Challenger.pdf DNHS Official Publication
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCECLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
CLASS 11 CBSE B.St Project AIDS TO TRADE - INSURANCE
 
Operation Blue Star - Saka Neela Tara
Operation Blue Star   -  Saka Neela TaraOperation Blue Star   -  Saka Neela Tara
Operation Blue Star - Saka Neela Tara
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Unit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdfUnit 8 - Information and Communication Technology (Paper I).pdf
Unit 8 - Information and Communication Technology (Paper I).pdf
 

Control unit

  • 2. CONTROL UNIT • KEY POINTS • The execution of an instruction involves the execution of a sequence of substeps, generally called cycles. For example, an execution may consist of fetch, execute, and interrupt cycles. Each cycle is in turn made up of a sequence of more fundamental operations, called micro-operations. A single micro-operation generally involves a transfer between registers, a transfe between a register and an external bus, or a simple ALU operation.
  • 3. CONTROL UNIT • KEY POINTS • The control unit of a processor performs two tasks: (1) It causes the processor to ste through a series of micro-operations in the proper sequence, based on the program being executed, and (2) it generates the contro signals that cause each micro-operation to be executed.
  • 4. CONTROL UNIT • KEY POINTS • The control signals generated by the control unit cause the opening and closing of logic gates, resulting in the transfer of data to and from registers and the operation of the ALU. • each of the smaller cycles involves a series of steps, each of which involves the processor registers. We will refer to these steps as micro-operations.
  • 5. The Fetch Cycle • Four registers are involved: 1. Memory address register (MAR): Is connected to the address lines of the system bus. It specifies the address in memory for a read or write operation. 2. • Memory buffer register (MBR): Is connected to the data lines of the system bus. It contains the value to be stored in memory or the last value read from memory. 3. • Program counter (PC): Holds the address of the next instruction to be fetched. 4. • Instruction register (IR): Holds the last instruction fetched
  • 6. The Fetch Cycle • Steps 1. the address of the next instruction to be executed is in the program counter (PC); 2. move that address to the memory address register (MAR) 3. bring in the instruction:The desired address (in the MAR) is placed on the address bus, the control unit issues a READ command on the control bus, and the result appears on the data bus and is copied into the memory buffer register (MBR) 4. increment the PC by the instruction length to get ready for the next instruction.(Because these two actions (read word from memory, increment PC) do not interfere with each other, we can do them simultaneously to save time.) 5. move the contents of the MBR to the instruction register (IR).
  • 8. The Execute Cycle • there are a number of different sequences of micro- operations that can occur , due to the variety opcodes. • ADD R1, X • t1: MAR ← (IR(address)) • t2: MBR ← Memory • t3: R1 ← (R1) + (MBR)
  • 9. micro-operations • micro-operations fall in to one of the following categories: 1. Transfer data from one register to another. 2. Transfer data from a register to an external interface (e.g., system bus). 3. Transfer data from an external interface to a register. 4. Perform an arithmetic or logic operation, using registers for input and output
  • 10. tasks • The control unit performs two basic tasks: • Sequencing: The control unit causes the processor to step through a series of micro-operations in the proper sequence, based on the program being executed. • Execution: The control unit causes each micro- operation to be performed.
  • 12. Interfaces Three types of control signals are used: those 1. that activate an ALU function, 2. those that activate a data path, 3. and those that are signals on the external system bus or other external interface. All of these signals are ultimately applied directly as binary inputs to individual logic gates. • E.g : to transfer the contents of the PC to the MAR. The control unit does this by activating the control signal that opens the gates between the bits of the PC and the bits of the MAR.
  • 14. HARDWIRED IMPLEMENTATION • To simplify the control unit logic, there should be a unique logic input for each opcode This function can be performed by a decoder, which takes an encoded input and produces a single output. • Timing Generator: generate timing signal consist of counter and decoder ,with pulse there is single timing signal.
  • 15. HARDWIRED IMPLEMENTATION • Consider I0 required the following sequence of control signal • C7 = t2  I0 C3 = t1  I0
  • 16. HARDWIRED IMPLEMENTATION • Consider I9 required the following sequence of control signal
  • 18. CISC & RISC • Complex instruction set computers (CISC) o These machines provided a variety of instructions that may perform very complex tasks o To ease task for programmers o Use large numbers of addressing modes o Require many clock cycles per instruction o Used a number of different instruction formats of varying lengths
  • 19. CISC & RISC • Reduced instruction set computers (RISC) o Fewer and simpler instructions o Few instruction formats o Few cycle per instruction o Large number of internal CPU registers o Best suited with pipeline processors