Computer Architecture
Computer Architecture
Computer Architecture:
Computer Architecture deals with giving operational attributes of the computer or
Processor to be specific. It deals with details like physical memory, ISA (Instruction
Set Architecture) of the processor, the number of bits used to represent the data types,
Input Output mechanism and technique for addressing memories.
Computer Organization:
Computer Organization is realization of what is specified by the computer
architecture .It deals with how operational attributes are linked together to meet the
requirements specified by computer architecture. Some organizational attributes are
hardware details, control signals, peripherals.
Software Components of Computer System:
Software is program where different instructions are written. Software components of
computer system is classified by two software.
1) System software
2) Application software.
1) System software - is computer software designed to provide a platform to
other software.
2) Application software - A software which is developed to help the user to perform
specific tasks is called application software.
S/W Components
3) Compilers
4) Interpreters
5) Translators
6)Assembler
7) Linker
8) Loader
1|Page
Computer Architecture & Organization
GENERATIONS OF A COMPUTER
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. But nowadays, generation includes both hardware and
software, which together make up an entire computer system.
There are totally five computer generations known till date. Each generation has been
discussed in detail along with their time period and characteristics. Here approximate
dates against each generations have been mentioned which are normally accepted.
Following are the main five generations of computers
2|Page
Computer Architecture & Organization
The period of first generation was 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 were
prone to frequent fusing of the installations, therefore, were very expensive and could
be afforded only by very large organizations. In this generation mainly batch
processing operating system were used. Punched cards, paper tape, and magnetic tape
were used as input and output devices. The computers in this generation used
machine code as programming language.The main features of first generation are:
3|Page
Computer Architecture & Organization
Second generation
The period of second generation was 1959-1965. In this generation transistors were
used that were cheaper, consumed less power, more compact in size, more reliable
and faster than the first generation machines made of vacuum tubes. In this
generation, magnetic cores were used as primary memory and magnetic tape and
magnetic disks as secondary storage devices. 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 main features of second generation are:
Use of transistors
Reliable in comparison to first generation computers
Smaller size as compared to first generation computers
Generated less heat as compared to first generation computers
Consumed less electricity as compared to first generation computers
Faster than first generation computers
Still very costly
A.C. needed
Supported machine and assembly languages
The period of third generation was 1965-1971. The computers of third generation
used integrated circuits (IC's) in place of transistors. A single IC has many
transistors, resistors and capacitors along with the associated circuitry. 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
The main features of third generation are:
IC used
More reliable in comparison to previous two generations
Smaller size
Generated less heat
Faster
Lesser maintenance
Still costly
A.C needed
Consumed lesser electricity
Supported high-level language
Fourth generation
The period of fourth generation was 1971-1980. The computers of fourth generation
used Very Large Scale Integrated (VLSI) circuits. VLSI circuits having about 5000
transistors and other circuit elements and their associated circuits on a single chip
made it possible to have microcomputers of fourth 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
5|Page
Computer Architecture & Organization
Fifth generation
The period of fifth generation is 1980-till date. In the fifth generation, the VLSI
technology became ULSI (Ultra Large Scale Integration) technology, resulting in the
production of microprocessor chips having ten million electronic components. This
generation is based on parallel processing hardware and AI (Artificial Intelligence)
software. AI is an emerging branch in computer science, which interprets 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.
AI includes:
Robotics
Neural Networks
Game Playing
Development of expert systems to make decisions in real life situations
The main features of fifth generation are:
ULSI technology
Development of true artificial intelligence
Development of Natural language processing
Advancement in Parallel Processing
6|Page
Computer Architecture & Organization
7|Page
Computer Architecture & Organization
FUNCTIONAL UNITS
• A computer consists of 5 functionally independent main parts:
1) Input,
2) Memory,
3) Arithmetic & logic,
4) Output and
5) Control units.
1. Input Unit
• The computer accepts the information in the form of program & data through an
input device. Eg: keyboard
• Whenever a key is pressed, the corresponding letter/digit is automatically translated
into its corresponding binary-code and transmitted over a cable to either the memory
or the processor.
2. Memory Unit: Memory unit stores the program instructions (Code), data and
results of computations etc. Memory unit is classified as:
Primary/Main Memory
Secondary/Auxiliary Memory
Primary memory is a semiconductor memory that provides access at high speed. Run
time program instructions and operands are stored in the main memory. Main
memory is classified again as ROM and RAM. ROM holds system programs and
firmware routines such as BIOS, POST, I/O Drivers that are essential to manage the
hardware of a computer. RAM is termed as Read/Write memory or user memory that
holds run time program instruction and data. While primary storage is essential, it is
volatile in nature and expensive. Additional requirement of memory could be
supplied as auxiliary memory at cheaper cost. Secondary memories are non-volatile
in nature.
3. Arithmetic and Logic Unit: ALU consist of necessary logic circuits like adder,
comparator etc., to perform operations of addition, multiplication, comparison of two
numbers etc.
4. Control Unit: Control unit controls activities of all units by issuing control
signals.
8|Page
Computer Architecture & Organization
Control signals issued by control unit govern the data transfers and then appropriate
operations take place. Control unit interprets decides the operation/action to be
performed.
5. Output Unit: Computer after performing operation returns the results, error
messages, etc. through output unit. The standard output device is a video monitor,
LCD/TFT monitor.
Other output devices are printers, plotters etc.
Von-Neumann Model
Von-Neumann proposed his computer architecture design in 1945 which was later
known as Von-Neumann Architecture. It consisted of a Control Unit, Arithmetic, and
Logical Memory Unit (ALU), Registers and Inputs/Outputs.
9|Page
Computer Architecture & Organization
The part of the Computer that performs the bulk of data processing operations is called
the Central Processing Unit and is referred to as the CPU.
The Central Processing Unit can also be defined as an electric circuit responsible for
executing the instructions of a computer program.
The CPU performs a variety of functions dictated by the type of instructions that are
incorporated in the computer.
The major components of CPU are Arithmetic and Logic Unit (ALU), Control Unit
(CU) and a variety of registers.
The Arithmetic and Logic Unit (ALU) performs the required micro-operations for
executing the instructions. In simple words, ALU allows arithmetic (add, subtract, etc.)
and logic (AND, OR, NOT, etc.) operations to be carried out.
Control Unit
The Control Unit of a computer system controls the operations of components like
ALU, memory and input/output devices.
The Control Unit consists of a program counter that contains the address of the
instructions to be fetched and an instruction register into which instructions are fetched
from memory for execution.
Registers
Registers refer to high-speed storage areas in the CPU. The data processed by the CPU
are fetched from the registers.
Following is the list of registers that plays a crucial role in data processing.
Registers Description
MAR (Memory Address This register holds the memory location of the data
Register) that needs to be accessed.
10 | P a g e
Computer Architecture & Organization
MDR (Memory Data This register holds the data that is being transferred to
Register) or from memory.
CIR (Current Instruction This register contains the current instruction during
Register) processing.
Buses
Buses are the means by which information is shared between the registers in a multiple-
register configuration system.
A bus structure consists of a set of common lines, one for each bit of a register, through
which binary information is transferred one at a time. Control signals determine which
register is selected by the bus during each particular register transfer.
Von-Neumann Architecture comprised of three major bus systems for data transfer.
Bus Description
Address Address Bus carries the address of data (but not the data) between the
Bus processor and the memory.
Data Bus Data Bus carries data between the processor, the memory unit and the
input/output devices.
Memory Unit
A memory unit is a collection of storage cells together with associated circuits needed
to transfer information in and out of the storage. The memory stores binary information
11 | P a g e
Computer Architecture & Organization
in groups of bits called words. The internal structure of a memory unit is specified by
the number of words it contains and the number of bits in each word.
Harvard Architecture
Harvard Architecture is the digital computer architecture whose design is based on
the concept where there are separate storage and separate buses (signal path) for
instruction and data. It was basically developed to overcome the bottleneck of Von
Neumann Architecture.
Features
Separate memory spaces
Fixed instruction length
Parallel instruction and data access
More efficient memory usage
Suitable for embedded systems
Limited flexibility
12 | P a g e
Computer Architecture & Organization
Buses (Signal A single bus is used to transfer Separate buses are used to transfer
Paths) both instruction and data. data and instructions.
Number of Two clock cycles are needed to Only one cycle is required to
Cycles execute a single instruction. execute an instruction.
13 | P a g e
Computer Architecture & Organization
Access to CPU The CPU cannot read/write data The CPU can read/write data and
and access instructions access instructions simultaneously.
simultaneously.
Uses This architecture is used in small This architecture is ideal for signal
computers and personal processing and microcontrollers.
computers.
Interconnection Structure:
• Computer consist set of modules.
• There must be path for connecting this modules.
• The collection of paths connecting the various modules are called as
Interconnection Structure.
14 | P a g e
Computer Architecture & Organization
Interconnection Structure:
Memory
• Each narrow arrow represents a single signal line.
• The wide arrows represent multiple signal lines carrying multiple bits of
information in parallel.
• It consist of N words of equal length. Each word is assigned a unique
numerical address (0, 1, …, N-1).
• A word of data can be read from or written into the memory that is read and
write control signals.
15 | P a g e
Computer Architecture & Organization
16 | P a g e
Computer Architecture & Organization
Memory Read Sends the data from the addressed memory location to the data
bus.
17 | P a g e
Computer Architecture & Organization
I/O Read Sends data from the addressed I/O port to the data bus.
I/O Write Data from the data bus is sent to the designated I/O port.
Bus Request The activation of this control line signifies that the component
has signalled its desire to take control of the bus.
Bus Grant The activation of this control line signifies that the bus has been
allocated to the component that made the request.
Interrupt ACK When the pending interrupt is serviced, this control line
acknowledges it.
Reset This control line initializes all modules.
18 | P a g e
Computer Architecture & Organization
19 | P a g e