Unit-1 1
Unit-1 1
Memory
Arithmetic
Input
Instr1 & Logic
Instr2
Instr3
Data1
Output Data2 Control
I/O Processor
Stores
information: Control unit coordinates
Output unit sends various actions
•Instructions,
results of processing: •Input,
•To a monitor display, •Data
•Output
•To a printer •Processing
2
Information in a computer --
Instructions
Instructions specify commands to:
Transfer information within a computer (e.g., from memory
to ALU)
Transfer of information between the computer and I/O
devices (e.g., from keyboard to computer, or computer to
printer)
Perform arithmetic and logic operations (e.g., Add two
numbers, Perform a logical AND).
A sequence of instructions to perform a task is called a
program, which is stored in the memory.
Processor fetches instructions that make up a program
from the memory and performs the operations stated in
those instructions.
What do the instructions operate upon?
3
Information in a computer -- Data
Data are the “operands” upon which instructions
operate.
Data could be:
Numbers,
Encoded characters.
Data, in a broad sense means any digital information.
Computers use data that is encoded as a string of
binary digits called bits.
4
Input unit
Binary information must be presented to a computer in a specific format. This
task is performed by the input unit:
- Interfaces with input devices.
- Accepts binary information from the input devices.
- Presents this binary information in a format expected by the computer.
- Transfers this information to the memory or processor.
Real world Computer
Memory
Keyboard
Audio input
Input Unit
……
Processor
5
Memory unit
Memory unit stores instructions and data.
Recall, data is represented as a series of bits.
To store data, memory unit thus stores bits.
Processor reads instructions and reads/writes data
from/to the memory during the execution of a program.
In theory, instructions and data could be fetched one bit at
a time.
In practice, a group of bits is fetched at a time.
Group of bits stored or retrieved at a time is termed as
“word”
Number of bits in a word is termed as the “word length” of
a computer.
In order to read/write to and from memory, a processor
should know where to look:
“Address” is associated with each word location.
6
Memory unit (contd..)
Processor reads/writes to/from memory based on the
memory address:
Access any word location in a short and fixed amount of
time based on the address.
Random Access Memory (RAM) provides fixed access time
independent of the location of the word.
Access time is known as “Memory Access Time”.
7
Memory unit (contd..)
Primary storage of the computer consists of RAM units.
Fastest, smallest unit is Cache.
Slowest, largest unit is Main Memory.
9
Output unit
•Computers represent information in a specific binary form. Output units:
- Interface with output devices.
- Accept processed results provided by the computer in specific binary form.
- Convert the information in binary form to a form understood by an
output device.
Memory Printer
Graphics display
Speakers
……
Output Unit
Processor
10
Control unit
Operation of a computer can be summarized as:
Accepts information from the input units (Input unit).
Stores the information (Memory).
Processes the information (ALU).
Provides processed results through the output units
(Output unit).
Operations of Input unit, Memory, ALU and Output unit
are coordinated by Control unit.
Instructions control “what” operations take place (e.g.
data transfer, processing).
Control unit generates timing signals which determines
“when” a particular operation takes place.
11
How are the functional units
connected?
•For a computer to achieve its operation, the functional units need to
communicate with each other.
•In order to communicate, they need to be connected.
Bus
12
Organization of cache and main memory
Main Cache
memory memory Processor
Bus
13
Computer Components: Top-Level
View
Bus Structures
27
28
Odd Parity
29
30