Unit 1 PDF
Unit 1 PDF
and Architecture
By
Smita Mande
Computer Architecture
• Refers to those attributes of a system ,visible to a programmer
• Example
Instruction set
No of bits used to represent diff data types(numbers, characters)
I/O mechanism
Techniques used for addressing memory
Computer Organization
• Refers to operational units and their interconnections
• Example
Hardware details transparent to programmer
Interface between computer and peripherals(devices connected to
computer)
Memory technology used
Difference between Computer Architecture and Computer Organization
SR.
Computer Architecture Computer Organization
No.
Data
Movement
Data Data
Storage Processing
Facility Facility
Structural Components
❖ CPU(Processor): Controls the operation of computer and performs its data
processing functions
❖ Main Memory: Stores data
❖ I/O: Moves data between computer and its external environment
❖ System interconnections: mechanism provided for communication among
CPU, main memory and I/O by means of system bus, which consist of
number of connecting wires to which all other components attach
Components of CPU
❖ Control unit: Controls the operation of the CPU
❖ Arithmetic and logic unit(ALU): performs computer’s data processing
functions
❖ Registers: Provides storage internals to the CPU
❖ CPU interconnection: mechanism provided for communication among
ALU, CU and registers
Hardware
Motherboard
Motherboard
Previous Motherboard
Input Devices
Input Devices
Memory Devices
Output Devices
Evolution of computers
• First Generation Computers (1940-1956)
• Second Generation Computers (1956-1963)
• Third Generation Computers (1964-1971)
• Fourth Generation Computers (1971-Present)
• Fifth Generation Computers (Present and Beyond)
First Generation Computers
(1940-1956)
Speed and size Very slow and very large in size (often taking up entire room).
Examples of the first generation IBM 650, IBM 701, ENIAC, UNIVAC1, etc.
Second Generation Computers
(1956-1963)
Smaller in size, low power consumption, and generated less heat (in
Power and size
comparison with the first generation computers).
PDP-8, IBM1400 series, IBM 7090 and 7094, UNIVAC 1107, CDC 3600
Examples of second generation
etc.
Third Generation Computers
(1964-1971)
Input/output devices pointing devices, optical scanning, keyboard, monitor, printer, etc.
Examples of fourth
IBM PC, STAR 1000, APPLE II, Apple Macintosh, Alter 8800, etc.
generation
Fifth Generation Computers (Present and
Beyond)
Based on artificial intelligence, uses the Ultra Large-Scale Integration (ULSI) technology and
Main electronic component parallel processing method (ULSI has millions of transistors on a single microchip and Parallel
processing method use two or more microprocessors to run tasks simultaneously).
Trackpad (or touchpad), touchscreen, pen, speech input (recognize voice/speech), light
Input / output device
scanner, printer, keyboard, monitor, mouse, etc.
Processor (CPU)
Memory Input-Output
Control Unit
ALU
Communicate with
Store data and program
"outside world", e.g.
• Screen
Execute program • Keyboard
• Storage devices
Do arithmetic/logic operations • ...
requested by program
von Neumann
Architecture
The Von Neumann Architecture
✔ Control Unit –
It directs all input and output flow, fetches code for instructions, and controls how data
moves around the system.
The arithmetic logic unit is that part of the CPU that handles all the calculations the CPU
may need, e.g. Addition, Subtraction, Comparisons.
2.Program Counter (PC): Keeps track of the memory location of the next instructions to be dealt with. The PC then
passes this next address to Memory Address Register (MAR).
3.Memory Address Register (MAR): It stores the memory locations of instructions that need to be fetched from memory
or stored into memory.
4.Memory Data Register (MDR): It stores instructions fetched from memory or any data that is to be transferred to, and
stored in, memory.
5.Current Instruction Register (CIR): It stores the most recently fetched instructions while it is waiting to be coded and
executed.
6.Instruction Buffer Register (IBR): The instruction that is not to be executed immediately is placed in the instruction
buffer register IBR.
The Von Neumann Architecture
✔ Input/Output Devices –
Program or data is read into main memory from the input device or secondary storage under the control of CPU input
instruction.
Output devices are used to output the information from a computer.
✔ Buses –
Data is transmitted from one part of a computer to another, connecting all major internal components to the CPU and
memory, by the means of Buses.
Types:
1. Data Bus: It carries data among the memory unit, the I/O devices, and the processor.
2. Address Bus: It carries the address of data (not the actual data) between memory and processor.
3. Control Bus: It carries control commands from the CPU (and status signals from other devices) in order to
control and coordinate all the activities within the computer.
IAS Memory Formats
The IAS machine was a binary computer with a 40-bit word, storing two 20-bit instructions in each word
Instruction execution cycle
Each instruction cycle includes the following procedures −
✔ After the above four procedures are done, the control switches back to the first
step and repeats the similar process for the next instruction.
✔ Therefore, the cycle continues until a Halt condition is met.
✔ The halt condition appears when the device receive turned off, on the circumstance
of unrecoverable errors, etc.
Instruction Pipeline
Evolution of Intel processor architecture- 4 bit
to 64 bit
Presentation by Students
Interconnection Structures
• A computer consists of a set of components (CPU,memory,I/O) that
communicate with each other.
• The collection of paths connecting the various modules is called as
interconnection structure.
• The design of this structure will depend on the exchange that must be
made between modules.
Computer
Modules
Type of transfers
• Memory to CPU
• CPU to Memory
• I/O to CPU
• CPU to I/O
• I/O to or from Memory (DMA)
Bus Interconnection
• A bus is a communication pathway connecting two or more device.
• A key characteristic of a bus is that it is a shared transmission
medium.
• In distributed arbitration, all devices participate in the selection of the next bus master.
• In this scheme each device on the bus is assigned a 4-bit identification number.
• The number of devices connected on the bus when one or more devices request for the
control of bus, they assert the start-arbitration signal and place their 4-bit ID numbers on
arbitration lines, ARB0 through ARB3.
• These four arbitration lines are all open-collector.
• Therefore, more than one device can place their 4-bit ID number to indicate that they need to
control of bus
Asynchronous and synchronous bus
❑ Asynchronous bus
• A bus that interconnects devices of a computer system where information transfers between devices
are self-timed rather than controlled by a synchronizing clock signal.
• A connected device indicates its readiness for a transfer by activating a request signal. For example,
communication via fax or voice mail are all forms of asynchronous communication.
• low speed buses are asynchronous.
❑ Synchronous bus
• A bus used to interconnect devices that comprise a computer system where the timing of
transactions between devices is under the control of a synchronizing clock signal.
• For example, a telephone conservation, a video conference and a chat room discussion are all forms
of synchronous communication.
• High speed buses are generally synchronous