SlideShare a Scribd company logo
1 of 22
Timing & Control and Instruction Cycle
G.Chandraprabha, M.Sc., M.Phil.,
Assistant Professor of IT
Timing & Control
• The timing for all registers in the basic computer is controlled
by a master clock generator.
• The clock pulses are applied to all flip-flops and registers in
the system, including the flip- flops and registers in the
control unit.
Timing & Control
• The control signals are generated in the control unit and
provide control inputs for the multiplexers in the common
bus, control inputs in processor registers, and micro
operations for the accumulator.
Timing & Control
There are two major types of control organization:
1.Hardwired control : the control logic is implemented with
gates, flip-flops, decoders, and other digital circuits. It has the
advantage that it can be optimized to produce a fast mode of
operation.
Timing & Control
2.Micro programmed control: the control information is
stored in a control memory. The control memory is
programmed to initiate the required sequence of micro
operation.
Timing & Control
Timing & Control
• It consists of two decoders, a sequence counter, and a number of
control logic gates.
• An instruction read from memory is placed in the instruction register
(IR).The instruction register it is divided into three parts: the I bit, the
operation code, and bits 0 through 11.
• The operation code in bits 12 through 14 are decoded with a 3X8
decoder. The eight outputs of the decoder are designated by the
symbols D0 through D7
Timing & Control
• The subscripted decimal number is equivalent to the binary value of
the corresponding operation code.
• Bit 15 of the instruction is transferred to a flip-flop designated by the
symbol I.
• Bits 0 through 11 are applied to the control logic gates.
• The 4-bit sequence counter can count in binary from 0 through 15.
• The outputs of the counter are decoded into 16 timing signals T0
through T15•
Timing & Control
• The sequence counter SC can be incremented or cleared synchronously.
• Most of the time, the counter is incremented to provide the sequence
of timing signals out of the 4 x 16 decoder.
• Once in awhile, the counter is cleared to 0, causing the next active
timing signal to be To.
• As an example, consider the case where SC is incremented to provide
timing signals T0, T1, T2, T3, and T4 in sequence.
• At time T4, SC is cleared to 0 if decoder output D3 is active.
Timing & Control
• This is expressed symbolically by the statement D3T4: SC <- 0
• The sequence counter SC responds to the positive transition of the clock.
• Initially, the CLR input of SC is active. The first positive transition
• of the clock clears SC to 0, which in tum activates the timing signal
• T0 out of the decoder.
• SC is incremented with every positive transition, Unless CLR input is
• active. Thisproduces the sequence of timing signals T0,T1,T2,T3,T4,...
• and so on.
Timing & Control
• T0 is active during one clock cycle. The positive clock transition
labeled in T0 in the diagram
• If SC is not cleared, the timing signals will continue with T5, T6, up to
T15 and back to T0.
• At time T4, SC is cleared to 0 if decoder output D3 is active. This is
expressed symbolically by the statement D3 T4: SC ← 0
• A memory read or write cycle will be initiated with the rising edge of
a timing signal. It will be assumed that a memory cycle time is less
than the clock cycle time.
Timing & Control
• According to this assumption, a memory read or write cycle initiated by
a timing signal
• will be completed by the time the next clock goes through its positive
transition. The clock transition will then be used to load the memory
word into a register.
• For example, the register transfer statement T0: AR &PC specifies a
transfer of the content of PC into AR if timing signal To is active. T0 is
active during an entire clock cycle interval.
Timing & Control
• During this time the content of PC is placed onto the bus (with
S2S1S0= 010) and the LD (load) input of AR is enabled. The actual
transfer does not occur until the end of the clock cycle when the
clock goes through a positive transition. This same positive
• clock transition increments the sequence counter SC from 0000 to
0001 . The next clock cycle has T1 active and T0 inactive.
Instruction Cycle
A program residing in the memory unit of the computer consists of a
sequence of instructions. The program is executed in the computer by
going through a cycle for each instruction. In the basic computer each
instruction cycle consists of the following phases:
1. Fetch an instruction from memory.
2. Decode the instruction.
3. Read the effective address from memory if the instruction has an
indirect address.
Instruction Cycle
4. Execute the instruction. This process continues indefinitely unless a
HALT instruction is encountered.
Fetch and Decode :
Initially, the program counter PC is loaded with the address of the first
instruction in the program. The sequence counter SC is cleared to 0,
providing a decoded timing signal T0. After each clock pulse, SC is
incremented by one, so that the timing signals go through a sequence
T0, T1, T2, and so on.
Instruction Cycle
The micro operations for the fetch and decode phases can be specified
by the following register transfer statements.
T0 : AR <--- PC
T1 : IR <--- [AR],PC = PC + 1
T2 : D0,,,,D7 <--- Decode IR(12--14),AR <--IR(0--11),I <---IR(15)
• Since only AR is connected to the address inputs of memory, it is
necessary to transfer the address from PC to AR during the clock
transition associated with timing signal T0
Instruction Cycle
Instruction Cycle
Determine the Type of Instruction:
• The timing signal that is active after the decoding is T3•
• During time T3 the control unit determines the type of instruction that
was just read from memory.
• Decoder output D, is equal to 1 if the operation code is equal to binary
111. if D7 = 1, the instruction must be a register-reference or input
output type.
• If D7 = 0, the operation code must be one of the other seven values
000 through 110, specifying a memory-reference instruction.
Instruction Cycle
• Control then inspects the value of the first bit of the instruction, which
is now available in flip-flop I.
• If D7 = 0 and I = 1, we have a memory reference instruction with an
indirect address.
• It is then necessary to read the effective address from memory. The
micro operation for the indirect address condition can be symbolized
by the register transfer statement AR <-- M[AR]
• Initially, AR holds the address part of the instruction. This address is
used during the memory read operation.
Instruction Cycle
• The word at the address given by AR is read from memory and placed
on the common bus. The LD input of AR is then enabled to receive the
indirect address that resided in the 12 least significant bits of the
memory word.
• The three instruction types are subdivided into four separate paths.
• The selected operation is activated with the clock transition associated
with timing signal T3•
• The execution of the memory-reference instruction can be continued
with timing variable T4•
Instruction Cycle
• A register-reference or input-output instruction can be executed
with the clock associated with timing signal T3.
• After the instruction is executed, SC is cleared to 0 and control
returns to the fetch phase with T0 = 1.
Thank You

More Related Content

Similar to Timing & Control.pptx

Similar to Timing & Control.pptx (20)

5-Timer Mode 2 Programming-18-03-2024.pptx
5-Timer Mode 2 Programming-18-03-2024.pptx5-Timer Mode 2 Programming-18-03-2024.pptx
5-Timer Mode 2 Programming-18-03-2024.pptx
 
plc & scaad
plc & scaadplc & scaad
plc & scaad
 
9 timer programming
9 timer programming9 timer programming
9 timer programming
 
Programmable Logic Controller | Ladder Logic diagrams| Block diagram | I/O Mo...
Programmable Logic Controller | Ladder Logic diagrams| Block diagram | I/O Mo...Programmable Logic Controller | Ladder Logic diagrams| Block diagram | I/O Mo...
Programmable Logic Controller | Ladder Logic diagrams| Block diagram | I/O Mo...
 
11. Lecture.pdf
11. Lecture.pdf11. Lecture.pdf
11. Lecture.pdf
 
material for studentbasic computer organization and design .pptx
material for studentbasic computer organization and design .pptxmaterial for studentbasic computer organization and design .pptx
material for studentbasic computer organization and design .pptx
 
Bca 2nd sem-u-2.2-overview of register transfer, micro operations and basic c...
Bca 2nd sem-u-2.2-overview of register transfer, micro operations and basic c...Bca 2nd sem-u-2.2-overview of register transfer, micro operations and basic c...
Bca 2nd sem-u-2.2-overview of register transfer, micro operations and basic c...
 
Delay routine
Delay routineDelay routine
Delay routine
 
B.sc cs-ii-u-2.2-overview of register transfer, micro operations and basic co...
B.sc cs-ii-u-2.2-overview of register transfer, micro operations and basic co...B.sc cs-ii-u-2.2-overview of register transfer, micro operations and basic co...
B.sc cs-ii-u-2.2-overview of register transfer, micro operations and basic co...
 
