CA Material
CA Material
Unit I
2 - MARKS
Data transfer
Unconditional branch
Conditional branch
Arithmetic
Address modify
1. Fetch
2. Decode
3. Execute
4. Store
2. Write the steps for subtracting smaller number from larger number in 1’s
complement?
Determine the 1’s complement of smaller number.
Add the 1’s complement to the larger number.
Remove the carry and add it to the result.
This is called end- around carry.
3. Write the steps for subtracting larger number from smaller number in 1’s
complement?
Determine the 1’s complement of smaller number.
Add the 1’s complement to the larger number.
Answer is in 1’s complement form. To get the answer in true form take the
1’s complement and assign negative sign to the answer.
5. What is coprocessor?
Coprocessor is a separate instruction set processor. It has its own instruction set
supporting the special exponential and trignometric functions. The instructions and
registers of coprocessor are just extension of the CPU’s instruction set and registers.
6. Give an example for the worst case of Booth algorithm
010101010
+1 -1 +1 -1 +1 -1 +1 -1 +1
In the worst case each bit of the multiplier selects the summands. This results in more number of
summands.
8. What is pipelining?
Pipelining is a technique where multiple instruction are overlapped in execution
for increasing processor throughput.
9. What is throughput?
The maximum number of operations completed per second can be gives as 1/T.
UNIT-III
2- Marks
1.What are the two approaches used for generating the control signals in proper
sequence?
Hardwired control
Microprogrammed control.
UNIT –IV
2- MARKS
4. What is MMU?
MMU is the Memory Management Unit. It is a special memory control circuit
used for implementing the mapping of the virtual address space onto the physical
memory.
9. What are the two ways in which the system using cache can proceed for a write
operation?
Write through protocol technique.
Write-back or copy back protocol technique.
UNIT-V
2-Marks
5. What is DMA?
Transfer of a block of data directly between an external device and main
memory, without continuous intervention by the processor is called DMA.
UNIT –I
16 Marks
1. Explain the various addressing modes?
• Immediate Mode
• Index Mode
• Indirect Mode
• Direct Mode
• Register Mode
• Autoincrement/ Autodecrement Mode
Addressing Modes
The term addressing modes refers to the way in which the
operand of an instruction is specified. Information contained in the
instruction code is the value of the operand or the address of the
result/operand. Following are the main addressing modes that are
used on various platforms and architectures.
1) Immediate Mode
The operand is an immediate value is stored explicitly in the
instruction:
Example: SPIM ( opcode dest, source)
move R0,#200; // move immediate value 200 in register R0
2) Index Mode
3) Indirect Mode
NOTE:
5) Register Mode
Example (SPIM)
EX: MOV R1,R2.
No memory access is required for the operand specified in register
mode.
Fetch instruction
Decode instruction
Fetch operands
Execute instructions
Write result
Magnetic Tape
This is oldest, and originally the only, form of secondary storage.
It is still used, mostly for backup or archival storage, and for batch processing.
Data is stored on tracks on the tape - most tapes have9 tracks.
There are several varieties of magnetic tape:
- 14" reels of 1/2" wide tape (2400' long)
Bytes of data (i.e. 8 bits) are stored across the width of the tape.
The 9th bit is a parity bit. It helps to detect storage errors. Two types of parity can be
used.
With even parity, the parity bit is set so that the group of 9 bits has an even number of
`1' bits.
With odd parity, the parity bit is set so that the group of 9 bits has an odd number of
`1' bits.
Data is stored at different densities (e.g. 1600 and 6250 bpi, where ``bpi'' means ``bytes
per inch'').
It is very inexpensive
It can store large amounts of data
It is relatively robust
And the following disadvantages: 1. It only allows access to data sequentially and is
therefore very slow compared to other secondary storage technologies; 2. May need
manual intervention to mount/dismount.
Magnetic Disks
This is the most common form of secondary storage used today. Magnetic disks come in
two forms:
hard disks
floppy disks
Hard disks are (usually but not always) permanently mounted inside the computer. All
magnetic disks have a magnetizable iron oxide coating and read/write heads that can
Typically rotate at about 400 rpm, and only when access to them is needed (unlike hard disks which rotate
all the time the computer is on).
Like magnetic hard disks, floppy disks must also be formatted before they can be used.
Typical storage capacity: 1.4 Mb
Typical data access time: 200-400 msec.
move over the surface of the disk, which is spinning underneath it .The disk head works
in a similar way to the head in an audio tape recorder. The read/write head in a floppy
disk drive actually contacts the magnetic disk, but that in a hard disk ``flies'' a few
thousandths of an inch above it.
Optical Disks
Optical disks are becoming more common. They come in several varieties:
CD-ROM (Compact Disk Read Only Memory)
CD-R (Compact Disk Recordable)
CD-RW (compact Disk Re-Writable)
DVD (Digital Versatile/Video Disk)
DVD-R (Digital Versatile Disk Recodable)
DVD-RW (Digital Versatile Disk Re-Writable)
MO (magneto-optical).
CD-ROM
WORM
These are the optical version of magnetic hard disks - that is, data can be written to
them and erased from them.
Similar in storage capacity and access time to the other types of optical disks.
Data is written by heating a spot on the disk with a laser beam, in the presence of a
magnetic field, the direction of which determines whether a `0' or `1' is written.
Data is read by shining a lower power laser beam onto the disk spot (without the
magnetic field) and detecting the polarization of the light that is reflected.
3. What are the various types of cache mapping mechanism? Explain in detail.
DIRECT MAPPING
ASSOCIATIVE MAPPING
SET ASSOCIATIVE MAPPING
4. Discuss the virtual memory management technique in detail.
ADDRESS TRANSLATION
5. Explain about Optical Memories with neat diagram.
UNIT – V
SYNCHRONOUS BUS
ASYNCHRONOUS BUS
3. What is interrupt? Explain different types of interrupt in detail.
4. Explain in detailed about loosely and tightly coupled of multiprocessor?
5. What is operating system? Explain different types of operating system.
Types of OS: