You are on page 1of 35

Data Representation

And Processing
LECTURE 4
y ’s
o d a e
T ctur
le

Lecture Outline
1. How computers represent data
2. How computers process data
3. Factors affecting processing speed
4. CPU architecture
5. Memory types
How computers
represent data
??
?
Bits and bytes
Binary digits---bits

A byte comprises of 8 bits


and represents 1 character
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
?
??
Central Processing Unit

CPU

Control Unit Arithmetic/


Logic Unit
(ALU)
directs and coordinates most
Control Unit of the computer operations

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
Arithmetic and Logic Unit
Comparison
(greater than, equal
to, or less than)

d .
. an
.or. .not.
Arithmetic Logical
(addition, subtraction, (AND, OR,
multiplication, and NOT)
division)
Arithmetic and Logic Unit
Performs the execution part of the machine cycle

d.
CPU
. an
Control Unit Arithmetic/
Logic Unit
.or. (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
volatile Memory
Loses its contents when the
nonvolatile
Loses its contents
computer's power is turned off memory
when the computer's
power is turned off Does not lose its
contents when the
computer’s power
is turned off
Memory
2 basic types of RAM chips
Dynamic RAM (DRAM) Static RAM (SRAM)
Also called main memory Used for special
Most common type applications such as
cache
Variations:
Faster and more
Synchronous DRAM reliable than DRAM
(SDRAM)
chips
Double data rate SDRAM
(DDR SDRAM or SDRAM II)
HOME TASK

READ about DDR1,


DDR2, DDR3 and
DDR4
Memory
3 basic types of memory modules
SIMM, DIMM, and RIMM

single inline Rambus®


memory inline memory
modules module (RIMM)
dual inline
(SIMMs)
memory
modules
(DIMMs)
DIMM
(Dual Inline Memory Module)
 This is the standard for SDRAM
 The 168-pin DIMM was very popular
for desktops
 144-pin SO-DIMMs (small outline) are
used in laptops
Memory Cache
Also called cache store or RAM cache

Limited very fast memory


Lower access time
Stores frequently used
instructions/ data to
speed up processing
The layman's
explanation : Levels of
cache
Three levels of Cache
Level 1 (L1) • Primary or internal cache
• Built directly into the processor chip
• Small capacity

Level 2 (L2) On older computers On newer computers


•Advanced transfer
External cache cache
High-speed SRAM
Larger, but • built directly on the
chips on motherboard
slower, capacity processor chip

Only on newer
• Not used on older computers with L2
Level 3 (L3) advanced transfer cache
computers
Cache on motherboard
Read Only Memory (ROM)
Fixed start-up instructions

BIOS
Read-only Non-volatile (basic input/output
system)
Stored on ROM
Types of ROM
Firmware
ROM chips
manufactured with PROM
permanently
(programmable EEPROM
written data,
read-only (electrically
instructions, or
memory) Blank erasable
information
ROM on which programmable read-
you can place only memory)
items A type of PROM
permanently containing
microcode that a
programmer can
erase
Factors Affecting
Processing Speed

System clock
Registers
Memory
Cache
Bus
System Clock
Synchronizes all computer operations

Faster clock speed means the CPU can


execute more instructions each second

Units: MHz and GHz


Memory

 Explanation on board
Cache

 Discussed earlier
CPU Registers
Temporary storage location used by the CPU

High speed memory in CPU that stores:


1. Instruction while being decoded
2. Location from where instruction
was fetched
3. Data while the ALU processes it
4. Results of a calculation
The BUS

A bus is a common electrical


pathway between multiple devices.
• Can be internal to the CPU to transport
data to and from the ALU.
– Data bus
– Address bus
– Control bus
• Can be external to the CPU, to connect
it to memory or to I/O devices.
What are the different
CPU Architectures??

?
Parallel Processing
Multiple processors
simultaneously execute a
program

Requires special
software to divide up a
problem and bring the
results back
RISC vs CISC Architecture

CISC
(complex instruction set
computing) RISC
 Supports a large
(reduced instruction
number of instructions set computing)
in complex command  Uses simple
commands that can
be executed within a
single clock cycle
Name common
microprocessors ?
??
Intel
AMD
Search Duron™
Now Motorola
AMD-K6 ®
Alpha
Athlon™ PowerPC
with 3DNow! Used in
Used in workstations

Apples and high-end
Whitehaven
Ryzen servers
Threadripper
Jaguar
series APUs
Used in PCs
Difference between a
microprocessor and
microcontroller ?
??
Microcontroller is a complete
microprocessor system (CPU, RAM,
ROM, I/O) on a chip
Microprocessor requires other devices

You might also like