COA Mod1
COA Mod1
COA Mod1
with all aspects of the design and organization of the central processing unit and the
integration of the CPU into the computer system itself.
must cooperate with the operating system and system software. It is difficult to design
an operating system well without knowledge of the underlying architecture.
Computer Architecture:
Computer architecture is concerned with the structure and behavior of computer system
as seen by the user. It includes information, formats, instruction set and techniques
for addressing memory. It describes what the computer does.
FUNCTIONAL UNITS:
The computer system is divided into five separate units for its operation.
Input Unit.
ALU.
Control Unit.
Memory Unit.
Output Unit.
Computer output devices converts the electronic impulses [DAC] into human
readable form. Output unit sends processed results to the outside world. Examples:
Display screens, Printers, plotters, microfilms, synthesizers, high-tech blackboards,
film recorders, etc.
2.Memory Unit (MU)
A Memory Unit is a collection of storage cells together with associated circuits needed
to transfer information in and out of storage. Data storage is a common term for archiving
data or information in a storage medium for use by a computer. It’s one of the basic yet
fundamental functions performed by a computer. It’s like a hierarchy of comprehensive
storage solution for fast access to computer resources.
A computer stores data or information using several methods, which leads to different
levels of data storage. Primary storage is the most common form of data storage which
typically refers to the random access memory (RAM). It refers to the main storage of the
computer because it holds data and applications that are currently in use by the
computer. Then, there is secondary storage which refers to the external storage devices
and other external media such as hard drive and optical media.
Arithmetic Logical Unit performs the actual processing of data and instruction. The
major operations performed by the ALU are addition, subtraction, multiplication,
division, logic and comparison.
Data is transferred to ALU from storage unit when required. After processing, the
output is returned back to storage unit for further processing or getting stored.
4.Control Unit
Control unit controls and coordinates the entire operations of the computer system.
The control unit determines the sequence in which computer programs and
instructions are executed. Things like processing of programs stored in the main
memory, interpretation of the instructions and issuing of signals for other units of
the computer to execute them..Control Unit coordinates the activities of computer’s
peripheral equipment as they perform the input and output. Therefore it is the manager
of all operations.
The Arithmetic Logical Unit (ALU), Control Unit (CU) and Memory Unit (MU) of a
computer system are jointly known as the central processing unit. We may call CPU as
the brain of any computer system. It is just like a human brain that takes all major
decisions, makes all sorts of calculations and directs different part of the computer by
activating and controlling the operations.
Add R1, R2, R3: Adds the contents of registers R1 and R2, then stores their sum into
register R3.
Store R4, LOC: This instruction copies the operand in register R4 to memory
location
Add R1, R0: Add contents of R1, R0 and place the sum to R0.
Connection between the processor and memory
When I/O devices and the memory share the same address space, the arrangement is
called memory-mapped I/O. For example, if the input device is a keyboard and if
DATAIN is its data register and DATAOUT may be the data register of a display device
interface.
Load DATAIN , R2,: reads the data from DATAIN and stores them into processor
register R2
Store R2, DATAOUT: Sends the contents of register R2 to location DATAOUT.
Big-endian and little-endian
The term endianness describes the order in which computer memory stores a sequence
of bytes.
Big endian is an order in which the big end (MSB) is stored first.
Little endian is an order in which the little end ( LSB) is stored first
Big-endian Little-endian
• I/O transfers
INSTRUCTION NOTATIONS
The contents of any location are denoted by placing square brackets around
its name
R1 ← [LOC]
Thus, this expression means that the contents of memory location LOC are
transferred into processor register R1.
R3 ← [R1] + [R2]
Here the operation that adds the contents of registers R1 and R2, and places their
sum into register R3.
Move LOC, R1
This instruction causes the transfer of data from memory location
LOC to processor register R1
Add R1, R2, R3
add two numbers contained in processor registers R1 and R2 and
placing their sum in R3
Example: LOAD C
ADD B