New 03B-Computer Organization and Data Storage
New 03B-Computer Organization and Data Storage
❑
Understand the role of each of three subsystems of a
computer
1.2
Objectives
❑ To list five different data types used in a computer.
❑
To describe how different data is stored inside the
computer as bit patterns.
❑
To describe how integers are stored in a computer using
unsigned format.
❑
To describe how integers are stored in a computer using
sign-and-magnitude format.
❑
To describe how integers are stored in two’s complement
format.
1.3
Objectives:
❑ To describe how real numbers are stored in a computer using
floating-point format.
1.10
Computer Hardware (subsystems)
Introduction
1.11
Computer Hardware (subsystems)
Introduction
Computer Hardware
The Motherboard
14
The CPU
15
The CPU
The central processing unit (CPU) performs operations
on data. In most architectures it has three parts: an
arithmetic logic unit (ALU), a control unit, and a set of
registers, fast storage locations.
1.16
The CPU
1.17
The CPU
19
The CPU
Processing Speed
20
Assignment
• Prepare a comparison table between all Intel processors starting from 8086
in 1978 up to the latest i9 of 2019
• Compare between the different generations of the ARM processors
Main Memory
• Main memory is the second major subsystem in a
computer.
• Memory consists of a collection of storage locations,
each with a unique identifier, called an address.
• Data is transferred to and from memory in groups of
bits called words.
• If the word is 8 bits, it is referred to as a byte.
1.22
Main Memory
23
Main Memory
Main Memory
1.24
Main Memory
Address Space
Memory units
1.25
Word Size and Cache Memory
• Word size: The amount of data that a CPU can manipulate at one
time
• Typically 32 or 64 bits
• Cache memory: Special group of very fast memory chips located
on or close to the CPU
• Level 1 is fastest, then Level 2, then Level 3
• More cache memory typically means faster processing
• Usually internal cache (built into the CPU)
• Often some cache dedicated to each core; may also have some shared
cache accessible by any core
26
Assignment
Main Hierarchy
1.28
Cache Memory
1.29
Input/output System
• The third major subsystem in a computer is the
collection of devices referred to as the input/output
(I/O) subsystem.
• This subsystem allows a computer to communicate
with the outside world, and to store programs and data
even when the power is off.
• Input/output devices can be divided into two broad
categories: non-storage and storage devices. 1.30
Input/output System
1.32
Subsystem Interconnection
1.33
Subsystem Interconnection
1.37
Data inside the computer
• All data types are transformed into a uniform representation when they are
stored in a computer and transformed back to their original form when they
are retrieved.
• The universal representation is called a bit pattern.
A bit pattern
Data inside the computer
Unsigned Representation
• An unsigned integer is an integer that can never be negative and can take
only zero or positive values.
• Applications of unsigned integers
• Counting
• Addressing
• Storing other data types such as text, images, audio and video.
Data inside the computer
STORING NUMBERS
• Signed Integers can be represented using
• Sign-and-magnitude representation
• Two’s complement representation
• Two’s complement representation is the standard representation for storing
integers in computers today.
Sign-and-magnitude representation
Data inside the computer
STORING NUMBERS
1.44
STORING TEXT
1.46
Data inside the computer
STORING TEXT
1.48
Data inside the computer
STORING IMAGES
An Audio Signal
1.50
Sampling An Audio
Data inside the computer
STORING VIDEO