5.CPU - Data Representation
5.CPU - Data Representation
Machine
Inside The Computer
4/13/2022
2
Processor
4/13/2022
3
Processor
• Computer uses two components : Memory, Processor .
4/13/2022
How many Transistors it has.
4/13/2022
• Term CPU (Central Processing Unit) refers Processor .
5
Processor
4/13/2022
Processors can be identified by two main parameters: how wide they are
and how fast they are. The speed of a processor is a fairly simple
concept.
6
Speed is counted in megahertz (MHz), which means millions of cycles
per second—and faster is better!
Processor : Performances of a Processor depends
• Number of registers : A special, high-speed storage area within
the CPU. The number of registers that a CPU has and the size of
each number of bits help determine the power and speed of a CPU.
4/13/2022
• Word size : Word size refers to the number of bits processed by a
computer's CPU at one time one time(these days, typically 32 bits or
64 bits).
4/13/2022
9
How Computers Represent Data
• A single cycle is the smallest element of time for the processor.
Every action requires at least one cycle and usually multiple cycles
4/13/2022
• Computer processing is performed by transistors, which are
switches with only two possible states: on and off.
4/13/2022
11
How Computers Represent Data
To convert data into strings of
numbers, computers use the binary
4/13/2022
number system.
4/13/2022
• Computers work with collections of bits, grouping them to
represent larger pieces of data, such as letters of the alphabet.
4/13/2022
• Usually, the defined bit length of a word is equivalent to the
width of the computer's data bus so that a word can be moved in a
single operation from storage to a processor register.
4/13/2022
15
How Computers Represent Data
• A text code is a system that uses binary numbers (1s and 0s) to
represent characters understood by humans (letters and numerals).
4/13/2022
• An early text code system, called EBCDIC uses eight bit codes,
but is used primarily in older mainframe systems.
4/13/2022
• ASCII-American Standard Code for Information Interchange
8 bits, 0-127 Character
• Extended ASCII
8 bits, 128-256 Character
• Unicode- Unicode World Wide Character Standard
32 bits, 4 Billion Character
17
Example of ASCII Text Code
4/13/2022
18