Professional Documents
Culture Documents
Coa CT 1 QB
Coa CT 1 QB
VADAPALANI CAMPUS
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING
18CSC203J- COMPUTER ORGANIZATION AND ARCHITECTURE
QUESTION BANK
Unit – 1
4 Marks
1.Define computer.
A computer is an electronic device that manipulates information, or data. It has the ability to store, retrieve, and
process data. You may already know that you can use a computer to type documents, send email, play games, and browse
the Web.
The program counter points to the address of the instruction currently being executed or the next instruction to be executed
(depending on the processor), and is usually incremented after the execution of each instruction.
An instruction register contains the information relating to an instruction currently being decoded or executed. The register
contains an opcode and an operand. The opcode is the part which species the nature of the operation to be performed, and the
operand specifies the data which is going to undergo that operation.
1
All computers do not store the bytes that comprise a multi-byte value in the same order. Consider a 16-bit internet that
is made up of 2 bytes. Two ways to store this value −
• Little Endian − In this scheme, low-order byte is stored on the starting address (A) and high-order byte is stored on the
next address (A + 1).
• Big Endian − In this scheme, high-order byte is stored on the starting address (A) and low-order byte is stored on the
next address (A + 1).
To allow machines with different byte order conventions communicate with each other, the Internet protocols specify a
canonical byte order convention for data transmitted over the network. This is known as Network Byte Order.
By these definitions, a 32-bit data pattern, which is regarded as a 32-bit unsigned integer. The "high- Order" byte is the one
for the largest powers of 2: 231, ..., 224. The "low-order" byte is the one for the smallest powers of 2: 27, ..., 20.
Example
0x12674592 in 32-bit representation can be stored as −
2
4.List out the different types of computer.
Classes by purpose
• Microcomputers (personal computers)
• Minicomputers (mid-range computers)
• Mainframe computers.
• Supercomputers.
• Servers.
• Workstations.
• It is a dynamic network.
Multicomputer
• It is an interlinked multiple autonomous computer.
4
7.Define bus structure.
BUS structure : A group of lines that serves as a connecting path for several devices is called bus.In addition to
the lines that carry the data, the bus must have lines for address and control purposes.
In computer architecture, a bus is a subsystem that transfers data between computer components inside
a computer or between computers
A computer bus structure is provided which permits replacement of removable modules during operation of a
computer wherein means are provided to precharge signal output lines to within a predetermined range prior to the
usage of the signal output lines to carry signals, and further, wherein means are provided to minimize arcing to pins
designed to carry the power and signals of a connector. In a specific embodiment, pin length, i.e., separation between
male and female components of the connector, are subdivided into long pin length and short pin length. Ground
connections and power connections for each voltage level are assigned to the long pin lengths. Signal connections
and a second power connection for each voltage level is assigned to the short pin lengths.
A computer interprets a flag value in relative terms or based on the data structure presented during
processing, and uses the flag to mark a specific data structure. Thus, the flag value directly impacts the
processing outcome.
But only five flags are implemented in 8085. And they are:
Serial
No. 8085 microprocessor 8086 microprocessor
The memory capacity is 64 KB.Also 8085 Can Perform The memory capacity is 1 MB.Also 8086
Operation Upto 2^8 ie. 256 numbers. A number greater Can Perform Operation upto 2^16 ie.
3 than this is to taken multiple times in 8 bit data bus. 65,536 numbers.
8
Serial
No. 8085 microprocessor 8086 microprocessor
9
12 Marks
1.Explain about the functional units of computer along with neat diagram.
10
1. Input Unit: Its aim is to supply data (Alphanumeric, image , audio, video, etc.) to the computer for processing. The Input
devices are keyboard, mouse, scanner, mic, camera, etc
2. Central Processing Unit (CPU): It is the brain of the computer and consists of three components Arithmetic Logic
Unit(ALU): As the name implies it performs all calculations and comparison operations. Control Unit(CU): It controls overall
functions of a computer Registers: It stores the intermediate results temporarily.
3. Storage Unit(Memory Unit): A computer has huge storage capacity. It is used to store data and instructions before starts
the processing. Secondly it stores the intermediate results and thirdly it stores information(processed data), that is the final
results before send to the output unit(Visual Display Unit, Printer, etc)
Two Types of storage unit
(a) Primary Storage alias Main Memory: It is further be classified into Two- Random Access Memory(RAM) and Read Only
Memory(ROM). The one and only memory that the CPU can directly access is the main memory at a very high speed. It is
11
expensive hence storage capacity is less. RAM is volatile (when the power is switched off the content will be erased) in
nature but ROM is non volatile(lt is permanent)
(b) Secondary Storage alias Auxiliary Memory: Because of limited storage capacity of primary memory its need arises.
When a user saves a file, it will be stored in this memory hence it is permanent in nature and its capacity is huge. eg: Hard
Disc Drive(HDD), Compact Disc(CD), DVD, Pen Drive, Blu Ray Disc etc.
4. Output Unit: After processing the data we will get information as result, that will be given to the end user through the
output unit in a human readable form. Normally monitor and printer are used.
12
A stack-based computer does not use the address field in the instruction. To evaluate an expression first it is
converted to reverse Polish Notation i.e. Postfix Notation.
Expression: X = (A+B)*(C+D)
Postfixed : X = AB+CD+*
TOP means top of stack
M[X] is any memory location
13
PUSH A TOP = A
PUSH B TOP = B
PUSH C TOP = C
PUSH D TOP = D
LOAD A AC = M[A]
ADD B AC = AC + M[B]
14
STORE T M[T] = AC
LOAD C AC = M[C]
ADD D AC = AC + M[D]
MUL T AC = AC * M[T]
STORE X M[X] = AC
15
MOV R2, C R2 = C
ADD R2, D R2 = R2 + D
MUL R1, R2 R1 = R1 * R2
MOV X, R1 M[X] = R1
5..Define addressing modes and Explain about different types of addressing modes.
17
Addressing Modes
Addressing Modes
Immediate Addressing
• Operand is given explicitly in the instruction
• e.g. ADD 5
– Add 5 to contents of accumulator
– 5 is operand
• No memory reference to fetch data
• Fast
• Limited range
19
• MOV AL,25H ; Immediate addressing AL=25
• MOV AX,2345H ; AX=2345 AX=> AH=23 AL=45
Direct Addressing
• Address field contains address of operand
• Effective address (EA) = address field (A)
• e.g. ADD A
– Add contents of cell A to accumulator
– Look in memory at address A for operand
• Single memory reference to access data
• No additional calculations to work out effective address
• Limited address space
20
• MOV AL,DATA1 ; Direct Addressing AL=23
• MOV AX,DATA2 ; AX=1234
• MOV DATA3,AL ; DATA3=23
• MOV DATA4,AX ; DATA4=1234
21
22
Indirect Addressing
23
Register Direct Addressing
Eg:
25
ADD R will increment the value stored in
the accumulator by the content of register R.
AC ← AC + [R]
• This addressing mode is similar to direct addressing
mode.
• The only difference is address field of the instruction
refers to a CPU register instead of main memory.
26
27
Register Indirect Addressing
28
Indexed Addressing
Effective Address
= Content of Index Register +
Address part of the instruction
30
31
Relative Addressing
32
33
Auto increment mode
A special case of Register Indirect Addressing Mode where
Effective Address of the Operand
= Content of Register
34
35
Auto decrement mode
36
37
5.Explain in detail about the architechture of 8086 microprocessor a,ong with neat diagram.
6.Explain in detail about the pin diagram of 8086 microprocessor along with neat diagram.
7.Explain in detail about the ARM Processor .
ARM Ltd
39
• RISC is an abbreviation of Reduced
Instruction Set Computer.
• RISC processor has ‘instruction sets’ that are
simple and have simple ‘addressing modes’.
• A RISC style instruction engages “one word”
in memory.
• Execution of the RISC instructions are faster
and take one clock cycle per instruction.
• RISC architecture emphasizes on using the
registers rather than memory.
• The RISC instructions operate on the
operands present in processor’s registers.
• RISC is a type of microprocessor architecture
that utilizes a small, highly-optimized set of
instructions, rather than a more specialized
set of instructions often found in other types
of architectures.
ARM Processor Architecture
40
instruction set computer (RISC)
microcontroller.
• It was introduced by the Acron computer
organization in 1987.
• This ARM is a family of microcontroller
developed by makers like ST
Microelectronics, Motorola, and so on.
• The ARM architecture comes with totally
different versions like ARMv1, ARMv2, etc.,
and, each one has its own advantage and
disadvantages.
• The ARM cortex is a complicated
microcontroller within the ARM family that
has ARMv7 design.
• There are 3 subfamilies within the ARM
cortex family :
– ARM Cortex Ax-
series – ARM-
Cortex Rx-series
– ARM-Cortex Mx-
series
ARM Architecture
41
The ARM Architecture covers the below
mentioned components.
• Arithmetic Logic Unit
• Booth multiplier
• Barrel shifter
• Control unit
• Register file
The ARM processor conjointly has other
components like the Program status register,
42
which contains the processor flags (Z, S, V and
C).
The modes bits conjointly exist within the
program standing register, in addition to the
interrupt and quick interrupt disable bits.
Some registers are used like the instruction,
memory data read and write registers and
memory address register.
43