02 Chapter03 Computer Architecture
02 Chapter03 Computer Architecture
• Transistor
– Electronic switch accommodates binary values
– Millions of transistors per chip
– Organized into a higher level called a circuit
Connecting with Computer Science 10
The CPU (continued)
• Four basic functions: Adding, Decoding, Shifting,
Storing
Von Neumann
Architecture
Designing Computers
• All computers more or less based on the same basic
design, the Von Neumann Architecture!
Processor (CPU)
Memory Input-Output
Control Unit
ALU
Store data and program Communicate with
"outside world", e.g.
• Screen
Execute program
• Keyboard
Do arithmetic/logic operations • Storage devices
requested by program • ...
Connecting with Computer Science 44
Memory Subsystem
• Memory, also called RAM (Random Access Memory),
– Consists of many memory cells (storage units) of a fixed size.
Each cell has an address associated with it: 0, 1, …
– All accesses to memory are to a specified address.
A cell is the minimum unit of access (fetch/store a complete cell).
– The time it takes to fetch/store a cell is the same for all cells.
• When the computer is running, both
– Program
– Data (variables)
are stored in the memory.
• Fetch(address)
MAR MDR – Load address into MAR.
F/S – Decode the address in MAR.
Memory – Copy the content of memory cell with
Fetch/Store
decoder specified address into MDR.
controller
circuit
• Store(address, value)
– Load the address into MAR.
– Load the value into MDR.
– Decode the address in MAR
... – Copy the content of MDR into
memory cell with the specified
address.
I/O controller
I/O Buffer
Control/Logic
I/O device
PC IR
+1
Instruction
Decoder
• Storage hierarchy
– Primary memory
– Non-volatile