Unit 1 Bca Coa
Unit 1 Bca Coa
Basic Computer Organization, Units of a computer, CPU, ALU, memory hierarchy, registers,
input-output devices
Basic Architecture of Computer
Over the several years the size, processing speed, cost and reliability of computers has changed. But,
the basic structure of computer is still the same as was given by Von Neumann in the year 1945 has
not changed. According to Von Neumann architecture of computer every digital
computer with these components:
1. Input Unit
2. Output Unit
3. Storage Unit
4. Arithmetic Logic Unit
5. Control Unit
Storage unit
Input Unit
Input unit connects the external environment with internal computer system. It provides data and
instructions to the computer system. Commonly used input devices are keyboard, mouse, magnetic
tape, scanner, webcam, joystick etc. Input unit performs following tasks:
Accept the data and instructions from the outside environment.
Convert it into machine language.
Supply the converted data to computer system.
Output Unit
It connects the internal system of a computer to the external environment. It provides the results of
any computation, or instructions to the outside world. Some output devices are printers, monitor,
plotter, speaker etc. Input Unit Secondary
Storage Unit
This unit holds the data and instructions. It also stores the intermediate results before these are sent to
the output devices. It also stores the data for later use. The storage unit of a computer system can be
divided into two categories:
Primary Storage: This memory is used to store the data which is being currently executed. It
is used for temporary storage of data. The data is lost, when the computer is switched off.
RAM and ROM are used as primary storage memory.
Secondary Storage: The secondary memory is slower and cheaper than primary memory. It
is used for permanent storage of data. Commonly used secondary memory devices are hard
disk, CD etc.
CPU (Central Processing Unit)
It is Central Processing Unit of the computer. The control unit and ALU are together known as CPU.
CPU is the brain of computer system. It performs following tasks:
It performs all operations.
It takes all decisions.
It controls all the units of computer
Arithmetic Logical Unit
All the calculations are performed in ALU of the computer system. The ALU can perform basic
operations such as addition, subtraction, division, multiplication etc. Whenever calculations are
required, the control unit transfers the data from storage unit to ALU. When the operations are done,
the result is transferred back to the storage unit.
Control Unit
It controls all other units of the computer. It controls the flow of data and instructions to and from the
storage unit to ALU. Thus it is also known as central nervous system of the computer.
Memory Units
Computer store data in binary format, binary format contain only two characters 0 and 1. All the
information stored/represented in the computer is a code which contain a specific combination of 0’s
and 1’s. The memory units are used to measure the size of ddata in computer. The memory units are as
follow.
1. Smallest Memory Unit – Bit ( Binary Digit)
2. Nibble – 4 bits
3. Byte or 1B- 8 Bites
4. Kilobyte or 1KB – 1024 bytes or 210 bytes
5. Megabyte or 1 MB – 1024 Kilobyte or 220 bytes
6. Gigabyte or 1 GB – 1024 MB or 230 bytes
7. Terabyte or 1 TB- 1024 GB or 240 bytes
8. Petabyte or 1 PB- 1024 TB or 250 bytes
9. Exabyte or 1 EB – 1024 PB or 260 bytes
10. Zetta or 1ZB – 1024 EB or 270 bytes
11. Yotta or 1 YB- 1024 ZB or 280 bytes
SRAM DRAM
These are used in cache memories. These are used in main memories.
Consumes less power and generates Uses more power and generates more
less heat. heat.
SRAMs has lower latency DRAM has more latency than SRAM
SRAMs are more resistant to radiation DRAMs are less resistant to radiation
than DRAM than SRAMs
SRAM has higher data transfer rate DRAM has lower data transfer rate
RAM is a volatile memory that could ROM is a non-volatile memory that the
Data-Retention store the data as long as the power is could retain the data even when the power
supplied. is turned off.
CPU CPU can easily access data stored in CPU cannot easily access data stored in
Interaction RAM. ROM.
Size and Large size with higher capacity, Small size with less capacity, concerning
Capacity concerning ROM. RAM.
Cost RAM is more costlier than ROM. ROM is cheaper than RAM.
A RAM chip can store only a few A ROM chip can store multiple megabytes
Chip Size
gigabytes (GB) of data. (MB) of data.
Used for the temporary storage of data Used to store firmware, BIOS, and other
Function
currently being processed by the CPU. data that needs to be retained.
The disk drive has an access arm assembly having read/write heads for each recordable surface of the
disk pack. All access arms of the assembly moves together, for fast data access the disk packs use the
concept of cylinder for data organization. A set of corresponding tracks on all recording surfaces of a
disk pack together form a cylinder.
Keyboard
The keyboard is the most frequent and widely used input device for entering data into a computer.
Although there are some additional keys for performing other operations, the keyboard layout is
similar to that of a typical typewriter.
Generally, keyboards come in two sizes: 84 keys or 101/102 keys but currently keyboards with 104
keys or 108 keys are also available for Windows and the Internet.
Keyboard
Types of Keys
Numeric Keys: It is used to enter numeric data or move the cursor. It usually consists of a set
of 17 keys.
Typing Keys: The letter keys (A-Z) and number keys (09) are among these keys.
Control Keys: These keys control the pointer and the screen. There are four directional arrow
keys on it. Home, End, Insert, Alternate(Alt), Delete, Control(Ctrl), etc., and Escape are all
control keys (Esc).
Special Keys: Enter, Shift, Caps Lock, NumLk, Tab, etc., and Print Screen are among the
special function keys on the keyboard.
Function Keys: The 12 keys from F1 to F12 are on the topmost row of the keyboard.
Mouse
The most common pointing device is the mouse. The mouse is used to move a little cursor across the
screen while clicking and dragging. The cursor will stop if you let go of the mouse. The computer is
dependent on you to move the mouse; it won’t move by itself. As a result, it’s an input device.
A mouse is an input device that lets you move the mouse on a flat surface to control the coordinates
and movement of the on-screen cursor/pointer. The left mouse button can be used to select or move
items, while the right mouse button when clicked displays extra menus.
Joystick
A joystick is a pointing device that is used to move the cursor on a computer screen. A spherical ball
is attached to both the bottom and top ends of the stick. In a socket, the lower spherical ball slides.
You can move the joystick in all four directions. The joystick’s function is comparable to that of a
mouse. It is primarily used in CAD (Computer-Aided Design) and playing video games on the
computer.
Joystick Mouse
Track Ball
Track Ball is an accessory for notebooks and laptops, which works on behalf of a mouse. It has a
similar structure to a mouse. Its structure is like a half-inserted ball and we use fingers for cursor
movement. Different shapes are used for this like balls, buttons, or squares.
Light Pen
A light pen is a type of pointing device that looks like a pen. It can be used to select a menu item or to
draw on the monitor screen. A photocell and an optical system are enclosed in a tiny tube. When the
tip of a light pen is moved across a monitor screen while the pen button is pushed, the photocell
sensor element identifies the screen location and provides a signal to the CPU.
Scanner
A scanner is an input device that functions similarly to a photocopier. It’s employed when there’s
information on paper that needs to be transferred to the computer’s hard disc for subsequent
manipulation. The scanner collects images from the source and converts them to a digital format that
may be saved on a disc. Before they are printed, these images can be modified.
Output Devices:-
Output Devices are the devices that show us the result after giving the input to a computer system.
Output can be of many different forms like image, graphic audio, video, etc. Some of the output
devices are described below.
Monitor
Monitors, also known as Visual Display Units (VDUs), are a computer’s primary output device. It
creates images by arranging small dots, known as pixels, in a rectangular pattern. The amount of
pixels determines the image’s sharpness. The two kinds of viewing screens used for monitors are
described below.
Cathode-Ray Tube (CRT) Monitor: Pixels are minuscule visual elements that make up
a CRT display. The higher the image quality or resolution, the smaller the pixels.
Flat-Panel Display Monitor: In comparison to the CRT, a flat-panel display is a type of
video display with less volume, weight, and power consumption. They can be hung on the
wall or worn on the wrist.
Flat-panel displays are currently used in calculators, video games, monitors, laptop computers, and
graphical displays.
Television
Television is one of the common output devices which is present in each and every house. It portrays
video and audio files on the screen as the user handles the television. Nowadays, we are using plasma
displays as compared to CRT screens which we used earlier.
Printer
Printers are output devices that allow you to print information on paper. There are certain types of
printers which are described below.
Impact Printers
Character Printers
Line Printers
Non-Impact Printers
Laser Printers
Inkjet Printers
Monitor Printer
Impact Printer
Characters are printed on the ribbon, which is subsequently crushed against the paper, in impact
printers. The following are the characteristics of impact printers:
Exceptionally low consumable cost.
Quite noisy
Because of its low cost, it is ideal for large-scale printing.
To create an image, there is physical contact with the paper.
Character Printers
Character Printer has the capability to print only one character at a time. It is of two types.
Dot Matrix Printer
Daisy Wheel
Line Printers
Line Printers are printers that have the capability to print one line at a time. It is of two types.
Drum Printer
Chain Printer
Non-Impact Printers
Characters are printed without the need for a ribbon in non-impact printers. Because these printers
print a full page at a time, they’re also known as Page Printers. The following are the characteristics
of non-impact printers:
Faster
They don’t make a lot of noise.
Excellent quality
Supports a variety of typefaces and character sizes
Laser Printers
Laser Printers use laser lights for producing dots which will produce characters on the page.
Inkjet Printers
Inkjet printers are printers that use spray technology for printing papers. High-quality papers are
produced in an Inkjet printer. They also do color printing.
Speakers
Speakers are devices that produce sound after getting a command from a computer. Nowadays,
speakers come with wireless technology also like Bluetooth speakers.
Projector
Projectors are optical devices that have the work to show visuals on both types of screens, stationary
and moving both. It helps in displaying images on a big screen. Projectors are generally used in
theatres, auditoriums, etc.
Plotter
Plotter is a device that helps in making graphics or other images to give a real view. A graphic card is
mandatorily required to use these devices. These are the pen-like devices that help in generating exact
designs on the computer.
Braille Reader
Braille Reader is a very important device that is used by blind users. It helps people with low vision or
no vision to recognize the data by running their fingers over the device to understand easily. It is a
very important device for blind persons as it gives them the comfort to understand the letters,
alphabets, etc which helps them in study.
Video Card
A video Card is a device that is fitted into the motherboard of the computer. It helps in improvising
digital content in output devices. It is an important tool that helps people in using multiple devices.
Global Positioning System (GPS)
Global Positioning System helps the user in terms of directions, as it uses satellite technology to track
the geometrical locations of the users. With continuous latitudinal and longitudinal calculations, GPS
gives accurate results. Nowadays, all smart devices have inbuilt GPS.
Headphones
Headphones are just like a speaker, which is generally used by a single person or it is a single-person
usable device and is not commonly used in large areas. These are also called headsets having a lower
sound frequency.
The Input and Output Devices of a Computer
There are so many devices that contain the characteristics of both input and output. They can perform
both operations as they receive data and provide results. Some of them are mentioned below.
USB Drive
USB Drive is one of the devices which perform both input and output operations as a USB Drive
helps in receiving data from a device and sending it to other devices.
Modem
Modems are one of the important devices that helps in transmitting data using telephonic lines.
CD and DVD
CD and DVD are the most common device that helps in saving data from one computer in a particular
format and send data to other devices which works as an input device to the computer.
Headset
The headset consists of a speaker and microphone where a speaker is an output device and a
microphone works as an input device.
Facsimile
A facsimile is a fax machine that consists of a scanner and printer, where the scanner works as an
input device and the printer works as an output device.
It takes the data from the user and sends it to the It takes the processed data from the processor and
processor for execution. sends it back to the user.
It helps the computer is accepting the data. It helps the computer is displaying the data.
The design of input devices are more complex. The design of output devices are less complex.
Number System
A number system relates quantities and symbols.In digital system how information is represented is
key
and there are different radices, i.e. number bases, that a numbering system can use.
1.1 Digital computer
Any class of devices capable of solving problems by processing information in discrete form.It
operates on data,including letters and symbols,that are expressed in binary form i.e using only two
digits 0 and 1.
The block diagram of digital computer is given below:
The memory unit stores programs as well as input, output and intermediate data. The processor unit
performs arithmetic and other data processing tasks as specified by the program. The control unit
supervises the flow of information between various units. The program and data prepared by the user
are transferred into the memory unit by means of an input device such as punch card reader (or) tele
typewriter. An output device, such as printer, receives the result of the computations and the printed
results are presented to the user.
(410)8
The octal number of (264)10 is (410)8
Convert ( 1A.2B)16 to ( )8
First convert hexadecimal to binary
The binary equivalent of 1A.2B is 00011010.00101011
Divide the binary into group of Three digits
011|010|.|001|010|110
32.126
so the equivalent octal number is 32.1268
4. COMPLEMENTS
In digital computers to simplify the subtraction operation and for logical manipulation complements
are used . There are two types of complements for each radix system the radix complement and
diminished radix complement. The first is referred to as the r’s complement and the second as the (r-
1)’s complement.
r’s Complement
Given a positive number N in base r with an integer part of n digits, the r’s complement of N is
defined as rn-N if N≠0 and 0 if N=0
(r-1)’s Complement
Given a positive number N in base r with an integer part of n digits and a fraction part of m
digits, the (r-1)’s complement of N is defined as rn-r-m-N
1+1 0 1
Illustration 1:
Add (1010)2 and (0011)2
1010 (Augend)
0011 (Addend)
-----------------------
1101 (sum)
-----------------------
The addition manipulated above as follows.
Step 1: The least significant bits are added, i.e. 0+1 =1 with a carry of 0
Step 2: The carry in the previous is added to the next higher significant bits, i.e. 0+1+1= 0 with a
carry 1.
Step 3: The carry in the previous is added to the next higher significant bits, i.e. 1+0+0 =1 with a
carry 0.
Step 4: The preceding carry is added to the most significant bit i.e. 0+1+0 = 1 with a carry 0. Thus the
sum is 1101.
BINARY SUBTRACTION
The binary subtraction table is as follows:
Illustration 1:
Subtract (0101)2 from (1011)2
1011 (Minuend)
0101 (Subtrahend)
---------------------------
0110 (Difference)
---------------------------
The steps are described below
Step1: the LSB in the first column are 1 and 1. Hence, the difference is 1 - 1 = 0
Step2: The column, the subtraction is performed as 1 – 0 = 1
Step3: In the third column, the difference is given by 0 – 1 =1
Step 4: In the fourth column (MSB), the difference is given by 0 – 0 = 0 since 1 is borrowed for third
column.