0% found this document useful (0 votes)
4 views

New1_ Chapter 5 - Basic Processing Unit

Chapter 5 discusses the Basic Processing Unit, focusing on the roles of the Instruction Set Processor (ISP) and Central Processing Unit (CPU) in executing machine instructions. It explains fundamental concepts like the Program Counter (PC), Instruction Register (IR), and the distinction between hardwired and microprogrammed control systems. The chapter highlights the advantages and disadvantages of each control method, noting that hardwired control is preferred in modern RISC-style processors due to its simplicity and efficiency.

Uploaded by

srinidosantos
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views

New1_ Chapter 5 - Basic Processing Unit

Chapter 5 discusses the Basic Processing Unit, focusing on the roles of the Instruction Set Processor (ISP) and Central Processing Unit (CPU) in executing machine instructions. It explains fundamental concepts like the Program Counter (PC), Instruction Register (IR), and the distinction between hardwired and microprogrammed control systems. The chapter highlights the advantages and disadvantages of each control method, noting that hardwired control is preferred in modern RISC-style processors due to its simplicity and efficiency.

Uploaded by

srinidosantos
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 40

Chapter 5.

Basic
Processing Unit
Overview
 Instruction Set Processor (ISP)
 Central Processing Unit (CPU)
 A typical computing task consists of a series
of steps specified by a sequence of machine
instructions that constitute a program.
 An instruction is executed by carrying out a
sequence of more rudimentary operations.
Some Fundamental
Concepts
Fundamental Concepts
 Processor fetches one instruction at a time and
perform the operation specified.
 Instructions are fetched from successive memory
locations until a branch or a jump instruction is
encountered.
 Processor keeps track of the address of the memory
location containing the next instruction to be fetched
using Program Counter (PC).
 Instruction Register (IR)
Executing an Instruction
 Fetch the contents of the memory location pointed
to by the PC. The contents of this location are
loaded into the IR (fetch phase).
IR ← [[PC]]
 Assuming that the memory is byte addressable,
increment the contents of the PC by 4 (fetch phase).
PC ← [PC] + 4
 Carry out the actions specified by the instruction in
the IR (execution phase).
Fundamental Concepts
 Processor (CPU): the active part of the
computer, which does all the work (data
manipulation and decision-making).
 Datapath: portion of the processor which
contains hardware necessary to perform all
operations required by the computer (the
brawn).
 Control: portion of the processor (also in
hardware) which tells the datapath what needs
to be done (the brain).
 The setting of the control signals depends on:
 Contents of the step counter
 Contents of the instruction register
 The result of a computation or a comparison
operation
 External input signals, such as interrupt
requests
Microprogrammed
Control
 Instead of employing such circuits, it is possible to use a
“software" approach, in which the desired setting of the
control signals in each step is determined by a program
stored in a special memory.
 The control program is called a microprogram to
distinguish it from the program being executed by the
processor.
 The microprogram is stored on the processor chip in a
small and fast memory called the microprogram memory
or the control store.
 Suppose that n control signals are needed. Let each
control signal be represented by a bit in an n-bit word,
which is often referred to as a control word or a
microinstruction.
 Each bit in that word specifies the setting of the
corresponding signal for a particular step in the
execution flow.
Step Action

1 PCout , MAR in , Read, Select4,A dd, Zin


2 Zout , PCin , Y in , WMF C
3 MDR out , IR in
4 R3out , MAR in , Read
5 R1out , Y in , WMF C
6 MDR out , SelectY,Add, Zin
7 Zout , R1 in , End

Overview
Figure 7.6. Control sequencefor executionof the instruction Add (R3),R1.
Overview
MDRout

WMFC
MAR in

Select
Read
PCout

R1out

R3out
Micro -

End
PCin

R1in
Add

Z out
IRin
Yin

Zin
instruction

1 0 1 1 1 0 0 0 1 1 1 0 0 0 0 0 0
2 1 0 0 0 0 0 1 0 0 0 1 0 0 0 1 0
3 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0

 Control signals are generated by a program similar to machine


4 0 0 1 1 0 0 0 0 0 0 0 0 0 1 0 0
5 0 0 0 0 0 0 1 0 0 0 0 1 0 0 1 0
6 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 0
7 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 1

language programs.
Figure 7.15 An example of microinstructions for Figure 7.6.

 Control Word (CW); microroutine; microinstruction


Starting
IR address
generator

Clock PC

Control
store CW

Overview
Figure 7.16. Basic organization of a microprogrammed control unit.

 Control store

One function
cannot be carried
out by this simple
organization.
Hardwired Vs. Microprogrammed
 In hardwired control, these signals are generated by circuits that interpret
the contents of the IR as well as the timing signals derived from a step
counter.
 In microporgrammed control a “software" approach, in which the desired
setting of the control signals in each step is determined by a program stored
in a special memory, is used.
 Microprogrammed control is simple to implement and provides considerable
flexibility in controlling the execution of machine instructions. But, it is slower
than hardwired control. Also, the flexibility it provides is not needed in RISC-
style processors.
 As the discussion in this chapter illustrates, the control signals needed to
implement RISC-style instructions are quite simple to generate.
 Since the cost of logic circuitry is no longer a significant factor, hardwired
control has become the preferred choice.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy