������������ �Introduction:
Computer Organization and Architecture is used to design computer systems.
Computer Architecture is considered to be those attributes of a system that are visible to the user like addressing techniques, instruction sets, and bits used for data, and have a direct impact on the logic execution of a program.
Functional units of a computer
Input Unit:
Arithmetic and logic unit:
Memory Unit:
Memory unit stores the program instructions (Code), data and results of computations etc.
Memory unit is classified as:
Primary /Main Memory :
Classification of Primary Memory�
We can broadly classify Primary Memory into two parts:
Secondary /Auxiliary Memory:�
Examples of secondary storage:�
Cache Memory:
Control unit:
Output Unit �
Basic Operational Concepts�
ADD LOCA, R0
This instruction is an addition operation.
The following are the steps to execute the instruction:
Step 1: Fetch the instruction from main memory into the processor
Step 2: Fetch the operand at location LOCA from main memory into the processor
Step 3: Add the memory operand (i.e. fetched contents of LOCA) to the contents of register
R0
Step 4: Store the result (sum) in R0.
Load LOCA
R1 Add R1,R0
The steps to execute the instructions can be enumerated as below:
Step 1: Fetch the instruction from main memory into the processor
Step 2: Fetch the operand at location LOCA from main memory in to the processor Register R1
Step 3: Add the content of Register R1 and the contents of register R0
Step 4: Store the result (sum) in R0.
Connections between processor and memory:�
I/O Units�
Input Devices
Keyboard
Mouse�
Joystick
Track Ball�
Light Pen�
Scanner�
Optical Mark Reader (OMR)
Optical Character Reader (OCR)
Magnetic Ink Card Reader (MICR)
Bar Code Reader
Web Camera�
Digitizer
Digitizer is a device that is used to convert analog signals to digital signals. it converts signals into numeric values. An example of a Digitizer is Graphic Tablet, which is used to convert graphics to binary data.
Microphone
The microphone works as an input device that receives input voice signals and also has the responsibility of converting it also to digital form. It is a very common device that is present in every device which is related to music.
Output Devices
Monitor
Cathode-Ray Tube (CRT) Monitor:
Pixels are minuscule visual elements that make up a CRT display.
The higher the image quality or resolution, the smaller the pixels.
Flat-Panel Display Monitor:
In comparison to the CRT, a flat-panel display is a type of video display with less volume, weight, and power consumption.
�
Speakers
Projector
Plotter
Headphones
The Input and Output Devices of a Computer
USB Drive
Modem
CD and DVD
Headset
Facsimile
Memory: Instruction: Instruction Formats�
The most common fields are:
An instruction is of variable length depending upon the number of addresses it contains. Generally, CPU organization is of three types based on the number of address fields:
Single Accumulator organization�
General register organization:�
The instruction format in this type of computer needs three register address fields. Thus the instruction for an arithmetic addition may be written in an assembly language as
ADD R1, R2, R3
To denote the operation R1 ← R2 + R3. The number of address fields in the instruction can be reduced from three to two if the destination register is the same as one of the source registers. Thus the instruction
ADD R1, R2
Would denote the operation R1 ← R1 + R2.
Only register addresses for R1 and R2 need be specified in this instruction.
MOV R1, R2
Denotes the transfer R1 ← R2 (or R2 ← R1, depending on the particular computer). Thus transfer-type instructions need two address fields to specify the source and the destination.
Stack organization�
Three-Address Instructions�
The program in assembly language that evaluates
X = (A + B) ∗ (C + D)
ADD R1, A, B R1 ← M [A] + M [B]
ADD R2, C, D R2 ← M [C] + M [D]
MUL X, R1, R2 M [X] ← R1 ∗R2
Two-AddressInstructions:�
One-Address Instructions
Zero-Address Instructions �
RISC Instructions�
Addressing modes with numeric examples�
Format of Instruction
INSTRUCTION CYCLE AND PROGRAM COUNTER
PROGRAM CONTROL
Status bit conditions�conditional branch Instructions�Subroutine call and Return�Program Interrupt and types