Building Block of A PC
Building Block of A PC
Output Device
The results that are stored in the memory can be transformed into a form that can
be understood by users of a computer system by means of an output device. Some
common output devices are monitor, printer, speaker etc.
Control Unit:-
Control unit (CU) coordinates and controls the operations of a computer system. It
controls the activities between memory and ALU and between CPU and
input/output devices.
Memory Unit:
A memory unit (MU) is also called primary memory or main memory or RAM
(random access memory). It holds data for processing, instructions for processing
data (program), and information (processed data). The contents of main memory
are lost when the computer is turned off.
(i) Central Processing Unit (CPU): The ‘brain’ of the computer, themcomponent
that actually executes instructions.
(iv) Output device: A display screen, printer, etc. that lets you see what the
computer has accomplished.
(v) Mass storage device: It allows a computer to permanently store large amounts of
data. Common mass storage devices include disk drive and tape drive.
2. The CPU executes the instructions in their stored sequence (one after another)
except when the execution sequence is explicitly altered by a branch instruction.
3. When necessary, the CPU transfers results from the CPU registers into the Main
Memory.
• Consequently, there exist streams of instructions and data between the Main
Memory and the set of general registers that forms the CPU’ s local memory.
• The CPU is significantly faster than the Main Memory, that is it can read from or
write in the CPU’s registers 5 to 10 times faster than it can read from or write in the
Main Memory (MM). Nowadays, VLSI technology tends to increase the CPU/ Main
Memory speeds disparity.
• The CM and MM are seen by the CPU as forming a single memory space, because
the operation of CM is totally transparent to the CPU.
•CPU communicates with I/O devices in much the same way as it communicates
with the Main Memory. The I/O devices are associated with addressable registers
called I/O PORTS. The CPU can store or extract a word from I/O PORTS (the
OUTPUT and INPUT operations).
• The programs executed by the CPU are divided into two broad groups: user
programs and supervisor programs.
• In a normal operation any CPU switches between user programs and supervisor
programs.
CPU = ALU + CU
• CPU must communicate with the other units of a digital computer: Memory Unit,
Input Units and Output Units. CPU is issuing addresses, data, control signals and is
receiving instructions, data, status signals, interrupt requests. This communication
is carried out through a System Bus.
• The System Bus is formed of several subbusses each with its particular tasks. Most
important are: Address Bus, Data Bus, Control Bus. Address Bus is unidirectional
emanating from the CPU and reaching the Memory Unit and Input / Output Units.
Data Bus is bidirectional carrying both instructions and data. Control Bus is a
mixed Bus containing the Control Lines, representing commands to different units
to perform actions, as well as Status lines, representing condition bits supplied by
the external units to CPU
To do these tasks, it should be clear that the CPU needs to store some data
temporarily. It must remember the location of the last instruction so that it can
know where to get the next instruction. It needs to store instructions and data
temporarily while an instruction is beign executed. In other words, the CPU needs a
small internal memory. These storage location are generally referred as registers.
The major components of the CPU are an arithmatic and logic unit (ALU)
and a control unit (CU). The ALU does the actual computation or processing of
The CPU is connected to the rest of the system through system bus. Through system
bus, data or information gets transferred between the CPU and the other
component of the system. The system bus may have three components:
Data Bus: Data bus is used to transfer the data between main memory and CPU.
Address Bus: Address bus is used to access a particular memory location by putting
the address of the memory location.
Control Bus: Control bus is used to provide the different control signal generated by
CPU to different part of the system. As for example, memory read is a signal
generated by CPU to indicate that a memory read operation has to be performed.
Through control bus this signal is transferred to memory module to indicate the
required operation.
There are three basic components of CPU: register bank, ALU and Control Unit.
There are several data movements between these units and for that an internal CPU
bus is used. Internal CPU bus is needed to transfer data between the various
registers and the ALU, because the ALU in fact operates only on data in the internal
CPU memory.
Logic Section
Function of logic section is to perform logic operations such as comparing, selecting,
matching, and merging of data.
Control Units.
CPU is partitioned into Arithmetic Logic Unit (ALU) and Control Unit (CU).
The function of control unit is to generate relevant timing and control signals
to all operations in the computer.
It controls the flow of data between the processor and memory and
peripherals
DISADVANTAGES
More is the control signals required by CPU; more complex will be the design of
control unit.
Modifications in control signal are very difficult. That means it requires
rearranging of wires in the hardware circuit.
It is difficult to correct mistake in original design or adding new feature in
existing design of control unit.
Data storage has expanded from text and numeric files to include digital
music files, photographic files, video files, and much more. These new types of files
require secondary storage devices with much greater capacity than floppy disks.
There are four type of storage:
Primary Storage
Secondary Storage
Tertiary Storage
Off-line Storage
Primary Storage
Also known as main memory.
Main memory is directly or indirectly connected to the central processing
unit via a memory bus.
The CPU continuously reads instructions stored there and executes them as
required.
• Example:
– RAM
– ROM
– Cache
Secondary Storage
It is not directly accessible by the CPU.
Computer usually uses its input/output channels to access secondary storage
and transfers the desired data using intermediate area in primary storage.
• Example:
– Hard disk
– Magnetic Tape
– Optical Disc
There are two kinds of computer memory: primary and secondary. Primary
memory is accessible directly by the processing unit. RAM is an example of primary
memory. As soon as the computer is switched off, the contents of the primary
memory is lost. You can store and retrieve data much faster with primary memory
compared to secondary memory. Secondary memory such as floppy disk, magnetic
disk, etc., is located outside the computer. Primary memory is more expensive than
secondary memory.
In computer's memory both programs and data are stored in the binary
form. You have already been introduced with decimal number system, that is the
numbers 1 to 9 and 0. The binary system has only two values 0 and 1. These are
called bits.
RAM
A RAM constitutes the internal memory of the CPU for storing data,
program and program result. It is read/write memory. It is called random access
memory (RAM).Since access time in RAM is independent of the address to the word
that is, each storage location inside the memory is as easy to reach as other location
& takes the same amount of time. We can reach into the memory at random &
extremely fast but can also be quite expensive.
RAM is volatile, i.e. data stored in it is lost when we switch off the computer
or if there is a power failure. Hence a backup uninterruptible power system(UPS) is
often used with computers. RAM is small , both in terms of its physical size and in
the amount of data it can hold.
Types of DRAM
Asynchronous DRAM
Fast Page Mode (FPM) DRAM or FPRAM
Extended Data Out (EDO) DRAM
Burst EDO (BEDO) DRAM
Synchronous Dynamic RAM (SDRAM)
Direct Rambus DRAM (DRDRAM)
Double Data Rate (DDR) SDRAM
ROM
EPROM
The EPROM can be erased by exposing it to ultra-violet light for a duration of upto
40 minutes. Usually, a EPROM eraser achieves this function. During programming
an electrical charge is trapped in an insulated gate region. The charge is retained for
more than ten years because the charge has no leakage path. For erasing this
charge, ultra-violet light is passed through a quartz crystal window(lid). This
exposure to ultra-violet light dissipates the charge..
EEPROM