Digital Logic and Computer Architecture
Digital Logic and Computer Architecture
4.1] Introduction
― Function of Control Unit
The control unit works by getting information as input. It changes
information into control signals, and send these signals to the Central
processing unit (CPU) and other hardware to perform specific
operation in specific order.
a) Coordinate of data moment between processors subunit and its
sequencing.
b) Interpretation of instructions fetched from the memory.
c) Controlling the data flow over the CPU.
d) Conversion of external instruction or commands into sequence
of control signals.
e) Controlling the subunits of the CPU such as ALU registers, data
buffer etc.
f) Scheduling the operations of the CPU in an appropriate flow so
as to complete the execution of instruction.
― Operations of control unit are based on the following inputs.
a) Opcode of instruction
b) The condition codes as status flags
c) The current state of the processor
d) Clock signal
― Different types of control signals
A] External control signals
1) RD: Read control signal
2) WR: Write control signal
B] Internal control signals
1) Register control signals
a) Rx in (Register in)
1
Digital Logic and Computer Arithmetic
2
Digital Logic and Computer Arithmetic
3
Digital Logic and Computer Arithmetic
4
Digital Logic and Computer Arithmetic
perform any operation, the control unit performs the following task
in one clock pulse:
i. Sequencing logic give READ command to control memory.
ii. Instruction from CAR is read into CBR.
iii. CBR generates a control signal for internal and external bus and
information of next address for sequencing unit.
iv. Sequencing logic decides the address of any instruction to be
loaded into CAR depending upon the information given by CBR.
v. There are two decoders present in the Microprogrammed
Control Unit.
vi. The upper decoder is used to translate the opcode of the IR into
address of a control memory.
vii. The lower decoder converts function code to individual signal
to be connected into control lines.
5
Digital Logic and Computer Arithmetic
6
Digital Logic and Computer Arithmetic
7
Digital Logic and Computer Arithmetic
8
Digital Logic and Computer Arithmetic
Memory Organization
Memory:
Memory is an essential component of computer system. The main
internal memory of a computer system along with magnetic disc
from the important RAM, ROM and external storage memories are
required by the processor to perform the task. Memories can be
classified as a primary memory and secondary memory depending
upon their utility and accessibility.
5.1] Classification of Primary Memory and Secondary Memory
5.1.1] Primary Memory
The memory that is directly addressable or accessible on the memory
map of the processor is called primary memory. All types of RAMs
and ROMs are primary memory of a computer system. These
memories are first interacted with computer system with processor.
They form internal memories of a computer system.
• Features of Primary Memory
9
Digital Logic and Computer Arithmetic
10
Digital Logic and Computer Arithmetic
11
Digital Logic and Computer Arithmetic
Storage
element Write
Memory type Volatility Read/write Erasure
and mechanism
memory cell
Dynamic
Random
Electrical,
Access Volatile Capacitor Read Write Electrical
Byte Level
memory
(DRAM)
Static Random
Access Flip Flop Electrical,
Volatile Read Write Electrical
Memory Gate Byte Level
(SRAM)
Wired Wired chip
Read Only
during chip Not fabrication
Memory Non volatile Read only
fabrication possible process using
(ROM)
process masks
Wired
Programmable during chip Not
Not volatile. Read only Electrical
ROM (PROM) fabrication possible
process
Erasable
Read UV light,
PROM Non volatile Transistor Electrical
frequently Chip Level
(EPROM)
Electrical
Transistor or Read Electrical,
EPROM Non volatile Electrical
flip flop frequently Byte Level
(EEPROM)
Read Electrical,
Flash memory Non volatile Transistor Electrical
frequently Byte Level
12
Digital Logic and Computer Arithmetic
13
Digital Logic and Computer Arithmetic
14
Digital Logic and Computer Arithmetic
(1) Volatile: The memory that loses its data content of its
location is called volatile memory.
(2) Non-Volatile: The memory that holds on to the data content
of its location is called as non-volatile memory.
G. Writable and write cycles sustenance:
Non-volatile memories usually ROMs are classified based on
the whether they are writable or not. They are referred to as
read mostly memory if they are writable. Such memories show
different number of write cycle that they can sustain. This
property is called write cycle sustenance.
H. Performance parameter
The performance of a memory is determined on parameters
like 1) memory access time 2) Memory cycle time 3) Peak data
transfer rate.
I. Cost
The cost is measured as the cost incurred for some suitable unit
of memory size i.e., cost per bit Cost/MB or Cost/GB.
5.5] Cache Memory
5.5.1] Cache Memory:
Cache memory is a super-fast type of computer memory that helps
the CPU access frequently used data quickly. It sits between the main
memory and the processor, storing important information to speed
up overall performance. The key idea is to keep copies of frequently
accessed data close to the processor, making tasks run faster.
5.5.2] Locality of Reference
Locality of reference is a fundamental concept in computer science,
especially in the design of cache memory. It refers to the tendency of
a program to access a relatively small portion of its address space at
any given time. There are two primary types of localities:
(1) Temporal Locality:
15
Digital Logic and Computer Arithmetic
16
Digital Logic and Computer Arithmetic
17
Digital Logic and Computer Arithmetic
18
Digital Logic and Computer Arithmetic
19
Digital Logic and Computer Arithmetic
20
Digital Logic and Computer Arithmetic
21
Digital Logic and Computer Arithmetic
22
Digital Logic and Computer Arithmetic
Advantages:
Simplicity and Scalability.
The user can add more devices anywhere along the chain, up to a
certain maximum value.
Disadvantages:
The value of priority assigned to a device depends on the position of
the master bus.
23
Digital Logic and Computer Arithmetic
Advantages –
This method does not favor any particular device and processor.
The method is also quite simple.
Disadvantages –
Adding bus masters is difficult as increases the number of address
lines of the circuit.
If one device fails then the entire system will not stop working.
(iii) Fixed priority or Independent Request method –
In this, each master has a separate pair of bus request and bus grant
lines and each pair has a priority assigned to it. The built-in priority
decoder within the controller selects the highest priority request and
asserts the corresponding bus grant signal.
24
Digital Logic and Computer Arithmetic
Advantages –
This method generates a fast response.
Disadvantages –
Hardware cost is high as a large no. of control lines is required.
25
Digital Logic and Computer Arithmetic
26
Digital Logic and Computer Arithmetic
PCI was designed by the IVM using international standard for 32 bits
interface for 32-bit system architecture. It connected to the high-
speed processor local bus through bridging device component called
as North Bridge and South Bridge.
Features:
(1) PCI bus is a driver using special component called PCI bridge
(2) It increases burst clock speed and makes efficient use of a CPU
Data Bus
(3) Standard bandwidth of PCI bus is 66 megahertz.
(4) It has auto configuration capability for the switchless
peripherals
(5) The capabilities take care of all address IRQ and TMA uses by
this PCI type of a peripherals
(6) It can work with 32 bit or 64-bit bus width
(7) HPCI bus have 256 devices and it uses 33 volts or 22 volts for
operation
(8) It consumes less power
(9)It supports techniques such as green machine concept
27