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

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...Waqas Afzal
 
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 .pptxjainyshah20
 
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...Rai University
 
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...Rai University
 
Control unit design
Control unit designControl unit design
Control unit designDhaval Bagal
 
EC8691 - UNIT 5.pdf
EC8691 - UNIT 5.pdfEC8691 - UNIT 5.pdf
EC8691 - UNIT 5.pdfSPonmalar1
 
Timer counter in arm7(lpc2148)
Timer counter in arm7(lpc2148)Timer counter in arm7(lpc2148)
Timer counter in arm7(lpc2148)Aarav Soni
 
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
 
8051 training an interactive tutorial
8051 training an interactive tutorial8051 training an interactive tutorial
8051 training an interactive tutorialFutura infotech
 
Unit 2 Timing Diagram.pdf
Unit 2 Timing Diagram.pdfUnit 2 Timing Diagram.pdf
Unit 2 Timing Diagram.pdfHimanshuPant41
 

Similar to Timing & Control.pptx (20)

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
 
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
 
8051 ch9
8051 ch98051 ch9
8051 ch9
 
Unit 2 Timing Diagram.pdf
Unit 2 Timing Diagram.pdfUnit 2 Timing Diagram.pdf
Unit 2 Timing Diagram.pdf
 

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

Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptxVS Mahajan Coaching Centre
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxAvyJaneVismanos
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPCeline George
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxDr.Ibrahim Hassaan
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 

Recently uploaded (20)

Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions  for the students and aspirants of Chemistry12th.pptxOrganic Name Reactions  for the students and aspirants of Chemistry12th.pptx
Organic Name Reactions for the students and aspirants of Chemistry12th.pptx
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Final demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptxFinal demo Grade 9 for demo Plan dessert.pptx
Final demo Grade 9 for demo Plan dessert.pptx
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
What is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERPWhat is Model Inheritance in Odoo 17 ERP
What is Model Inheritance in Odoo 17 ERP
 
Gas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptxGas measurement O2,Co2,& ph) 04/2024.pptx
Gas measurement O2,Co2,& ph) 04/2024.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 

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.