Computer Architecture and Organization - 1
Computer Architecture and Organization - 1
What is a computer?
Computer is an advanced electronic device that takes raw data as an input from the user and
processes it under the control of a set of instructions (called program), produces a result
(output), and saves it for future use.
Functionalities of a Computer:
There are three basic functionalities of a Computer System and they are
1. Input
2. Process
3. Output
But if we look at it in a very broad sense, any digital computer carries out the following five
Functions:
Automation:
• Computer is an automatic machine.
• Automation is the ability to perform a given task automatically. Once the computer receives a program i.e., the program
is stored in the computer memory, then the program and instruction can control the program execution without human
interaction.
Dependency
• It functions as per the user’s instruction, thus it is fully dependent on humans.
Environment
• The operating environment of the computer should be dust free and suitable.
No Feeling
• Computers have no feelings or emotions.
• It cannot make judgment based on feeling, taste, experience, and knowledge unlike humans.
Application of Computers in Various Fields
Business
Banking
Insurance
Education
Marketing:Advertising,Home Shopping
Communication:E-mail,Chatting,Usenet,FTP,Telnet,Video-conferencing.
1. Vacuum Tube: Vacuum tubes have the functionality of controlling the flow of electronics in a vacuum. Generally, it is used in switches,
amplifiers, radios, televisions, etc.
2. Transistor: A transistor helps in controlling the flow of electricity in devices, it works as an amplifier or a switch.
3. Integrated Circuit (IC): Integrated circuits are silicon chips that contain their circuit elements like transistors, resistors, etc.
4. Microprocessors: Microprocessors are the components that contain the CPU and its circuits and are present in the Integrated Circuit.
5. Central Processing Unit (CPU): The CPU is called the brain of the computer. CPU performs processing and operations work.
6. Magnetic Drum: Magnetic Drum is like a cylinder that stores data.
7. Magnetic Core: Magnetic cores are used to store information. These are arrays of small rings.
8. Machine Language: Machine Language is the language that a computer accepts (in the form of binary digits). It is also called low-
level programming language.
9. Memory: Memory is used to store data, information, and program in a computer.
10. Artificial Intelligence: Artificial Intelligence deals with creating intelligent machines and behaviors.
Generations of Computers
Generation in computer terminology is a change in technology a computer is/was being used. Initially, the
generation term was used to distinguish between varying hardware technologies. Nowadays, generation
includes both hardware and software, which together make up an entire computer system .
First Generation Computers
The period of first generation was from 1946-1959. The computers of first generation used vacuum tubes as the basic
components for memory and circuitry for CPU (Central Processing Unit). These tubes, like electric bulbs, produced a lot of
heat and the installations used to fuse frequently. Therefore, they were very expensive and only large organizations were
able to afford it.
In this generation, mainly batch processing operating system was used. Punch cards, paper tape, and magnetic tape was
used as input and output devices. The computers in this generation used machine code as the programming language
In this generation, assembly language and high-level programming languages like FORTRAN,
COBOL were used. The computers used batch processing and multiprogramming operating
System.
The IC was invented by Jack Kilby. This development made computers smaller in size, reliable, and efficient. In this
generation remote processing, time-sharing, multi-programming operating system were used. High-level languages
(FORTRAN-II TO IV, COBOL, PASCAL PL/1, BASIC, ALGOL-68 etc.) were used during this generation
•Fourth generation computers became more powerful, compact, reliable, and affordable. As a result, it gave rise to Personal
Computer (PC) revolution.
•In this generation, time sharing, real time networks, distributed operating system were used. All the high-level languages like C,
C++, DBASE etc., were used in this generation.
•This generation is based on parallel processing hardware and AI (Artificial Intelligence) software.
•AI is an emerging branch in computer science, which interprets the means and method of making
computers think like human beings.
•All the high-level languages like C and C++, Java, .Net etc., are used in this generation.
Types of Computer
DESKTOP COMPUTERs
● It has
○ Processing & Storage units(e.g. Hard disks, CD‐ROMs),
○ visual display &audio output units,
○ Input units ( keyboard, mouse, etc)
● It can be easily located on a home or office desk
● Used in homes, schools, business offices,…
NOTEBOOK COMPUTERs
25
Functional units of a computer
Input unit accepts Arithmetic and logic unit(ALU):
information: • Performs the desired
• Human operators, operations on the input
• Electromechanical devices (keyboard) information as determined
• Other computers by instructions in the memory
Memory
Arithmetic
Input & Logic
Instr1
Instr2
Instr3
Output Data1 Control
Data2
I/O Processor
Stores
information: Control unit coordinates
Output unit sends
• Instructions, various actions
results of processing:
• Data • Input,
• To a monitor display,
• Output
• To a printer
• Processing
26
In Computer Architecture, the General System Architecture is divided into two major classification units.
• Store Program Control Concept
• Flynn's Classification of Computers
Stored-Program Concept
The term Stored Program Control Concept refers to the storage of instructions in computer memory to enable it
to perform a variety of tasks in sequence or intermittently.
ENIAC (Electronic Numerical Integrator and Computer) was the first computing system designed in the early
1940s. It was based on Stored Program Concept in which machine use memory for processing data.
30
Flynn's Classification of Computers
M.J. Flynn proposed a classification for the organization of a computer system by the number of instructions and data items that are manipulated
simultaneously.
Parallel processing may occur in the instruction stream, in the data stream, or both.
four major groups that are:
• Single instruction stream, single data stream (SISD)
• Single instruction stream, multiple data stream (SIMD)
• Multiple instruction stream, single data stream (MISD)
• Multiple instruction stream, multiple data stream (MIMD)
MEMORY
A memory unit is the collection of storage units or devices together.
The memory unit stores the binary information in the form of bits.
• Volatile Memory: This loses its data, when power is switched off.
• Non-Volatile Memory: This is a permanent storage and does not lose any data when power is switched off
Memory
What does 10101010 mean?
Could be an instruction, a
natural number, a signed
integer, a character, part of an
image, …
Arithmetic/Logic Unit
Performs basic arithmetic operations such as addition and subtraction
Performs logical operations such as AND, OR, and NOT
Most modern ALUs have a small amount of special storage units called registers
that can be accessed faster than main memory
37
Computer Registers
● Registers are a type of computer memory used to quickly accept, store, and
transfer data and instructions that are being used immediately by the CPU.
● The registers used by the CPU are often termed as Processor registers.
● A processor register may hold an instruction, a storage address, or any data (such
as bit sequence or individual characters).
• Memory buffer register (MBR): Contains a word to be stored in memory or sent to the I/O
unit, or is used to receive a word from memory or from the I/O unit.
• Memory address register (MAR): Specifies the address in memory of the word to be
written from or read into the MBR
• Instruction buffer register (IBR): Employed to hold temporarily the right-hand instruction
from a word in memory
• Accumulator (AC) and multiplier quotient (MQ): Employed to hold temporarily operands
and results of ALU operations.
Structure of IAS Computer
Expanded Structure of IAS Computer
Input/Output Units
Input Unit
A device through which data and programs from
the outside world enter the computer system;
Can you name three?
Output unit
A device through which results stored in the
computer memory are made available outside the
42
computer system
Control Unit
Control unit
The organizing force in the computer
Instruction register (IR)
Contains the instruction that is being executed
Program counter (PC)
Contains the address of the next instruction to be
executed
Central Processing Unit (CPU)
ALU and the control unit called the Central Processing Unit,
or CPU
43
Flow of Information
Bus
In general: A communication system that transfers data between components inside a computer or between
computers; the medium (wires, optical fiber, etc.) and the protocols (rules for sharing the medium nicely)
“The” bus: Connects the CPU, main memory, I/O devices, and possibly other components (e.g. hard disk
drive)
44
What is an N-bit Processor?
It could mean any of these:
● N-bit general registers
● N-bit ALU
● N-bit addresses
● N-bit data bus
45
The Fetch-Execute Cycle
Fetch the next instruction
Decode the instruction
Get data if needed
Execute the instruction
46
The Fetch-Execute Cycle
47
RAM and ROM
48
Secondary Storage Devices
Why is it necessary to have secondary storage devices?
49
Magnetic Tape
Seek time
Time for read/write head to be over right track
Latency
Time for sector to be in position
Access time
Can you define it?
Transfer rate
Rate at which data moves from the disk to memory
52
Optical Disks
CD
A compact disk that uses a laser to read information stored optically on a plastic-coated disk;
data is evenly distributed around spiral track
CD-ROM read-only memory
CD-DA digital audio
CD-WORM write once, read many
RW or RAM both read from and written to
DVD
Digital Versatile Disk, used for storing audio and video
Blu-ray
Higher capacity DVD allowing higher resolution video, etc.
53
Flash Drives
Flash Memory
Nonvolatile
Can be erased and rewritten
Supports USB mass storage standard
54