Bus Architecture
Bus Architecture
Bus Architecture
)
• When you talk about the memory of a computer,
most often you’re talking about its RAM.
• If a program is stored in RAM, that means
that a sequence of instructions are stored in
consecutively addressed bytes in the RAM.
• Data values (variables) are stored anywhere in
RAM, not necessarily sequentially
• Both instructions and data are accessed from
RAM using addresses
• RAM is one (crucial) part of the computer’s
overall architecture
Computer Architecture
Bus
Hard
CD-ROM
RAM Disk
The Bus
• What is a bus?
• It is a simplified way for many devices to
communicate to each other.
• Looks like a “highway” for information.
• Actually, more like a “basket” that they all
share.
Bus
The Bus
Bus
Buses
6
What is a Bus?
7
Data Bus
Carries data
Remember that there is no difference between “data” and
“instruction” at this level
Width is a key determinant of performance
8, 16, 32, 64 bit
8
Address bus
9
The Control Unit
• Control Unit State Machine has very simple
structure:
• 1) Fetch: Ask the RAM for the
instruction
whose address is stored in IP.
• 2) Execute: There are only a small number
of possible instructions.
Depending on which it is, do
what is necessary to execute it.
• 3) Repeat: Add 1 to the address stored in
IP, and go back to Step 1 !
The Control Unit
• It all comes down to the Control Unit.
• This is just a State Machine.
Bus Interconnection Scheme
12
Inside the CPU
• The CPU is the brain of the computer.
• It is the part that actually executes
the instructions.