Professional Documents
Culture Documents
Organization CH-4
Richard Gomez
6/14/01
Computer Science
3 Fundamental
Components of Computer
The CPU (ALU, Control Unit, Registers)
The Memory Subsystem (Stored Data)
The I/O subsystem (I/O devices)
CPU
Address Bus
Data Bus
Control Bus
I/O Device
Subsystem
Memory
Subsystem
Address Bus
Used to specify the address of the
memory location to access.
Each I/O devices has a unique address.
(monitor, mouse, cd-rom)
CPU reads data or instructions from other
locations by specifying the address of its
location.
CPU always outputs to the address bus
and never reads from it.
Data Bus
Actual data is transferred via the
data bus.
When the cpu sends an address to
memory, the memory will send
data via the data bus in return to
the cpu.
Control Bus
Collection of individual control signals.
Whether the cpu will read or write
data.
CPU is accessing memory or an I/O
device
Memory or I/O is ready to transfer
data
Instruction Cycles
Procedure the CPU goes through to
process an instruction.
1. Fetch - get instruction
2. Decode - interperate the
instruction
3. Execute - run the instruction.
Process of an Instruction
(Define fetch)
When CPU is ready the it will assert the
read control signal.
Depending on the CPU the read can be
active high (1) or low (0).
After being asserted the subsystem will
return the data through the data bus.
The CPU will then receive this data and
store into one of its registers
Process of an Instruction
(Define Decode)
Now the CPU will decode the
instruction.
The CPU will determine the sequences
of commands needed to perform.
Each instruction can require different
sequences of operations.
This is perform within the CPU with no
system buses.
Process of an Instruction
(Define Execute)
The CPU will now execute the
instruction.
This sequence will vary from
different instructions.
Read or write data to memory or
I/O subsystem.
Timing Diagram:
Memory Read
CLK
Bus
Bus
Read
Address
Data
Timing Diagram :
Memory Write
CPU places the Address and data on the first clock cycle.
At the start of the second clock the CPU will assert the
write control signal.
This will then start memory to store data.
After some time the write is then deasserted by the CPU
after removing the address and data from the
subsystem.
CLK
Address Bus
Data Bus
Read
Address
Data
CPU organization
CPU controls the Computer
The CPU will fetch, decode and
execute instructions.
The CPU has three internal
sections: register section, ALU and
Control Unit
Register Section
Includes collection of registers and a
bus.
Processors instruction set
architecture are found in this section.
Non accessible registers by the
programmer. These are to be used for
registers to latch the address being
accessed and a temp storage register.
Memory Subsystem
2 Types of Memory:
ROM : Read Only Memory
Masked ROM :
EEPROM :
Internal Memory
Organization
A2
A1
A0
CE
OE
0
1
2
Decoder 3
4
5
6
E
7
3-8
D0
Memory Subsystem
Memory subsystem is the
combination of memory chips
Example : 8 x 2 chips can be
combined to make an 8 x 4 memory.
Both chips will receive the same 3
address inputs from the bus, as well
as the CE and OE signals.
The data pins of the first chip are
connected to bits 3 and 2 and the
other to 1 an 0 of the data bus
Data Bus
Control Bus
Memory
Subsystem
I/O Device
They differ in how data is arranged
in memory.
Subsystem
The Neumann uses mixed memory module while
the Harvard uses separate memory modules for
data and instructions