Beruflich Dokumente
Kultur Dokumente
Organization CH-4
Richard Gomez
6/14/01
Computer Science
Address Bus
Data Bus Memory
CPU
Control Bus Subsystem
I/O Device
Subsystem
Each of these Components
are connected through
Buses.
■ BUS - Physically a set of wires. The
components of the Computer are
connected to these buses.
■ Address Bus
■ Data Bus
■ Control Bus
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
CLK
Bus Address
Bus Data
Read
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 Address
Read
I/O read and Write Cycles
■ The I/O read and Write cycles are similar to
the memory read and write.
■ Memory mapped I/O : Same sequences as
input output to read and write.
■ The processor treats an I/O port as a memory
location.
■ This results in the same treatment as a
memory access.
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.
■ Processor’s 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.
Arithmetic/Logic Unit
(ALU)
0 0
A2 3-8 0 1 1
1 2 2
A1
2 3 3
A0 Decoder 3 4 4
4 5 5
5 6 6
6 7 7
E 7
CE
OE D0
Internal Memory Cont.
■ This chip has 3 Address inputs
■ 2 data outputs
■ 16 bits of internal storage arranged as 8 2-bit
locations
■ The 3 address bits will be decoded to select one of
the 8 locations only if CE is active (1).
■ With both CE and OE enabled the buffers are
enabled and data is allowed to flow out.
Internal Memory Cont.
■ As the # of locations increases the
size of the address decoder needed
in linear organization becomes very
large.
■ To get around this problem we can
use multi-dimensions of decoding.
■ The size of an n to 2^n decoder is
said to be O(2^n)
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
Memory Subsystem Cont.
■ When the CPU reads data it places the
address on the address bus.
■ Both chips will read in bits A1, A2, and A0
and decode
■ Since both chips are using the same CE
and OE either both chips are active or
not.
■ To the CPU it will act just like an 8 x 4
memory chip.
Von Neumann and
Harvard architectures
■ Are similar in implementation using this diagram.
Address Bus
Data Bus Memory
CPU Subsystem
Control Bus