Unit I-Basic Structure of A Computer: System
Unit I-Basic Structure of A Computer: System
SYSTEM
TOPICS TO BE COVERED
Functional Units – Basic Operational Concepts –
Performance – Instructions: Language of the
Computer – Operations, Operands – Instruction
representation – Logical operations – decision
making – MIPS Addressing.
8 Great Ideas in Computer Architecture.
The following are eight great ideas that computer architects have invented in the last
60 years of computer design.
7. Hierarchy of memories
As computer designs can take years, the resources available per chip can easily
double or quadruple between the start and finish of the project.
Computer architects must anticipate where the technology will be when the
design finishes rather than design for where it starts.
-Making the common case fast will tend to enhance performance better than
optimizing the rare case.
- It implies that you know what the common case is, which is only possible
with careful experimentation and measurement.
- Parallelism has been employed for many years, mainly in high performance
computing.
5. Performance via pipelining
--Without branch prediction, the processor would have to wait until the
conditional jump instruction has passed the execute stage before the
next instruction can enter the fetch stage in the pipeline.
7. Hierarchy of memories
--Architects have found that they can address these conflicting demands
with a hierarchy of memories, with the fastest, smallest, and most
expensive memory per bit at the top of the hierarchy and the slowest,
largest, and cheapest per bit at the bottom.
Memory Hierarchy.
Levels of Memory Hierarchy
Capacity Upper Level
Access Time
Cost faster
CPU Registers
100s Bytes Registers
1s ns
Instr. Operands
Cache
K Bytes Cache
4 ns
1-0.1 cents/bit
Blocks
Main Memory
M Bytes Memory
100ns- 300ns
$.0001-.00001 cents /bit
Disk Pages
G Bytes, 10 ms
(10,000,000 ns) Disk
-5 -6
10 - 10 cents/bit
Files
Tape Larger
infinite
sec-min Tape Lower Level
-8
10
8. Dependability via redundancy
-- Since any physical device can fail, we make systems dependable by including
redundant components that can take over when a failure occurs and to help detect
failures.
yield :The percentage of good dies from the total number of dies on
the wafer.
Bandwidth: The amount of data that can be carried from one point to
another in a given time period (usually a second). This kind of bandwidth is
usually expressed in bits (of data) per second (bps). Occasionally, it's
expressed as bytes per second (Bps).
clock cycles per instruction (CPI): Average number of clock cycles per
instruction for a program or program fragment.
Performance:
we can relate performance and execution time for a computer X:
Measuring Performance:
clock cycle: Also called tick, clock tick, clock period, clock, or cycle.
The time for one clock period, usually of the processor clock, which
runs at a constant rate.
Example:
RISC Instructions
p
add a, b, c # The sum of b and c is
Logical Operations
Although the first computers operated on full
words, it soon became clear that it was useful
to operate on fields of bits within a word or
even on individual bits.
Examining characters within a word, each
of which is stored as 8 bits, is one example
of such an operation.
It follows that operastions were added to
programming languages and instruction set
architectures to simplify, among other things,
the packing and unpacking of bits into words.
4.4. Logical Operations
(Contd..)
4.5. Control Operations
Program control instructions change or modify the
flow of a program.
The most basic kind of program control is
the unconditional branch or unconditional jump.
Branch is usually an indication of a short change
relative to the current program counter.
Jump is usually an indication of a change in program
counter that is not directly related to the current
program counter
Control transfer instructions
Unconditional branch
Conditional branch
Procedure call
Return
Addressing Modes: The method used to
identify the location of an operand.
The Following are the MIPS Addressing Modes.
1. Immediate addressing
2. Register addressing
3. Base or displacement addressing
4. PC-relative addressing
5. Pseudodirect addressing
Addressing Modes: Cont…..