Professional Documents
Culture Documents
Week3 v2
Week3 v2
y
a
d ure
o
T e ct
l
Lecture Outline
1.
2.
3.
4.
w computers
present data
?
?
?
Text codes
Converts letters into binary format
Is there a need of a standard code
ASCII
(American English symbols)
Extended ASCII
(Graphics and other symbols)
Unicode
(All languages on the planet)
How computers
process data
?
??
entral Processing Un
CPU
Control Unit
Arithmetic/
Logic Unit
(ALU)
System Clock
Synchronizes all computer operations
CPU Registers
Temporary storage location used by the CPU
Control Unit
4 basic operations:
Fetch
obtain a
program instruction or
data item from memory
Decode - translate the
instruction into
commands
Execute - carry out the
command
Store - write the result to
memory
.
d
n
Arithmetic
(addition, subtraction,
multiplication, and
division)
.a
.or. .not.
Logical
(AND, OR,
NOT)
n
a
.
.
d
CPU
Control Unit
.or.
Arithmetic/
Logic Unit
(ALU)
.n o t
Machine Cycle
4 operations of the CPU (control unit)
comprise a machine cycle; also called an
instruction cycle
Instruction time time to fetch and decode
Execution time time to execute and store
e-time
i-time
Example
A student
Step
1: The
2:
3:
4:
enters
ALU
control
a
mathdecodes
control
unit
executes
results
problem
of
unit
the
the math
the
into
the memory
fetches
problem
math
problem
the math
ofare
and
the
computer
problem
sends
stored
itinto
from
memory
the ALU
memory
The result in
memory displays
on the screen of
the monitor
Memory
Volatile memory
Memory
volatile
Loses
its contents
when the
Loses
its contents
computer's power is turned off
nonvolatile
memory
Does not lose its
contents when the
computers power
is turned off
Memory
2 basic types of RAM chips
Dynamic RAM (DRAM)
Also called main memory
Most common type
Variations:
Synchronous DRAM
(SDRAM)
Double data rate SDRAM
(DDR SDRAM or SDRAM II)
Direct Rambus DRAM
(Direct RDRAM)
Memory
3 basic types of memory modules
SIMM, DIMM, and RIMM
single inline
memory
modules
(SIMMs)
dual inline
memory
modules
(DIMMs)
Rambus
inline memory
module (RIMM)
Memory Cache
Also called cache store or RAM cache
Three levels of
Cache
Level 1 (L1)
Level 2 (L2)
External cache
Larger, but
slower, capacity
Level 3 (L3)
On newer computers
Advanced transfer
cache
built directly on the
processor chip
Only on newer
computers with L2
advanced transfer cache
Cache on motherboard
Read-only
Non-volatile
BIOS
(basic input/output
system)
Stored on ROM
Types of ROM
Firmware
ROM chips
manufactured with
permanently
written data,
instructions, or
information
PROM
(programmable
read-only
memory) Blank
ROM on which
you can place
items
permanently
EEPROM
(electrically
erasable
programmable readonly memory)
A type of PROM
containing
microcode that a
programmer can
erase
Flash Memory
CMOS Memory
Flexible start-up
instructions
Complementary
metal-oxide
semiconductor
memory
Stores configuration
information about
the computer
Disk drives
Keyboard
Monitor
Time/ date
Uses a battery
to retain the
information
when the
computer is
turned off
??
RISC vs CISC
Architecture
CISC
(complex instruction set
computing)
Supports a large
number of instructions
CPU executes complex
instructions more
quickly
RISC
(reduced instruction
set computing)
Reduces instructions
to only those used
more frequently
CPU executes simple
instructions more
quickly
Parallel Processing
Multiple processors
simultaneously execute a
program
Requires special
software to divide up a
problem and bring the
results back
??
Clock Speed
MIPS
FLOPS
?
??
Registers
Cache Memory
System and I/O Bu
Computers Clock
?
??
Name common
microprocessors
Intel
Pentium
AMD
(Intelcompatible)
Motorola
Duron
PowerPC
Celeron
Xeon
Itanium
AMD-K6
Athlon
with 3DNow!
Used in
Apples
Used in PCs
Used in PCs
Pentium II
with
MMX
Alpha
Used in
workstations
and high-end
servers
Difference
between a
microprocessor
and
microcontroller
?
??
Microcontroller is a complete
microprocessor system (CPU,
RAM, ROM, I/O) on a chip
Microprocessor requires
other devices
Which
(microprocessor or
microcontroller)
are more common
?
??
Microcontrollers (embedded
systems) are much more
common
e
r
u
t
c
e
L
s ary
m
??
Questions/
? Confusions?
Credits/ Acknowledgement can
be found at the course
website:
http://tinyurl.com/5hb8pp