Professional Documents
Culture Documents
Objectives: Naydin@yildiz - Edu.tr
Objectives: Naydin@yildiz - Edu.tr
Overview Overview
• There is no clear distinction between matters related to • At the most basic level, a computer is a device
computer organization and matters relevant to computer consisting of three pieces:
architecture. —A processor to interpret and execute programs
• Principle of Equivalence of Hardware and Software: —A memory to store both data and programs
—Anything that can be done with software can also be done —A mechanism for transferring data to and from
with hardware, and anything that can be done with the outside world.
hardware can also be done with software.*
1
An example system An example system
• Hertz = clock cycles per second (frequency) Measures of time and space:
— 1MHz = 1,000,000Hz
— Processor speeds are measured in MHz or GHz.
Milli (m) = 1 thousandth = 10 -3
• Byte = a unit of storage
— 1KB = 210 = 1024 Bytes Micro (µ) = 1 millionth = 10 -6
— 1MB = 220 = 1,048,576 Bytes Nano (n) = 1 billionth = 10 -9
— Main memory (RAM) is measured in MB Pico (p) = 1 trillionth = 10 -12
— Disk storage is measured in GB for small systems, Femto(f) = 1 quadrillionth = 10 -15
TB for large systems.
• Millisecond = 1 thousandth of a second • We note that cycle time is the reciprocal of clock
— Hard disk drive access times are often 10 to 20 frequency.
milliseconds. • A bus operating at 133MHz has a cycle time of 7.52
• Nanosecond = 1 billionth of a second nanoseconds:
— Main memory access times are often 50 to 70
nanoseconds.
• Micron (micrometer) = 1 millionth of a meter 133,000,000 cycles/second = 7.52ns/cycle
— Circuits on computer chips are measured in microns.
2
An example system An example system
The microprocessor is the “brain” of • Computers with large main memory capacity can run
the system. It executes program larger programs with greater speed than computers
instructions. This one is a Pentium III having small memories.
(Intel) running at 667MHz.
• RAM is an acronym for random access memory. Random
access means that memory contents can be accessed
directly if you know its location.
• Cache is a type of temporary memory that can be
accessed faster than RAM.
A system bus moves data within the
computer. The faster the bus the better.
This one runs at 133MHz.
… and two levels of cache memory, the level 1 (L1) This one can store 30GB. 7200 RPM is the rotational
cache is smaller and (probably) faster than the L2 cache. speed of the disk. Generally, the faster a disk rotates,
Note that these cache sizes are measured in KB. the faster it can deliver data to RAM. (There are many
other factors involved.)
3
An example system An example system
• There are many organizations that set computer • The Institute of Electrical and Electronic Engineers
hardware standards-- to include the interoperability of (IEEE)
computer components.
—Promotes the interests of the worldwide
• Throughout this book, and in your career, you will electrical engineering community.
encounter many of them. —Establishes standards for computer
• Some of the most important standards-setting groups components, data representation, and
are . . . signaling protocols, among many other things.
4
Standards Organizations Standards Organizations
• The International Telecommunications Union (ITU) • The International Organization for Standardization (ISO)
—Concerns itself with the interoperability of —Establishes worldwide standards for
telecommunications systems, including data everything from screw threads to
communications and telephony. photographic film.
• National groups establish standards within their respective —Is influential in formulating standards for
countries: computer hardware and software, including
—The American National Standards Institute their methods of manufacture.
(ANSI)
—The British Standards Institution (BSI)
Note: ISO is not an acronym. ISO comes from the Greek,
isos, meaning “equal.”
• To fully appreciate the computers of today, it is helpful to • Generation Zero: Mechanical Calculating Machines (1642 -
understand how things got the way they are. 1945)
• The evolution of computing machinery has taken place over —Calculating Clock - Wilhelm Schickard (1592 -
several centuries. 1635).
• In modern times computer evolution is usually classified into —Pascaline - Blaise Pascal (1623 - 1662).
four generations according to the salient technology of the —Difference Engine - Charles Babbage (1791 -
era. 1871), also designed but never built the Analytical
Engine.
—Punched card tabulating machines - Herman
Hollerith (1860 - 1929).
Hollerith cards were commonly used for
We note that many of the following dates are approximate. computer input well into the 1970s.
5
Historical Development Historical Development
• The First Generation: Vacuum Tube Computers (1945 - • The Second Generation: Transistorized Computers (1954
1953) —IBM 7094 (scientific)
- 1965)
and 1401 (business)
—Digital Equipment
Corporation (DEC) PDP-
—IBM 650 1
(1955) —Univac 1100
—Phased out —. . . and many others.
in 1969.
• The Third Generation: Integrated Circuit Computers (1965 • The Fourth Generation: VLSI Computers (1980 - ????)
- 1980)
6
Historical Development Architecture & Organization
• Architecture is those attributes visible to
• Rock’s Law the programmer
—In 2003, a chip plants under construction will —Instruction set, number of bits used for data
cost over $2.5 billion. representation, I/O mechanisms, addressing
techniques.
$2.5 billion is more than the gross domestic —e.g. Is there a multiply instruction?
product of some small countries, including
Belize, Bhutan, and the Republic of Sierra • Organization is how features are
Leone.
—For Moore’s Law to hold, Rock’s Law must fall,
implemented
or vice versa. But no one can say which will —Control signals, interfaces, memory
give out first. technology.
—e.g. Is there a hardware multiply unit or is it
done by repeated addition?
-- Instruction Set
-- Instruction Formats
-- Exceptional Conditions
7
The Instruction Set: a Critical Interface What is “Computer Architecture”?
Application
Operating
System
software
Compiler Firmware
Instruction Set
Architecture
Instr. Set Proc. I/O system
instruction set
Datapath & Control
Digital Design
hardware Circuit Design
Layout
Technology Programming
• Computers consist of many things besides chips.
Languages • Before a computer can do anything worthwhile, it must
also use software.
Applications
• Writing complex programs requires a “divide and
Computer conquer” approach, where each program module solves
Architecture
a smaller problem.
• Complex computer systems employ a similar technique
Operating through a series of virtual machine layers.
Systems
History
(A = F / M)
8
The Computer Level Hierarchy The Computer Level Hierarchy
9
Operations (a) Data movement Operations (b) Storage
Operation (d)
Operation (c) Processing from/to storage Processing from storage to I/O
Input Control
Output Unit
Communication
lines
10
Structure - The Control Unit Levels of Representation
High Level Language temp = v[k];
Program v[k] = v[k+1];
v[k+1] = temp;
Compiler
Control Unit lw $15, 0($2)
Assembly Language lw $16, 4($2)
Program sw $16, 0($2)
CPU sw $15, 4($2)
Sequencing
ALU Logic
Assembler
Control 0000 1001 1100 0110 1010 1111 0101 1000
Internal
Unit
Bus Machine Language 1010 1111 0101 1000 0000 1001 1100 0110
Control Unit
Program 1100 0110 1010 1111 0101 1000 0000 1001
Registers Registers and 0101 1000 0000 1001 1100 0110 1010 1111
Decoders
Machine Interpretation
11