DDCO CO 01 Part 1
DDCO CO 01 Part 1
Computer Organization
BSC302
Pradeep H K
Dept. of ISE,
JNNCE, Shivamogga
Text Book
Module 3: Basic Structure of Computers: Functional Units ,Basic Operational Concepts, Bus structure, Performance Processor
Clock, Basic Performance Equation, Clock Rate, Performance Measurement. Machine Instructions and Programs: Memory
Location and Addresses, Memory Operations, Instruction and Instruction sequencing, Addressing Modes.
1.2, 1.3, 1.4, 1.6, 2.2, 2.3, 2.4, 2.5
Module 4: Input/output Organization: Accessing I/O Devices, Interrupts–Interrupt Hardware, Enabling and Disabling Interrupts,
Handling Multiple Devices, Direct Memory Access: Bus Arbitration, Speed, size and Cost of memory systems. Cache Memories–
Mapping Functions.
4.1, 4.2.1, 4.2.2, 4.2.3, 4.4, 5.4, 5.5.1
3
Contents
- Inside the Computer
- Communication with Other Computers
- Technologies for Building Processors and Memories
- Real Stuff : Manufacturing Pentium 4 Chips
- Basic Operational Concepts
Definition of a Computer
What is it?
Abacus
Pascal’s Mechanical Calculator
GENERATION 0 :
MECHANICAL COMPUTERS (1642-1945)
Leibniz Calculator
GENERATION 0 :
MECHANICAL COMPUTERS (1642-1945)
Programmable devices
Jacquard’s loom
GENERATION 0 :
MECHANICAL COMPUTERS (1642-1945)
Tsubame
Earth simulator
Param
Supercomputer
Param 8000(1991)
Embedded computer
A computer inside another device used for running one
predetermined application or collection of software
Handheld/Pocket PC PDA Tablet PC
Desktop Laptop
Workstation
Mainframe
Supercomputer
Computer Architecture Computer Organization
Concerned with the structure and behaviour of the Concerned with how the hardware components are
computer system as seen by the user. connected together to form a computer system.
Blueprint for design. It is decided after the architecture.
It Involves logical components such as Instruction It involves physical units such as circuit design,
Set, Addressing Modes etc. adders, signals, peripherals, etc.
Describes how a computer system is designed. Describes how a computer system works.
Deals with high-level design issues. Deals with low-level design issues
Defines the physical aspects of the computer
Logical aspects of a computer system.
system.
Functional behaviour of the computer system. Deals with the various structural relationships.
Advantages
- Communication
- Resource Sharing
- Nonlocal access
Technologies for Building processors and
Memories
Silicon – A natural element which is a semiconductor
Silicon ingot
Slicer
Blank wafers
Patterned wafers
Wafer tester
Dicer
Tested dies
Moore’s law in Microprocessors
1000
Transistors (MT) 10
P6
Pentium® proc
1 486
386
0.1 286
8085 8086
0.01 8080
8008
4004
0.001
1970 1980 1990 2000 2010
Year
Transistors on Lead Microprocessors double every 2 years
Courtesy, Intel
Metrics to evaluate a Computer
Metrics
Speed – delay, frequency
Power Dissipation
Energy to perform a function
Cost
Scalability
Reliability
Functional Units
Memory
Input ALU
Interconnecti
on Network
Control
Output Unit
Programs must reside in the memory during execution. Instructions and data
can be written into the memory or read out under the control of processor.
Memory in which any location can be reached in a short and fixed amount of
time after specifying its address is called random-access memory (RAM).
The time required to access one word in called Memory Access Time.
Memory which is only readable by the user and contents of which can’t be
altered is called read only memory (ROM)
Caches are the small fast RAM units, which exist between CPU and RAM
Arithmetic and Logic Unit (ALU)
Mostcomputer operations are executed in ALU of the
processor.
Load the operands into memory
Bring them to the processor
Perform operation in ALU
Store the result back to memory or retain in the processor.
Registers
Fast control of ALU
Control Unit
All computer operations are controlled by the control unit.
The timing signals that govern the I/O transfers are also generated by
the control unit.
Control unit is usually distributed throughout the machine instead of
standing alone.
Operations of a computer:
Accept information in the form of programs and data through an input unit and store it in
the memory
Fetch the information stored in the memory, under program control, into an ALU, where
the information is processed
Output the processed information through an output unit
Control all activities inside the machine through a control unit
Control Unit
FETCH-DECODE-EXECUTE
Load LOCA, R1
Add R1, R0
Memory
MAR MDR
Control
PC R
0
R
1
IR Processor
ALU
R
n- 1
n general purpose
registers
The operand is read from the memory into the MDR and then
from MDR to the ALU.
Thus, the execute cycle ends for the current instruction and the
PC is incremented to point to the next instruction for a new fetch
cycle.
Bus Structures
BUS – Group of lines (wires) that serves as a connecting
path for several devices
Single-bus structure
Data Bus : It is used for transmission of data. The number
of data lines correspond to the number of bits in a word.
Two-bus structure
Input Output Memory Processor
Single-bus structure
• Only two units can actively use the bus at any given time
• Devices connected to bus vary in speed
Advantages of Single-Bus Structure
Low Cost
Flexibility for attaching peripheral devices
Draw Back
Low operating speed
Found in small computers such as minicomputers and
microcomputers.
TWO – BUS STRUCTURE
I/O bus
Input
Processor
Memory
Output
The bus is said to perform two distinct functions by
connecting the I/O units with memory and processor unit
with memory. The processor interacts with the memory
through a memory bus and handles input/output functions
over I/O bus.
Main Cache
memory memory Processor
Bus
Processor Clock
Processor circuits are controlled by timing signal called
clock
Clock cycle – regular time interval
If P – length of one clock cycle effects processor
performance
Hertz (Hz) – cycles per second
500 millions cycles per second – 500 MHz
1250 millions cycles per second – 1.25 GHz
The System clock speed and instruction Cycle
Clock Rate
Increase clock rate
NxS
T =
R
• CA = 10 s
• CB = 15 s
= 20 x 109 cycles = ?? Hz
Determine the effective CPI, MIPS and execution time for the program
Solution -1
• To calculate
MIPS
b)Assume that there are 9000 instructions in the program that is getting
executed on C1 and C2. What will be the CPU program execution time on
each system C1 and C2 ?
c)For the two systems to have the fastest speed and at the same time
have equal speed, what would be the possible mixture of the instructions
that would be required in the program? WHY?