Control unit design
Control unit designControl unit design
Control unit design
 
Timers of 8051
Timers of 8051Timers of 8051
Timers of 8051
 
EC8691 - UNIT 5.pdf
EC8691 - UNIT 5.pdfEC8691 - UNIT 5.pdf
EC8691 - UNIT 5.pdf
 
Timer counter in arm7(lpc2148)
Timer counter in arm7(lpc2148)Timer counter in arm7(lpc2148)
Timer counter in arm7(lpc2148)
 
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...
 
8051 training an interactive tutorial
8051 training an interactive tutorial8051 training an interactive tutorial
8051 training an interactive tutorial
 
6-Interrupts Programming-27-03-2024.pptx
6-Interrupts Programming-27-03-2024.pptx6-Interrupts Programming-27-03-2024.pptx
6-Interrupts Programming-27-03-2024.pptx
 
8051 timers--2
   8051 timers--2   8051 timers--2
8051 timers--2
 
Timers and pwm
Timers and pwmTimers and pwm
Timers and pwm
 
PLC.pdf
PLC.pdfPLC.pdf
PLC.pdf
 
Timers
TimersTimers
Timers
 

More from V.V.Vanniaperumal College for Women

More from V.V.Vanniaperumal College for Women (20)

Control Memory.pptx
Control Memory.pptxControl Memory.pptx
Control Memory.pptx
 
ADDRESSING MODES.pptx
ADDRESSING MODES.pptxADDRESSING MODES.pptx
ADDRESSING MODES.pptx
 
Data_Transfer&Manupulation Instructions.pptx
Data_Transfer&Manupulation Instructions.pptxData_Transfer&Manupulation Instructions.pptx
Data_Transfer&Manupulation Instructions.pptx
 
Human Rights - 1.pptx
Human Rights - 1.pptxHuman Rights - 1.pptx
Human Rights - 1.pptx
 
Registers.pptx
Registers.pptxRegisters.pptx
Registers.pptx
 
Instruction Codes.pptx
Instruction Codes.pptxInstruction Codes.pptx
Instruction Codes.pptx
 
Features of Java.pptx
Features of Java.pptxFeatures of Java.pptx
Features of Java.pptx
 
JVM.pptx
JVM.pptxJVM.pptx
JVM.pptx
 
Constructors in JAva.pptx
Constructors in JAva.pptxConstructors in JAva.pptx
Constructors in JAva.pptx
 
IS-Crypttools.pptx
IS-Crypttools.pptxIS-Crypttools.pptx
IS-Crypttools.pptx
 
IS-Delibrate software attacks.pptx
IS-Delibrate software attacks.pptxIS-Delibrate software attacks.pptx
IS-Delibrate software attacks.pptx
 
IS-Nature of forces.ppt
IS-Nature of forces.pptIS-Nature of forces.ppt
IS-Nature of forces.ppt
 
IS-cryptograpy algorithms.pptx
IS-cryptograpy algorithms.pptxIS-cryptograpy algorithms.pptx
IS-cryptograpy algorithms.pptx
 
IS-Types of IDPSs.pptx
IS-Types of IDPSs.pptxIS-Types of IDPSs.pptx
IS-Types of IDPSs.pptx
 
IS-honeypot.pptx
IS-honeypot.pptxIS-honeypot.pptx
IS-honeypot.pptx
 
Sum of subset problem.pptx
Sum of subset problem.pptxSum of subset problem.pptx
Sum of subset problem.pptx
 
M-coloring.pptx
M-coloring.pptxM-coloring.pptx
M-coloring.pptx
 
storm.ppt
storm.pptstorm.ppt
storm.ppt
 
storm for RTA.pptx
storm for RTA.pptxstorm for RTA.pptx
storm for RTA.pptx
 
Yarn.ppt
Yarn.pptYarn.ppt
Yarn.ppt
 

Recently uploaded

IATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdffIATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdff
17thcssbs2
 

Recently uploaded (20)

IATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdffIATP How-to Foreign Travel May 2024.pdff
IATP How-to Foreign Travel May 2024.pdff
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptx
 
