COMPUTER ORGANIZATION AND ARCHITECTURE
Department of BCA
Loyola College of Arts and Science
Mettala
1
Unit-1
Introduction to Computer Organization and Architecture
Basic Computer Organization
Generic computer Organization
System bus
The system bus has three buses,
Address bus
The uppermost bus is the address bus. When the CPU reads data or instructions from or writes data to memory, it must specify the address of the memory location it wishes to access
Data bus
Data is transferred via the data bus. When CPU fetches data from memory it first outputs the memory address on to its address bus. Then memory outputs the data onto the data bus. Memory then reads and stores the data at the proper locations.
Control bus
Control bus carries the control signal. Control signal is the collection of individual control signals. These signals indicate whether data is to be read into or written out of theCPU.
Instruction cycle
The instruction cycle is the procedure a microprocessor goes through to process aninstruction.
It has three phases:
Instruction cycle
it has fetched.
Control signals
•
The READ signal is a signal on the control bus which
the microprocessor asserts when it is ready to read data from memory or I/O device.
WRITE
operation causes the memory to store the data
Timing diagrams
Memory read operation
address READ
clock cycle later, to allow for memory to decode the and access its data, the microprocessor asserts the control signal.
Memory write operation
WRITE control signal
the end of the second clock cycle.
CPUOrganization
Central processing unit (CPU) is the electronic circuitry within a computer that carries out the instructions of a computer program by performing the basic arithmetic, logical, control and input/ output (I/O) operations specified by the instructions.
CPUOrganization
connected with the help of the system bus.
components in acomputer system.
CPU Organization
CPUOrganization
registers
and a bus or other communication mechanism.
CPUOrganization
first bus.
the CPU reads
instruction code from the system data bus.
usually called
the
͞instruction register”.
CPUOrganization
and logic operations such as adding and ANDing values.
Memory Subsystem Organization
Memory chips Internal organization
Types of Memory
ROMChips
ROMChips
Masked ROM
chip is fabricated.
ďuƌŶiŶg
out the fuse at these locations using high current pulse.
are ďlowŶ, PROM’s
in PROM cannot restoreonce they
ĐaŶ oŶly ďe pƌogƌaŵŵed oŶĐe.
ROMChips
reprogrammable ROM is usua ly ca led
an erasable an EPROM.
in EPROM
is done by charging of capacitors. The charged and uncharged capacitors
cause each word of memory to store the correct value.
ROMChips
disadvantage of the EPROM is the chip
is physica ly removed from the circuit for reprogramming and that entire contents are erased by the UVlight.
voltages
are need for erasing, writing, reading and stored data
ROMChips
Flash Memory
Aspecial type of EEPROMis ca led a flash memory is electrically
erase data in blocks rather than individual locations.
It is well suited for the applications that writes blocks ofdata and can be used as a solid state hard disk. It is also used for data storage in digital computers.
Memory Subsystem Organization
C–hRipAsM:
stands for Random access memory. This often
referred to as read/write memory. Unlike the ROM it initially contains nodata.
Memory chips Internal organization
to represent valid data.
Memory chips Internal organization
Memory chips Internal organization
to represent valid data.
Memory subsystem configuration
Multi byte organization
Multi byte organization
I/O Subsystem Organization
The I/O subsystem is treated as an independent unit in the computer The CPUinitiates I/O commandsgenerica ly
Input Device
Input Device
8-bit address and
two control signals RDand I/O.
Output Device
▶ make sure that one device writes data to the bus at anytime.
🠜 Since the output devices read from the bus, rather that
▶ writes
▶ data to it, they don’tneed the buffers.
🠜 The data can be made available to all output devices but the
devices only contains the correct address will read it in
different than for
input
as a computer monitor is somewhat the input device.
Multi byte organization
Multi byte organization
Output Device
▶ make sure that one device writes data to the bus at anytime.
🠜 Since the output devices read from the bus, rather that
▶ writes
▶ data to it, they don’tneed the buffers.
🠜 The data can be made available to all output devices but the
devices only contains the correct address will read it in
different than for
input
as a computer monitor is somewhat the input device.
Output Device
An output device: (a) with its interface and (b) the enable logic for the registers
Output Device
Output Device
Figure 1.7: Abidirectional I/O device with its interface and enable/loadlogic
ASimple Computer- Levels of PL
are divided
into 3
ASimple Computer- Levels of PL
abstraction. Each processor has its own assembly language
ASimple Computer- Levels of PL
level of programming language
level languages. These languages values that cause the microprocessor
contain
to perform
is machin e the
operations. When microprocessor reads and executbesinaarny instruction it’s a machine language instruction. certain
ASimple Computer- Levels of PL
Figure 1.8: Levels ofprogramming languages