2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx2024_Student Session 2_ Set Plan Preparation.pptx
2024_Student Session 2_ Set Plan Preparation.pptx
 
“O BEIJO” EM ARTE .
“O BEIJO” EM ARTE                       .“O BEIJO” EM ARTE                       .
“O BEIJO” EM ARTE .
 
How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17How to the fix Attribute Error in odoo 17
How to the fix Attribute Error in odoo 17
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matrices
 
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & EngineeringBasic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
Basic Civil Engg Notes_Chapter-6_Environment Pollution & Engineering
 
philosophy and it's principles based on the life
philosophy and it's principles based on the lifephilosophy and it's principles based on the life
philosophy and it's principles based on the life
 
Keeping Your Information Safe with Centralized Security Services
Keeping Your Information Safe with Centralized Security ServicesKeeping Your Information Safe with Centralized Security Services
Keeping Your Information Safe with Centralized Security Services
 
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
Research Methods in Psychology | Cambridge AS Level | Cambridge Assessment In...
 
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptxMatatag-Curriculum and the 21st Century Skills Presentation.pptx
Matatag-Curriculum and the 21st Century Skills Presentation.pptx
 
B.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdfB.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdf
 
[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation[GDSC YCCE] Build with AI Online Presentation
[GDSC YCCE] Build with AI Online Presentation
 
How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17How to Manage Notification Preferences in the Odoo 17
How to Manage Notification Preferences in the Odoo 17
 
Championnat de France de Tennis de table/
Championnat de France de Tennis de table/Championnat de France de Tennis de table/
Championnat de France de Tennis de table/
 
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
Incoming and Outgoing Shipments in 2 STEPS Using Odoo 17
 
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdfINU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
INU_CAPSTONEDESIGN_비밀번호486_업로드용 발표자료.pdf
 
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdfTelling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
Telling Your Story_ Simple Steps to Build Your Nonprofit's Brand Webinar.pdf
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
 
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
50 ĐỀ LUYỆN THI IOE LỚP 9 - NĂM HỌC 2022-2023 (CÓ LINK HÌNH, FILE AUDIO VÀ ĐÁ...
 

Timing & Control.pptx

  • 1. Timing & Control and Instruction Cycle G.Chandraprabha, M.Sc., M.Phil., Assistant Professor of IT
  • 2. Timing & Control • The timing for all registers in the basic computer is controlled by a master clock generator. • The clock pulses are applied to all flip-flops and registers in the system, including the flip- flops and registers in the control unit.
  • 3. Timing & Control • The control signals are generated in the control unit and provide control inputs for the multiplexers in the common bus, control inputs in processor registers, and micro operations for the accumulator.
  • 4. Timing & Control There are two major types of control organization: 1.Hardwired control : the control logic is implemented with gates, flip-flops, decoders, and other digital circuits. It has the advantage that it can be optimized to produce a fast mode of operation.
  • 5. Timing & Control 2.Micro programmed control: the control information is stored in a control memory. The control memory is programmed to initiate the required sequence of micro operation.
  • 7. Timing & Control • It consists of two decoders, a sequence counter, and a number of control logic gates. • An instruction read from memory is placed in the instruction register (IR).The instruction register it is divided into three parts: the I bit, the operation code, and bits 0 through 11. • The operation code in bits 12 through 14 are decoded with a 3X8 decoder. The eight outputs of the decoder are designated by the symbols D0 through D7
  • 8. Timing & Control • The subscripted decimal number is equivalent to the binary value of the corresponding operation code. • Bit 15 of the instruction is transferred to a flip-flop designated by the symbol I. • Bits 0 through 11 are applied to the control logic gates. • The 4-bit sequence counter can count in binary from 0 through 15. • The outputs of the counter are decoded into 16 timing signals T0 through T15•
  • 9. Timing & Control • The sequence counter SC can be incremented or cleared synchronously. • Most of the time, the counter is incremented to provide the sequence of timing signals out of the 4 x 16 decoder. • Once in awhile, the counter is cleared to 0, causing the next active timing signal to be To. • As an example, consider the case where SC is incremented to provide timing signals T0, T1, T2, T3, and T4 in sequence. • At time T4, SC is cleared to 0 if decoder output D3 is active.
  • 10. Timing & Control • This is expressed symbolically by the statement D3T4: SC <- 0 • The sequence counter SC responds to the positive transition of the clock. • Initially, the CLR input of SC is active. The first positive transition • of the clock clears SC to 0, which in tum activates the timing signal • T0 out of the decoder. • SC is incremented with every positive transition, Unless CLR input is • active. Thisproduces the sequence of timing signals T0,T1,T2,T3,T4,... • and so on.
  • 11. Timing & Control • T0 is active during one clock cycle. The positive clock transition labeled in T0 in the diagram • If SC is not cleared, the timing signals will continue with T5, T6, up to T15 and back to T0. • At time T4, SC is cleared to 0 if decoder output D3 is active. This is expressed symbolically by the statement D3 T4: SC ← 0 • A memory read or write cycle will be initiated with the rising edge of a timing signal. It will be assumed that a memory cycle time is less than the clock cycle time.
  • 12. Timing & Control • According to this assumption, a memory read or write cycle initiated by a timing signal • will be completed by the time the next clock goes through its positive transition. The clock transition will then be used to load the memory word into a register. • For example, the register transfer statement T0: AR &PC specifies a transfer of the content of PC into AR if timing signal To is active. T0 is active during an entire clock cycle interval.
  • 13. Timing & Control • During this time the content of PC is placed onto the bus (with S2S1S0= 010) and the LD (load) input of AR is enabled. The actual transfer does not occur until the end of the clock cycle when the clock goes through a positive transition. This same positive • clock transition increments the sequence counter SC from 0000 to 0001 . The next clock cycle has T1 active and T0 inactive.
  • 14. Instruction Cycle A program residing in the memory unit of the computer consists of a sequence of instructions. The program is executed in the computer by going through a cycle for each instruction. In the basic computer each instruction cycle consists of the following phases: 1. Fetch an instruction from memory. 2. Decode the instruction. 3. Read the effective address from memory if the instruction has an indirect address.
  • 15. Instruction Cycle 4. Execute the instruction. This process continues indefinitely unless a HALT instruction is encountered. Fetch and Decode : Initially, the program counter PC is loaded with the address of the first instruction in the program. The sequence counter SC is cleared to 0, providing a decoded timing signal T0. After each clock pulse, SC is incremented by one, so that the timing signals go through a sequence T0, T1, T2, and so on.
  • 16. Instruction Cycle The micro operations for the fetch and decode phases can be specified by the following register transfer statements. T0 : AR <--- PC T1 : IR <--- [AR],PC = PC + 1 T2 : D0,,,,D7 <--- Decode IR(12--14),AR <--IR(0--11),I <---IR(15) • Since only AR is connected to the address inputs of memory, it is necessary to transfer the address from PC to AR during the clock transition associated with timing signal T0
  • 18. Instruction Cycle Determine the Type of Instruction: • The timing signal that is active after the decoding is T3• • During time T3 the control unit determines the type of instruction that was just read from memory. • Decoder output D, is equal to 1 if the operation code is equal to binary 111. if D7 = 1, the instruction must be a register-reference or input output type. • If D7 = 0, the operation code must be one of the other seven values 000 through 110, specifying a memory-reference instruction.
  • 19. Instruction Cycle • Control then inspects the value of the first bit of the instruction, which is now available in flip-flop I. • If D7 = 0 and I = 1, we have a memory reference instruction with an indirect address. • It is then necessary to read the effective address from memory. The micro operation for the indirect address condition can be symbolized by the register transfer statement AR <-- M[AR] • Initially, AR holds the address part of the instruction. This address is used during the memory read operation.
  • 20. Instruction Cycle • The word at the address given by AR is read from memory and placed on the common bus. The LD input of AR is then enabled to receive the indirect address that resided in the 12 least significant bits of the memory word. • The three instruction types are subdivided into four separate paths. • The selected operation is activated with the clock transition associated with timing signal T3• • The execution of the memory-reference instruction can be continued with timing variable T4•
  • 21. Instruction Cycle • A register-reference or input-output instruction can be executed with the clock associated with timing signal T3. • After the instruction is executed, SC is cleared to 0 and control returns to the fetch phase with T0 = 1.