Chapter 9
Computer Organization (old course)
TU BIM past exam questions
Past questions and answers
140 questions set from this chapter, 7 of them more than once; 6 are most repeated (set, or a close variant set, in 3 or more exams). Most repeated first.
- Most repeated · 3 of 16 exams
- 2014 AD Model · 4 marks
The 8-bit registers AR, BR, CR and DR initially have the following values: AR = 10001010, BR = 11100011, CR = 00001111, DR = 11111110. Determine the 8-bit values in each register after the execution of the following sequence of micro-operations.
\n\n
Similar questions: The 4-bit registers A,B,C and D initially (2015 AD) · The 8-bit register AR, BR, CR and (2016 AD)
Answer
Initial values: , , , .
1.
. The carry out is discarded, so .
2. (both happen in the same clock pulse)
3.
(that is, ).
Final values:
| Register | Value |
|---|---|
| AR | 01011111 |
| BR | 11100100 |
| CR | 00001110 |
| DR | 11111110 |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- Most repeated · 3 of 16 exams
- 2015 AD · 4 marks
The 4-bit registers A,B,C and D initially have the following values: A = 0010, B = 0111, C = 1000, D = 1111. Determine the 4-bit values in each register after the execution of the following sequence of micro-operations.
\n\n
Similar questions: The 8-bit registers AR, BR, CR and (2014 AD Model) · The 8-bit register AR, BR, CR and (2016 AD)
Answer
Initial: , , , .
- : , so .
- and occur in the same clock, using the old values:
- , truncated to 4 bits, (carry lost).
- : (10 - 7 = 3), so .
Final values:
| Register | Value |
|---|---|
| A | 0011 |
| B | 0111 |
| C | 1000 |
| D | 0000 |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- Most repeated · 3 of 16 exams
- 2016 AD · 1 mark
What is the register value of A after arithmetic right shift if A = 10011100?
Similar questions: What is the register value of A (2018 AD) · What is the value of register A (2019 AD)
Answer
An arithmetic right shift keeps the sign bit and shifts the other bits right.
after ashr .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- Most repeated · 3 of 16 exams
- 2016 AD · 4 marks
The 8-bit register AR, BR, CR and DR initially have following values: AR = 11110010, BR = 11111111, CR = 10111001, DR = 11101010. Determine the 8-bit value in each register after the execution of the following sequence of micro operations:
\n\n
Similar questions: The 8-bit registers AR, BR, CR and (2014 AD Model) · The 4-bit registers A,B,C and D initially (2015 AD)
Answer
Assume the micro operations on separate lines execute one after another, and that those on the same line execute simultaneously (in the same clock pulse, using the old register values). Carries out of bit 8 are discarded.
Initial values: AR = 11110010, BR = 11111111, CR = 10111001, DR = 11101010.
Step 1:
so AR = 11110001 (carry discarded).
Step 2:
Step 3:
Final values:
| Register | Value |
|---|---|
| AR | 11101100 |
| BR | 00000000 |
| CR | 11111011 |
| DR | 11101011 |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- Most repeated · 3 of 16 exams
- 2018 AD · 1 mark
What is the register value of A after arithmetic right shift if A = 11011101?
Similar questions: What is the register value of A (2016 AD) · What is the value of register A (2019 AD)
Answer
In an arithmetic right shift the sign bit is kept and copied into the next position, and the least significant bit is lost.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- Most repeated · 3 of 16 exams
- 2019 AD · 1 mark
What is the value of register A after performing arithmetic shift right if A=11101010?
Similar questions: What is the register value of A (2016 AD) · What is the register value of A (2018 AD)
Answer
Arithmetic shift right keeps the sign bit and shifts the other bits right by one.
The sign bit is replicated and the LSB is lost. (In decimal, .)
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- Asked 2 times
- 2012 AD · 1 mark
- 2021 AD · 10 marks
Differentiate between RISC and CISC.
Answer
| Basis | RISC | CISC |
|---|---|---|
| Full form | Reduced Instruction Set Computer | Complex Instruction Set Computer |
| Instruction set | Small, simple instructions | Large, complex instructions |
| Instruction length | Fixed | Variable |
| Execution time | Mostly one clock cycle per instruction | Several cycles, varying by instruction |
| Addressing modes | Few and simple | Many |
| Memory access | Only LOAD and STORE access memory | Many instructions can access memory directly |
| Registers | Large register file | Fewer registers |
| Control unit | Hardwired | Usually microprogrammed |
| Pipelining | Easy and efficient | Difficult |
| Code size | Larger programs (more instructions) | Smaller programs |
| Compiler | Complex, since the compiler does more work | Simple |
| Examples | ARM, MIPS, SPARC | Intel x86, VAX, IBM 370 |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- Asked 2 times
- 2014 AD · 1 mark
- 2019 AD · 1 mark
Define locality of reference.
Answer
Locality of reference is the tendency of a program to access, over a short time interval, only a small localized set of memory addresses repeatedly (temporal locality: recently used items are used again; spatial locality: nearby addresses are used soon). Cache memory exploits this property.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- Asked 2 times
- 2014 AD · 1 mark
- 2019 AD · 1 mark
What is associative memory?
Answer
Associative memory (content addressable memory, CAM) is a memory accessed by the content of the data rather than by an address. The search key is compared with all stored words simultaneously and the matching word(s) are returned, which makes searching very fast.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- Asked 2 times
- 2016 AD · 1 mark
- 2018 AD · 1 mark
What is the function of IOP?
Answer
The Input-Output Processor (IOP) is a processor with its own memory and instruction set that handles I/O transfers directly with memory (DMA) and communicates with peripherals. It relieves the CPU of I/O work, so the CPU is free for computation and the CPU and I/O devices work in parallel.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- Asked 2 times
- 2017 AD · 1 mark
- 2019 AD · 1 mark
Differentiate between address space and memory space.
Answer
| Address space | Memory space |
|---|---|
| The set of addresses generated by a program, called virtual or logical addresses. | The set of actual physical locations in main memory. |
| Defined by the number of address bits in the instruction. | Defined by the size of the physical main memory installed. |
| Can be larger than the memory space in virtual memory. | Usually smaller than the address space. |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- Asked 2 times
- 2017 AD · 1 mark
- 2019 AD · 1 mark
Write microinstruction format of basic computer.
Answer
The microinstruction of the basic computer is 20 bits long, with these fields:
| F1 | F2 | F3 | CD | BR | AD |
|---|---|---|---|---|---|
| 3 bits | 3 bits | 3 bits | 2 bits | 2 bits | 7 bits |
- F1, F2, F3: microoperation fields (each selects one of up to 7 microoperations).
- CD: condition field, which selects the status bit to be tested (U, I, S or Z).
- BR: branch field, which selects the type of branch (JMP, CALL, RET, MAP).
- AD: address field, which gives the branch address in the 128-word control memory.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- Asked 2 times
- 2017 AD · 1 mark
- 2019 AD · 1 mark
Define cache coherence.
Answer
Cache coherence is the requirement in a multiprocessor system that all the caches holding copies of the same memory block see the same (latest) value. When one processor changes its copy, the other copies and main memory must be updated or invalidated.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD Model · 4 marks
Multiply -47 and +102 using "Multiplication of signed magnitude data" algorithm.
Similar questions: Multiply (-37) x (+13) using "multiplication of (2017 AD)
Answer
Signs. Multiplicand has sign 1 and multiplier has sign 0, so the product sign is (negative).
Magnitudes (7 bits). , . and are cleared, and the sequence counter is .
At each step, if then . Then is shifted right and is decremented.
| Step | Operation | SC | ||||
|---|---|---|---|---|---|---|
| Initial | 0 | 0000000 | 1100110 | 7 | ||
| 1 | 0 | shift right | 0 | 0000000 | 0110011 | 6 |
| 2 | 1 | add , shift | 0 | 0010111 | 1011001 | 5 |
| 3 | 1 | add , shift | 0 | 0100011 | 0101100 | 4 |
| 4 | 0 | shift right | 0 | 0010001 | 1010110 | 3 |
| 5 | 0 | shift right | 0 | 0001000 | 1101011 | 2 |
| 6 | 1 | add , shift | 0 | 0011011 | 1110101 | 1 |
| 7 | 1 | add , shift | 0 | 0100101 | 0111010 | 0 |
The product magnitude is .
With the sign bit , the result is , which agrees with .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2016 AD · 4 marks
Perform the operation (-19) x (+21) by using signed magnitude multiplication algorithm.
Similar questions: Perform the operation (-19) x (121) by (2018 AD)
Answer
Setup. Magnitudes: (multiplicand B), (multiplier Q). Signs: , , so the product sign is (negative). Registers: A = 00000, E = 0, SC = 5.
At each step, if then ; then shift right E, A, Q together.
| Step | Q0 | Operation | E | A | Q |
|---|---|---|---|---|---|
| Initial | 0 | 00000 | 10101 | ||
| 1 | 1 | A = A + B | 0 | 10011 | 10101 |
| shift right | 0 | 01001 | 11010 | ||
| 2 | 0 | shift right | 0 | 00100 | 11101 |
| 3 | 1 | A = A + B | 0 | 10111 | 11101 |
| shift right | 0 | 01011 | 11110 | ||
| 4 | 0 | shift right | 0 | 00101 | 11111 |
| 5 | 1 | A = A + B | 0 | 11000 | 11111 |
| shift right | 0 | 01100 | 01111 |
The product magnitude is A Q = .
With the sign bit (1) attached, the result is .
Check: .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2017 AD · 1 mark
Why interrupt initiated I/O is better than programmed I/O techniques?
Similar questions: Why interrupt initiated I/O is better than (2019 AD)
Answer
In programmed I/O the CPU keeps polling the device status flag, which wastes CPU time while it waits. In interrupt-initiated I/O the device signals the CPU only when it is ready, so the CPU runs other programs meanwhile and the system's efficiency is much higher.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2017 AD · 4 marks
Multiply (-37) x (+13) using "multiplication of signed 2's complement data" algorithm.
Similar questions: Multiply -47 and +102 using "Multiplication of (2014 AD Model)
Answer
Use Booth's algorithm for signed 2's complement numbers, with 7 bits per operand (6 bits for 37 plus the sign).
(multiplicand),
(multiplier), , ,
Rule by : 10 gives , 01 gives , 00 or 11 gives no operation. Then arithmetic shift right AC, QR.
| Step | Operation | AC | QR | ||
|---|---|---|---|---|---|
| Initial | 0000000 | 0001101 | 0 | ||
| 1 | 10 | AC - BR | 0100101 | 0001101 | 0 |
| ashr | 0010010 | 1000110 | 1 | ||
| 2 | 01 | AC + BR | 1101101 | 1000110 | 1 |
| ashr | 1110110 | 1100011 | 0 | ||
| 3 | 10 | AC - BR | 0011011 | 1100011 | 0 |
| ashr | 0001101 | 1110001 | 1 | ||
| 4 | 11 | ashr | 0000110 | 1111000 | 1 |
| 5 | 01 | AC + BR | 1100001 | 1111000 | 1 |
| ashr | 1110000 | 1111100 | 0 | ||
| 6 | 00 | ashr | 1111000 | 0111110 | 0 |
| 7 | 00 | ashr | 1111100 | 0011111 | 0 |
The product is .
It is negative. Its magnitude is the 2's complement .
So .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2018 AD · 4 marks
Perform the operation (-19) x (121) by using signed magnitude multiplication algorithm.
Similar questions: Perform the operation (-19) x (+21) by (2016 AD)
Answer
Signs differ (one operand negative, one positive), so the product sign bit is (negative). Signed-magnitude multiplication multiplies only the magnitudes by shift-and-add.
- Multiplicand (magnitude), sign
- Multiplier (magnitude), sign (for )
- Sign of product:
Scan the multiplier bits from LSB to MSB: add the (shifted) multiplicand when the bit is 1, otherwise add nothing.
| Step | Multiplier bit | Action | Partial product |
|---|---|---|---|
| 1 | 1 | add | |
| 2 | 1 | add | |
| 3 | 0 | no add | |
| 4 | 0 | no add | |
| 5 | 1 | add |
Magnitude of product .
With the sign bit attached, the result is in signed-magnitude form, i.e. .
Check: , so .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2018 AD · 4 marks
Write a program to multiply two positive numbers by repeated addition method. For example, 5x4=5+5+5+5.
Similar questions: Write a program to multiply two positive (2019 AD)
Answer
Multiplication is done by adding the multiplicand to a running sum as many times as the value of the multiplier.
#include <stdio.h>
int main(void) {
int a, b, product = 0, i;
printf("Enter two positive numbers: ");
scanf("%d %d", &a, &b);
for (i = 1; i <= b; i++) {
product = product + a; /* a added b times */
}
printf("%d x %d = %d\n", a, b, product);
return 0;
}
For : the loop gives , , , , so .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2019 AD · 1 mark
Why interrupt initiated I/O is better than programmed I/O?
Similar questions: Why interrupt initiated I/O is better than (2017 AD)
Answer
In programmed I/O the CPU must keep polling the device status flag and wastes time waiting. In interrupt-initiated I/O the CPU carries on with useful work and the device interrupts it only when ready for a transfer, so CPU time is used efficiently and response to devices is faster.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2019 AD · 4 marks
Write a program to multiply two positive numbers by a repeated addition method and explain each statement.
Similar questions: Write a program to multiply two positive (2018 AD)
Answer
Multiplication by repeated addition: the multiplicand is added to the product as many times as the multiplier.
#include <stdio.h>
int main(void) {
int a, b, product = 0, i; /* a = multiplicand, b = multiplier */
printf("Enter two positive numbers: ");
scanf("%d %d", &a, &b); /* read both numbers */
for (i = 1; i <= b; i++) { /* repeat b times */
product = product + a; /* add a to the running sum */
}
printf("Product = %d\n", product);
return 0;
}
Explanation of statements
#include <stdio.h>includes the library for input/output.int a, b, product = 0, i;declares the operands, a loop counter, and the product initialised to 0 (the additive identity).scanf(...)reads the two numbers.for (i = 1; i <= b; i++)makes the loop run exactlybtimes.product = product + a;adds the multiplicand to the sum in every iteration.printf(...)prints the result.
Example: gives .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2019 AD · 4 marks
An instruction is stored at memory location 400 with its address field at location 401. The address field has value 500. A processor register R1 contains the number 250. Evaluate the effective address if the addressing mode of the instruction is: (a) Direct (b) Immediate (c) Register indirect (d) Index with R1 as index register
Similar questions: An instruction is stored at location 500 (2021 AD)
Answer
The address field is at location 401 and has value ; .
- (a) Direct: .
- (b) Immediate: the operand is the address field itself, so there is no effective address in memory; the operand is 500 and lies at location 401.
- (c) Register indirect: .
- (d) Index with R1: .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 AD · 10 marks
An instruction is stored at location 500 with its address field at location 501. The address field has value of 800. A processor register R1 contains the number 300. Evaluate the effective address if the addressing mode of the instruction is (a) Direct (b) Immediate (c) Relative (d) Register Indirect.
Similar questions: An instruction is stored at memory location (2019 AD)
Answer
The instruction is at 500 and its address field at 501, so after fetching the instruction . Address field , .
- (a) Direct: .
- (b) Immediate: the operand is the address field itself, so (the operand value is 800).
- (c) Relative: .
- (d) Register indirect: .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD Model · 1 mark
Is handshaking protocol better than strobe?
Answer
Yes. In strobe control, only one control line is used and the source (or destination) has no way to know whether the other side actually received (or supplied) the data. In handshaking, two control lines (e.g. data valid and data accepted) are used, so both units confirm each transfer. This makes handshaking more reliable and lets units of different speeds communicate correctly, although it needs an extra control line.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD Model · 1 mark
Define Gray Code.
Answer
Gray code is a binary code in which two successive values differ in only one bit. For example, the 2-bit sequence is 00, 01, 11, 10. It is used in shaft encoders and Karnaugh maps to avoid errors during transitions.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD Model · 1 mark
What is meant by structural hazard in pipelining?
Answer
A structural hazard occurs in a pipeline when two instructions need the same hardware resource (such as memory or the ALU) in the same clock cycle, so one of them must wait. It arises from insufficient hardware, e.g. a single memory used for both instruction fetch and data access.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD Model · 1 mark
How many flip flops are required to construct Data Register of Basic Computer?
Answer
16 flip-flops. The Data Register (DR) of the basic computer is a 16-bit register, and one flip-flop is needed for each bit.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD Model · 1 mark
Make distinction between multiport memory and cross bar switch.
Answer
Multiport memory: each memory module has several ports, one per processor, and the control, switching and priority logic is inside the memory module. It gives high transfer rate but needs expensive memory control logic and many cables; it suits small systems.
Crossbar switch: a matrix of switches between processors and memory modules, with the switching logic placed at the crosspoints outside the memory. Memory modules are simple, and several processors can access different modules at the same time, but the number of switches grows as , so the hardware becomes complex.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD Model · 1 mark
Define intra instruction level parallelism.
Answer
Intra-instruction level parallelism means exploiting parallelism inside the execution of a single instruction, by performing its different micro-operations or sub-steps (fetch, decode, operand access, execute) simultaneously on separate hardware units or in overlapping stages, as in pipelining.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD Model · 1 mark
Why is I/O interface required?
Answer
An I/O interface is required because peripherals differ from the CPU in speed, data format, word length and signal levels. The interface converts data formats and signal levels, synchronises the timing of the slow device with the fast CPU, provides buffering and status information, and selects the device through address decoding and control signals.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD Model · 1 mark
What is three state gate?
Answer
A three-state (tri-state) gate is a digital circuit whose output can be in logic 0, logic 1, or a high-impedance (Hi-Z) state, which acts as an open circuit. An enable input controls it: when enabled it behaves as a normal buffer, otherwise the output is disconnected. It lets many devices share a common bus.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD Model · 1 mark
Differentiate between assembly language and machine language.
Answer
| Basis | Assembly language | Machine language |
|---|---|---|
| Form | Uses mnemonics such as ADD, MOV | Uses binary 0s and 1s |
| Readability | Easier for humans to read and write | Very difficult for humans |
| Translation | Needs an assembler to convert to machine code | Directly executed by the CPU |
| Debugging | Easier | Hard and error-prone |
| Portability | Specific to a processor family, but easier to modify | Specific to a particular CPU |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD Model · 1 mark
Why memory hierarchy is maintained in computer system?
Answer
No single memory is at once very fast, very large and cheap, so a hierarchy (registers, cache, main memory, secondary storage) is maintained to get speed close to the fastest level and capacity and cost close to the slowest level. Programs show locality of reference, so most accesses are served by the small fast levels and only a few go to the slow, large ones.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD Model · 4 marks
Write a program to multiply two positive numbers by a repeated addition method. For example, to multiply 7 x 3, the program evaluates the product by adding 7 three times.
Answer
The program uses basic computer assembly language. The multiplier is stored as a negative count in Y, so ISZ can count it up to zero. It adds X to the product P once per pass.
ORG 100
LOP, LDA P / AC <- P
ADD X / AC <- P + X
STA P / P <- P + X
ISZ Y / Y <- Y + 1, skip if Y = 0
BUN LOP / repeat while Y != 0
HLT
X, DEC 7 / multiplicand
Y, DEC -3 / -(multiplier), counts the additions
P, DEC 0 / product, initially 0
For , the loop runs three times and becomes . The result is stored in memory.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD Model · 4 marks
Write a program to input and pack two characters.
Answer
Two 8-bit characters are read from the keyboard. The first is shifted left by 8 positions, and the second is added into the low byte. This gives one 16-bit word.
ORG 100
CLA
CLE
FST, SKI / wait for the first character
BUN FST
INP / AC(0-7) <- INPR
STA CHR
CLE
LP, LDA CHR
CIL / rotate left through E
STA CHR
ISZ CTR / repeat 8 times
BUN LP
SND, SKI / wait for the second character
BUN SND
CLA
INP / AC(0-7) <- second character
ADD CHR / AC <- char2 + (char1 << 8)
STA PCK / packed word
HLT
CTR, DEC -8
CHR, HEX 0
PCK, HEX 0
E is 0 and the high bits of the character are 0, so 8 left rotations move the first character cleanly into bits 8-15. After ADD, the packed word PCK holds char1 in the high byte and char2 in the low byte.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD Model · 4 marks
Calculate cache hit ratio and cache miss ratio if the content is found 85 times out of 120 times in cache memory.
Answer
Total accesses , hits , misses .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD Model · 5 marks
Why is IOP required? What influences the design of instruction format? Explain.
Answer
Why an IOP is required.
- In programmed and interrupt-driven I/O, the CPU spends much of its time transferring data and checking device status. This wastes processor time.
- An Input-Output Processor (IOP) is a separate processor with its own instruction set that handles I/O. It supports DMA, fetches I/O programs (channel programs) from memory, and transfers blocks of data between devices and memory.
- The CPU only starts an I/O program and is interrupted when it ends. Meanwhile it runs other work, so CPU and I/O overlap and throughput rises.
- The IOP also converts data formats, detects errors and controls many slow and fast devices of different types.
What influences the design of instruction format.
An instruction format is the layout of bits in an instruction: opcode, addressing mode and operand fields. Its design depends on:
- Number of instructions (operations). More operations need a longer opcode field.
- Number of addressing modes. A mode field is needed and the address fields change.
- Number of operands (address fields). Three-, two-, one- or zero-address formats, as in stack machines, affect program length and speed.
- Number of registers. More registers need more bits in the register field.
- Memory size and address range. Bigger memories need longer address fields.
- Word length, and fixed or variable length instructions. Fixed length is simple to decode, while variable length saves space.
- Ease of decoding and hardware cost. The control unit complexity, and compatibility with older machines, also matter.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD Model · 5 marks
Does pipelining always give the better performance? Support your answer with example.
Answer
No. Pipelining gives the ideal speedup of about (the number of stages) only when the pipeline is kept full and the stages are balanced. It can give little or no gain, or even a loss, in these cases:
- Few tasks. The speedup is . For a single task () with stages and , the time is , so there is no gain. Extra latch (register) delay makes it slightly slower.
- Hazards. Structural, data and control hazards cause stalls and flushes. For example, with and 20% branch instructions that each cost 3 stall cycles, the average CPI is . The speedup is only instead of 5.
- Unbalanced stages. The clock period is set by the slowest stage. If one stage takes 10 ns and the others 4 ns, every stage must run at 10 ns.
- Pipeline register overhead adds to every stage.
Hence pipelining improves throughput for long, regular instruction streams, but it does not always give better performance.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2012 AD · 1 mark
How do you detect overflow while adding 2's complement data?
Answer
Overflow occurs when two numbers of the same sign are added and the result has the opposite sign. In hardware it is detected by : the carry into the sign bit is XORed with the carry out of the sign bit. If they differ, overflow has occurred.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2012 AD · 1 mark
Define operating system
Answer
An operating system is system software that manages the hardware resources (CPU, memory, I/O devices and files). It provides a user interface and an environment in which application programs can run.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2012 AD · 1 mark
Define cross bar switch.
Answer
A crossbar switch is an interconnection network with a matrix of crosspoint switches that connect each processor to each memory module. Any processor can be connected to any free memory module, and several non-conflicting transfers can take place at the same time.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2012 AD · 1 mark
What is the use of daisy chaining?
Answer
Daisy chaining connects the interrupting devices in a serial chain, with the highest-priority device first. The interrupt acknowledge signal passes along the chain, so the highest-priority requesting device gets service first. It is a hardware method to decide priority among devices on a common interrupt line.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2012 AD · 1 mark
Convert the 5 bit opcode to 9 bit microinstruction address using mapping procedure that provides eight consecutive microinstructions for each routine.
Answer
Eight consecutive microinstructions per routine need 3 low-order bits for the position within the routine. The 5 opcode bits go in front of these, and the leftmost bit of the 9-bit address is 0:
For example, opcode 10110 maps to 010110000. Routines start at address 0, 8, 16 and so on, which allows 32 routines of 8 microinstructions each.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2012 AD · 1 mark
What is the use of Control Address Register (CAR)?
Answer
The Control Address Register (CAR) holds the address of the next microinstruction to be read from the control memory. It is incremented, loaded with a branch address, or loaded by the mapping logic, so it sequences the microprogram.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2012 AD · 1 mark
When can you say that set of instructions are complete?
Answer
A set of instructions is complete when it can be used to evaluate any computable function. In practice it needs instructions for arithmetic and logic, data transfer (load/store), program control (branch, jump, call) and input/output, so that any program can be written with it.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2012 AD · 1 mark
Define bootstrap loader.
Answer
A bootstrap loader is a small program kept in ROM that runs when the computer is switched on. It loads the operating system from secondary storage into main memory and starts it.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2012 AD · 1 mark
In which address mode, content of the program counter is added to the address part of the instruction in order to obtain the effective address?
Answer
Relative address mode. The effective address is .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2012 AD · 3 marks
Define micro-program control unit. What is the advantage of using floating point representation?
Answer
Microprogrammed control unit. It is a control unit whose control signals are generated by a stored program of microinstructions held in a control memory (ROM). Each machine instruction is executed as a sequence of microinstructions, called a microprogram. A control address register (CAR), the control data register and sequencing logic select the next microinstruction.
Advantage of floating point representation. It can represent a much wider range of numbers, very large and very small, with a given number of bits. It does this by storing a mantissa and an exponent, so the position of the radix point is not fixed. It also keeps good precision for scientific computation.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2012 AD · 3 marks
What is meant by pipelining? List the different conflicts that will arise in pipelining.
Answer
Pipelining. It is a technique of decomposing a sequential process into sub-operations (segments), each executed in a dedicated segment, so that several tasks or instructions overlap in execution. While one instruction is in one segment, other instructions are in other segments. This raises throughput.
Conflicts (hazards) in pipelining.
- Resource (structural) conflicts. Two segments need the same resource, such as memory, at the same time.
- Data dependency (data hazards). An instruction needs a result that a previous instruction has not yet produced.
- Branch difficulties (control hazards). Branch and interrupt instructions change the program counter, so the instructions already fetched must be discarded.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2012 AD · 3 marks
Discuss instruction cycle of basic computer
Answer
The instruction cycle of the basic computer is repeated for every instruction. It has these phases:
- Fetch the instruction from memory.
- Decode the opcode.
- Read the effective address from memory if the instruction has an indirect address.
- Execute the instruction.
After execution, the cycle returns to step 1 for the next instruction, unless a HLT is executed.
Fetch and decode (timing signals , , ), when (no interrupt):
Indirect address. For a memory-reference instruction with , at : . With , nothing is done at .
Execute. For memory-reference instructions this takes place from onwards, for example for ADD: and . Register-reference () and I/O-reference () instructions execute at .
At the end of execution the sequence counter is cleared () and the next cycle starts. If an interrupt is pending (), the interrupt cycle runs instead.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2012 AD · 3 marks
Differentiate between strobe and handshaking
Answer
| Basis | Strobe | Handshaking |
|---|---|---|
| Control signals | One control line, the strobe | Two control lines (request and acknowledge/ready) |
| Initiated by | Either source or destination | Source and destination both take part |
| Confirmation | The source does not know whether the data was received, or the destination whether valid data is on the bus | Each unit knows the other's state, since the signals are acknowledged |
| Reliability | Less reliable | More reliable |
| Speed differences | Not handled well | Handled well, because a slow device can delay the transfer |
| Hardware | Simple | Somewhat more complex |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2012 AD · 3 marks
Design MOD 4 UP/DOWN synchronous counter
Answer
A MOD-4 up/down counter counts 00, 01, 10, 11 and back to 00 when the control input (up). It counts 00, 11, 10, 01 and back to 00 when (down). It uses two T flip-flops, and , driven by a common clock.
State table
| Present | Next | |||
|---|---|---|---|---|
| 0 | 00 | 01 | 0 | 1 |
| 0 | 01 | 10 | 1 | 1 |
| 0 | 10 | 11 | 0 | 1 |
| 0 | 11 | 00 | 1 | 1 |
| 1 | 00 | 11 | 1 | 1 |
| 1 | 01 | 00 | 0 | 1 |
| 1 | 10 | 01 | 1 | 1 |
| 1 | 11 | 10 | 0 | 1 |
Flip-flop input equations
Circuit. The flip-flop has and toggles at every clock pulse. The flip-flop receives from an XOR gate with inputs and . All clock pins are connected together, so it is synchronous. When , and the counter counts up. When , and it counts down.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2012 AD · 5 marks
Define cache coherence. Explain cache mapping techniques.
Answer
Cache coherence. In a multiprocessor system each processor has its own cache, so the same memory block may be held in several caches. If one processor modifies its copy, the other caches and main memory hold stale values. Cache coherence is the requirement that all copies of shared data stay consistent. It is maintained by write-through or write-invalidate/update (snooping) protocols, directory-based schemes, or by not caching shared writable data.
Cache mapping techniques. Mapping decides where a main memory block may be placed in the cache.
- Associative mapping. Any block can go in any cache line. The cache stores both the address and the data, and the CPU address is compared with all stored addresses at once. It is the most flexible and has the fewest conflicts, but needs costly associative (content-addressable) memory.
- Direct mapping. The address is split into tag and index. A block can go in only one line, given by . It is cheap and simple, but blocks that map to the same line conflict and can cause thrashing.
- Set-associative mapping. The cache is divided into sets of lines (k-way). A block maps to one set, given by , and can be in any line within that set. The tags in the set are compared. It is a compromise: the hit ratio is higher than direct mapping, with less hardware than fully associative mapping.
On a miss, a replacement algorithm (FIFO, LRU or random) chooses which block is replaced, in associative and set-associative caches.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2012 AD · 5 marks
a. Calculate pipeline speed up if time taken to complete a task in conventional machine is 25ns. In pipelined machine, one task is divided into 5 segments and each sub-operation takes 4ns. Number of task to be completed is 100.
b. Why addressing modes are used? Write addressing modes available.
Answer
a. Non-pipelined time for tasks: ns.
Pipelined time with segments and ns: ns.
b. Why addressing modes are used.
- They give programmers flexibility such as pointers, loop counters, indexing of arrays and relocation of programs.
- They reduce the number of bits in the address field and the number of instructions in a program.
Addressing modes available:
- Implied mode: the operand is implied by the opcode, as with the accumulator.
- Immediate mode: the operand is in the instruction itself.
- Register mode: the operand is in a CPU register.
- Register indirect mode: the register holds the address of the operand.
- Autoincrement or autodecrement mode: register indirect, with the register incremented or decremented.
- Direct address mode: the address field gives the operand's address.
- Indirect address mode: the address field gives the location that holds the operand's address.
- Relative address mode: .
- Indexed addressing mode: .
- Base register addressing mode: .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2012 AD · 5 marks
Explain the hardware implementation of addition / subtraction operation for signed 2's complement data. Perform the multiplication of -23 x 9 using sign magnitude data.
Answer
(a) Hardware for signed 2's complement addition/subtraction
Signed 2's complement numbers are added exactly like unsigned numbers, with the sign bit treated as an ordinary bit, so no separate sign logic is needed. The hardware consists of:
- Registers AC and BR (n bits each) holding the two operands, plus a flip-flop V for overflow.
- A parallel adder (chain of full adders) that adds AC and BR.
- An XOR (complementer) stage on the BR input. A mode control line is XORed with every BR bit and also fed to the carry-in of the adder.
Operation:
- (addition): BR passes unchanged, , so .
- (subtraction): BR is complemented and , so (2's complement of BR is added).
Overflow: it occurs when the carry into the sign position differs from the carry out of it, so . If the result is invalid.
Algorithm: (1) Add (or subtract) the two numbers using the adder; (2) check ; if the sum in AC is the answer, if report overflow.
(b) Multiplication of (sign-magnitude)
Sign of multiplicand = 1 (negative), sign of multiplier = 0, so product sign (negative).
Magnitudes: , (5 bits each).
Shift-and-add: the multiplier bits (from LSB) are 1, 0, 0, 1, 0.
| Multiplier bit | Action | Partial product |
|---|---|---|
| 1 | add 10111 | 00010111 |
| 0 | shift | 00010111 |
| 0 | shift | 00010111 |
| 1 | add 10111 shifted by 3 (10111000) | 11001111 |
| 0 | shift | 11001111 |
Magnitude of product .
With the sign bit attached: , which is . Check: .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD · 1 mark
Write the major advantage of floating point representation.
Answer
Floating-point representation can represent a very wide range of numbers, from very small fractions to very large values, in a fixed number of bits, because the mantissa holds the precision and the exponent scales the value.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD · 1 mark
What will be the solution of resource conflict pipeline hazard?
Answer
Resource (structural) conflicts are solved by duplicating hardware, for example separate instruction and data memories (or caches) so that instruction fetch and operand access can happen in the same clock cycle, and by adding more functional units or register ports. Where this is not possible, the pipeline is stalled (a bubble is inserted) until the resource is free.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD · 1 mark
What is opcode?
Answer
The opcode (operation code) is the part of a machine instruction that specifies the operation to be performed, such as ADD, LOAD or STORE. The remaining fields give the operands or their addresses.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD · 1 mark
Why the size of data register is 16 bit in Basic computer?
Answer
The basic computer has a 16-bit memory word, and the data register (DR) holds the operand read from memory (or to be written to it). Hence DR must be 16 bits wide to hold a complete word in one memory transfer. The same 16-bit width is used by AC, IR and the common bus.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD · 1 mark
Why daisy chaining is required?
Answer
Daisy chaining is required to decide priority among several devices sharing a single interrupt request line. The interrupt acknowledge signal passes serially from device to device, starting from the highest priority, so the first requesting device blocks it from reaching the lower ones and places its vector address on the bus. This resolves which device is served first.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD · 1 mark
Differentiate between strobe and handshaking.
Answer
In strobe control, a single control line (strobe) from either the source or the destination times the transfer, and the other unit gets no confirmation that data was received or sent. In handshaking, two control lines (e.g. data valid and data accepted) are used, so each unit acknowledges the other, which guarantees reliable transfer between units of different speeds.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD · 1 mark
Define process.
Answer
A process is a program in execution. It includes the program code, its current activity (program counter and register contents), stack and data, and is the unit of work that the operating system schedules.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD · 1 mark
Explain loosely coupled multiprocessor.
Answer
In a loosely coupled multiprocessor, each processor has its own local memory and I/O devices, and forms a computer module of its own. The processors communicate by message passing through a message-transfer system or communication network (e.g. a serial link or shared channel) rather than through a common memory. Interaction between processors is low, so it is suitable for tasks that can be divided into largely independent subtasks and is easily expandable.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD · 3 marks
How hardwired CU is better than micro-programmed CU?
Answer
A hardwired control unit generates control signals using fixed logic circuits (gates, decoders, counters) instead of a stored microprogram.
- Speed: It is faster, because signals are produced directly by logic gates with no control-memory fetch for each microinstruction.
- Lower overhead: There is no control memory and no microinstruction sequencing, so the delay per step is smaller. This suits RISC machines with simple instruction sets.
- Efficient with simple instruction sets: With few instructions the logic is small and economical.
Its drawback is that it is hard to modify or extend, whereas a micro-programmed unit can be changed by rewriting the microprogram.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD · 3 marks
Explain common bus system of basic computer.
Answer
In the basic computer, the registers and memory are connected through a common bus of 16 lines, so that information can be moved from one component to another using one shared set of wires instead of separate paths between every pair.
- The registers connected are AR, PC, DR, AC, IR, TR and memory (INPR feeds AC, OUTR is loaded from AC).
- A bus selector (multiplexer) with select lines chooses which one register or memory drives the bus: 001 = AR, 010 = PC, 011 = DR, 100 = AC, 101 = IR, 110 = TR, 111 = memory.
- AR, PC (12 bits) place their contents in the lower 12 bits of the bus (upper bits zero).
- The register that must receive data has its LD (load) input enabled; INR and CLR are also used for increment and clear.
- Only one register can drive the bus at a time. The adder and logic circuit takes input from AC and DR, and its output goes to AC (not through the bus).
Example: for the selector chooses PC () and LD of AR is enabled.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD · 3 marks
What is instruction pipeline? Explain.
Answer
Instruction pipelining is a technique in which the execution of an instruction is divided into several stages (segments), such as fetch, decode, operand fetch and execute, and several instructions are processed concurrently, each in a different stage. Like an assembly line, while one instruction is executing, the next is being decoded and the one after is being fetched.
With stages and clock period , instructions need time instead of , giving speedup
Pipelining raises throughput, but it can be disturbed by hazards: structural (resource), data and control (branch) hazards.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD · 3 marks
Explain cache mapping techniques.
Answer
Cache mapping determines where a block of main memory may be placed in the cache. The three techniques are:
- Direct mapping: Each main memory block maps to exactly one cache line, given by (j = block number, m = number of cache lines). The address is divided into tag, index and word fields. It is simple and cheap, but two blocks with the same index keep replacing each other (conflict misses).
- Associative (fully associative) mapping: A block can be placed in any cache line. The address is split into tag and word; the tag is compared with all stored tags in parallel using associative memory. It is flexible with the best hit ratio, but needs costly comparison hardware.
- Set-associative mapping: The cache is divided into sets of lines; a block maps to one set (set number of sets) and may occupy any line of that set. The address has tag, set and word fields. It is a compromise between the two, reducing conflict misses at moderate cost.
When the cache is full, a replacement policy (FIFO, LRU, random) selects the block to remove.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD · 3 marks
Explain Cache coherence.
Answer
In a multiprocessor in which each processor has its own cache, the same memory block may be copied into several caches. If one processor writes to its copy, the other caches and main memory hold stale values, so the processors see inconsistent data. This is the cache coherence problem.
Coherence means that all processors always see the most recent value of a shared item. Solutions:
- Write-through / write-update: a write is also sent to memory and to the other caches so their copies are updated.
- Write-invalidate (snooping): each cache watches (snoops) the bus; when one processor writes, the copies in other caches are marked invalid.
- Directory-based protocols: a central directory tracks which caches hold each block.
- Non-cacheable shared data: shared writable data are kept only in main memory (not cached), or hardware/software marks them so.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD · 5 marks
Differentiate between combinational and sequential circuit. Draw circuit diagram for each of them.
Answer
Differences
| Combinational circuit | Sequential circuit |
|---|---|
| Output depends only on the present inputs | Output depends on present inputs and the past state (stored information) |
| Has no memory element | Has memory elements (flip-flops) |
| No clock is required | Usually clocked |
| Faster and simpler to design | Slower and more complex |
| Examples: adder, multiplexer, decoder | Examples: counter, register, flip-flop |
Circuit diagrams
Combinational: half adder
A ──┬──────────┐
│ [XOR]──── Sum = A ⊕ B
B ──┼──┬───────┘
│ │
└──┼──[AND]────── Carry = A·B
└─────┘
Sequential: SR flip-flop with NOR gates (feedback gives memory)
R ──[NOR]──┬──── Q
▲ │
│ └───────┐
└───────┐ │
S ──[NOR]──┬───┘ │
▲ └────── Q'
└───────────┘
Each NOR gate output is fed back to the input of the other, so the circuit holds its state; this feedback loop is what makes it sequential, while the half adder has no feedback.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD · 5 marks
What do you mean by addressing mode? Explain some of the available addressing mode.
Answer
The addressing mode specifies how the address field of an instruction is interpreted to find the operand (effective address). It gives flexibility, such as pointers, loop counters, indexing of arrays and program relocation, and reduces instruction length.
Common modes:
- Implied mode: the operand is implied by the instruction, e.g. CMA complements AC.
- Immediate mode: the operand is in the instruction itself, e.g. LDA #5. Fast, but the constant is fixed.
- Register mode: the operand is in a register named in the instruction.
- Register indirect mode: the register holds the address of the operand in memory; .
- Autoincrement/autodecrement mode: like register indirect, but the register is incremented or decremented after/before access.
- Direct address mode: the address field is the effective address, .
- Indirect address mode: the address field gives the location that holds the operand's address, .
- Relative address mode: ; used for branches and relocatable code.
- Indexed addressing mode: ; used for arrays.
- Base register addressing mode: ; used for relocation.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2014 AD · 5 marks
Multiply (-13) X (+40) using Booth multiplication algorithm.
Answer
Use 7-bit registers (40 needs 7 bits as a signed number).
Multiplicand , so . Multiplier . Initially , , SC = 7.
Rule: : ; : ; or : no operation. Then arithmetic shift right of AC, QR, .
| Step | Operation | AC | QR | ||
|---|---|---|---|---|---|
| Initial | 0000000 | 0101000 | 0 | ||
| 1 | 00 | ashr | 0000000 | 0010100 | 0 |
| 2 | 00 | ashr | 0000000 | 0001010 | 0 |
| 3 | 00 | ashr | 0000000 | 0000101 | 0 |
| 4 | 10 | = 0001101, ashr | 0000110 | 1000010 | 1 |
| 5 | 01 | = 1111001, ashr | 1111100 | 1100001 | 0 |
| 6 | 10 | = 0001001, ashr | 0000100 | 1110000 | 1 |
| 7 | 01 | = 1110111, ashr | 1111011 | 1111000 | 0 |
Result (14 bits). It is negative; its 2's complement is .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2015 AD · 1 mark
Define the term normalization with respect to a floating point numbers.
Answer
A floating-point number is normalized when the most significant digit (bit) of the mantissa is non-zero, i.e. there are no leading zeros (e.g. mantissa in binary). Un-normalized numbers are shifted left, with the exponent decreased accordingly, to obtain maximum precision.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2015 AD · 1 mark
Write down the symbolic designation of a shift micro operation where the shifting is carried out without loss of information.
Answer
The shift without loss of information is the circular shift (rotate) micro-operation. Circular shift right is (shr with end-around), and circular shift left is . In these, the bit shifted out of one end is re-inserted at the other end.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2015 AD · 1 mark
How I/O instruction is identified in a basic computer?
Answer
In the basic computer, the I/O instruction is identified by opcode and the mode bit (bit 15 of the instruction). The register-reference instructions have the same opcode 111 but . In an I/O instruction, bits 0-11 select the specific operation (INP, OUT, SKI, SKO, ION, IOF).
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2015 AD · 1 mark
Make distinction between RISC and CISC architecture.
Answer
| RISC | CISC |
|---|---|
| Small set of simple instructions | Large set of complex instructions |
| Fixed-length instructions, one cycle each | Variable-length instructions, many cycles |
| Hardwired control unit | Micro-programmed control unit |
| Load/store architecture, many registers | Memory operands allowed in many instructions, fewer registers |
| Few addressing modes; pipelining is efficient | Many addressing modes; pipelining harder |
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2015 AD · 1 mark
Write down the uses of sequencer in a microprogrammed control organization.
Answer
In a microprogrammed control unit, the microprogram sequencer (next-address generator) determines the address of the next microinstruction to be read from control memory. It is used to:
- increment the control address register (CAR) for the next sequential microinstruction;
- perform branches (conditional and unconditional) by loading an address from the microinstruction according to status bits;
- map the opcode of the instruction to the starting address of its microroutine;
- handle subroutine call and return of microroutines (using a register/stack).
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2015 AD · 1 mark
How is effective address calculated in indexed register addressing mode?
Answer
In indexed addressing mode, the effective address is the sum of the address part of the instruction and the content of the index register:
where is the address field and is the index register.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2015 AD · 1 mark
List solutions to control hazards.
Answer
Solutions to control (branch) hazards:
- Pipeline stalling (inserting bubbles until the branch is resolved).
- Prefetching the branch target instruction (and the fall-through instruction), or using a branch target buffer.
- Branch prediction (static or dynamic).
- Delayed branch (rearranging instructions so useful ones fill the delay slots).
- Early branch resolution by adding hardware in the decode stage.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2015 AD · 1 mark
What is the disadvantage of programmed I/O?
Answer
In programmed I/O the CPU must continuously poll the device status flag in a loop until the device is ready, so it is kept busy waiting and wastes CPU time, especially with slow devices. The CPU cannot do other useful work during the transfer.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2015 AD · 1 mark
Differentiate between logical address and virtual address.
Answer
A logical address is the address generated by the CPU (program) as seen in the program's own address space, which the memory management hardware maps to a physical address. A virtual address is an address in the virtual memory address space, which can be larger than the physical memory; it is mapped by the memory management unit (page or segment tables) to a physical address, with parts of it residing on secondary storage. In many systems the two terms are used almost interchangeably, but virtual address emphasises the extended space supported by paging or swapping.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2015 AD · 1 mark
Define associative memory.
Answer
Associative memory is a memory unit accessed by the content of the stored data rather than by a specific address (content addressable memory). A word is located by comparing the given argument with all stored words in parallel.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2015 AD · 4 marks
Write a program to take two integers and display them.
Answer
#include <stdio.h>
int main(void) {
int a, b;
printf("Enter two integers: ");
scanf("%d %d", &a, &b);
printf("First integer = %d\n", a);
printf("Second integer = %d\n", b);
return 0;
}
The program reads two integers with scanf and prints them with printf. For example, input 7 12 prints First integer = 7 and Second integer = 12.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2015 AD · 4 marks
Time taken to complete a task in conventional machine is 45ns. In pipelined machine, one task is divided into 5 segments and each sub-operation takes 10ns. Calculate pipeline speed up for 50 tasks and infinite tasks.
Answer
Given: non-pipelined task time ns, number of segments , clock period (each sub-operation) ns.
Speedup
For tasks:
For infinite tasks ():
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2015 AD · 4 marks
Consider the following memory and the instruction LDA 250: (memory location 250 holds 511, location 325 holds 255, location 511 holds 432; register R holds 250 and PC holds 352.) Write the value loaded into AC when the addressing mode is a) Indirect b) Register indirect c) Immediate d) Direct
Answer
Memory: , , ; ; . Instruction: LDA 250 (address field = 250).
(a) Indirect: , operand . AC = 432.
(b) Register indirect: , operand . AC = 511.
(c) Immediate: operand is the address field itself. AC = 250.
(d) Direct: , operand . AC = 511.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2015 AD · 4 marks
Multiply +15 by -5 using booth algorithm.
Answer
Use 5-bit registers. Multiplicand , so . Multiplier . Initially , , SC = 5.
| Step | Operation | AC | QR | ||
|---|---|---|---|---|---|
| Initial | 00000 | 11011 | 0 | ||
| 1 | 10 | = 10001, ashr | 11000 | 11101 | 1 |
| 2 | 11 | ashr | 11100 | 01110 | 1 |
| 3 | 01 | = 01011, ashr | 00101 | 10111 | 0 |
| 4 | 10 | = 10110, ashr | 11011 | 01011 | 1 |
| 5 | 11 | ashr | 11101 | 10101 | 1 |
Result (10 bits). Negative; 2's complement .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2015 AD · 5 marks
Explain how data is transferred using handshaking methods? Explain interrupt cycle of Basic computer.
Answer
(a) Data transfer by handshaking
Handshaking uses two control lines between the source and destination units, so each transfer is acknowledged.
Source-initiated transfer:
- The source places data on the data bus and enables data valid.
- The destination accepts the data from the bus and enables data accepted.
- The source sees data accepted, disables data valid and removes the data.
- The destination disables data accepted, ready for the next transfer.
Destination-initiated transfer: the destination first activates ready for data; the source then places data on the bus and enables data valid; the destination accepts the data and disables ready for data; the source disables data valid and the cycle is ready to repeat.
This works for units of different speeds because each side proceeds only after the other's acknowledgement.
(b) Interrupt cycle of the basic computer
The interrupt flip-flop R is set (when IEN = 1 and an input or output flag FGI/FGO is 1). At the end of the execute phase, if the computer goes to the interrupt cycle instead of fetching the next instruction:
- : (save return address)
- : (store the return address at location 0)
- :
So the return address is saved in memory location 0, control branches to location 1 (the interrupt service routine starts there), further interrupts are disabled, and the cycle is reset. The routine ends with ION and an indirect branch (BUN 0 I) back to the saved address.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2015 AD · 5 marks
Explain any two interconnection structures for a multi-processor. Explain cache mapping techniques.
Answer
(a) Interconnection structures for multiprocessors
- Time-shared common bus: All processors, memory and I/O modules are connected to one shared bus. Only one transfer can take place at a time, so a bus arbitration mechanism is needed. It is simple, cheap and easy to expand, but the single bus limits throughput and a bus failure stops the system.
- Crossbar switch: There is a switch at each crosspoint of a matrix with memory modules along one axis and processors along the other. Any processor can connect to any free memory module, and several transfers occur simultaneously, giving high bandwidth. Conflicts happen only if two processors want the same module. The disadvantage is the high hardware cost, which grows as .
Others include multiport memory, multistage switching network and hypercube.
(b) Cache mapping techniques
- Direct mapping: block goes to line ; address = tag + index + word. Simple, but conflict misses.
- Fully associative mapping: a block can go to any line; address = tag + word; all tags are compared in parallel. Flexible and a high hit ratio, but expensive.
- Set-associative mapping: the cache is divided into sets; a block maps to a fixed set and can occupy any line in it; address = tag + set + word. A balance between cost and performance.
Replacement algorithms (FIFO, LRU) decide which block is replaced when the cache is full.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2016 AD · 1 mark
What is the importance of complement in digital computers?
Answer
Complements simplify arithmetic in digital computers. Subtraction can be done by adding the complement of the subtrahend, so the same adder circuit performs both addition and subtraction, reducing hardware. Complements are also used for representing negative numbers (2's complement) and for logical operations.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2016 AD · 1 mark
What is the purpose of location counter in assembler?
Answer
The location counter (LC) keeps track of the address of the instruction or data currently being assembled. The assembler increments it as each line is processed, and uses its value to assign addresses to labels in the symbol table; it is set by the ORG pseudo-instruction.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2016 AD · 1 mark
How many bits are required to address 4096 bytes of memory?
Answer
bytes, so 12 bits are required.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2016 AD · 1 mark
What is the meaning of dynamic micro programming?
Answer
Dynamic microprogramming means the control memory is writable (RAM or other loadable memory), so the microprogram can be changed or reloaded at run time. This lets the same hardware emulate different instruction sets, unlike static microprogramming where the control memory is a fixed ROM.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2016 AD · 1 mark
What is the purpose of strobe pulse in asynchronous data transfer?
Answer
In asynchronous data transfer, the strobe pulse is a control signal sent by one unit to tell the other unit when to transfer data. The source (or destination) activates it to indicate that valid data is on the bus, so the receiving unit knows the exact moment to accept the data.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2016 AD · 1 mark
Write the major difficulties that cause the instruction pipeline to deviate from normal operation.
Answer
The instruction pipeline deviates from normal operation because of three types of hazards.
- Resource (structural) conflicts: two segments need the same resource, such as memory, in the same clock cycle.
- Data dependency: an instruction needs the result of a previous instruction that is not yet available.
- Branch difficulties: branch and interrupt instructions change the program counter, so the instructions already fetched must be discarded.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2016 AD · 1 mark
What is the principle behind the implementation of cache memory?
Answer
Cache memory is based on the principle of locality of reference. Programs tend to access the same or nearby memory locations repeatedly (temporal and spatial locality), so keeping those active words in a small, fast memory makes the average access time close to that of the cache.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2016 AD · 1 mark
What is critical selection?
Answer
A critical section (the question's "critical selection") is the part of a program in which a process accesses a shared resource or shared data. Only one process may execute it at a time, so that concurrent access does not give inconsistent results.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2016 AD · 4 marks
Write a program loop, using a pointer and counter, that clears the content of hexadecimal locations 500 through 5FF to 0.
Answer
There are locations, so the counter is initialised to . In the basic computer, a pointer location holds the address and indirect addressing (I) is used to reach the memory word.
ORG 100
LOP, CLA / AC = 0
STA PTR I / store 0 at the address held in PTR
ISZ PTR / PTR = PTR + 1 (next location)
ISZ CNT / CNT = CNT + 1, skip next instruction when zero
BUN LOP / repeat until all 256 words are cleared
HLT
PTR, HEX 500 / pointer to the first location
CNT, DEC -256 / counter for 256 locations
The loop runs 256 times. When CNT becomes 0, ISZ CNT skips BUN LOP and the computer halts, with locations 500 to 5FF all set to 0.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2016 AD · 4 marks
Consider the following figure: PC = 300, R1 = 500 (memory contents shown in a figure in the original paper, with addresses 300, 450 and 500). What is the value in AC if the instruction is LDA 300 if the modes are:
i. Direct addressing\nii. Immediate\niii. Indirect addressing\niv. Register indirect if LDA (R1) is used
Answer
The instruction LDA 300 is stored at address (PC already points to the next instruction, 300), and its address field is 300. The effective address and the value loaded depend on the mode. Let be the memory word at address in the figure.
i. Direct addressing: effective address EA = 300, so .
ii. Immediate: the operand is the address field itself, so .
iii. Indirect addressing: EA = (the pointer stored at 300, which leads to location 450 in the figure), so .
iv. Register indirect (LDA (R1)): R1 = 500 holds the address of the operand, so EA = 500 and .
Direct needs one memory reference for the operand, indirect needs two, immediate needs none, and register indirect needs one.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2016 AD · 4 marks
What is associative memory? Given a cache memory with access time 200ns and RAM with access time 2000 ns, if hit ratio is 90% calculate the average memory access time.
Answer
Associative memory (content-addressable memory, CAM) is a memory that is accessed by the content of the data rather than by an address. A search word is compared with all stored words simultaneously, and the matching words are returned. It is very fast but costly, and it is used in cache tags and page tables.
Average access time. Given ns, ns and hit ratio :
(If main memory is accessed only after the cache lookup fails, ns. The usual textbook formula above gives 380 ns.)
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2016 AD · 5 marks
What is the advantage of common bus system? Explain with diagram. What is vector processing?
Answer
Common bus system. In a common bus system, a single set of lines is shared to transfer information between the registers, memory and other units. Selection circuitry (multiplexers or three-state buffers) chooses which register drives the bus, and the bus carries the data to the destination register whose load input is enabled.
Advantages:
- It needs far fewer wires and less hardware than separate paths between every pair of registers, so it is cheaper and simpler.
- It is easy to expand, since a new register or device is added by connecting it to the bus.
- Control is simple, because only the select and load signals decide the transfer.
- The only cost is that one transfer can take place at a time on the bus.
Diagram (registers feeding a bus through a multiplexer):
AR PC DR AC IR TR Memory
| | | | | | |
+----+----+----+----+----+-----+
| COMMON BUS (16 lines)
+----+----+----+----+----+-----+
| | | | | | |
LD LD LD LD LD LD Write
(S2 S1 S0 select the source on the bus)
Vector processing. Vector processing is the execution of a single instruction on whole arrays (vectors) of data, with many elements processed using pipelined arithmetic units or several processing elements. It avoids the loop overhead of scalar processing, and it is used for scientific work such as matrix computation, weather forecasting and image processing, where the same operation is applied to a large set of data.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2016 AD · 5 marks
How are priorities of interrupt handled? What do you mean by instruction set completeness?
Answer
Interrupt priority. When several devices raise interrupts at the same time, priority decides which is served first. There are two ways.
1. Software (polling): one common branch address is used for all interrupts. The routine polls the devices in order, so the first device polled has the highest priority. It is simple, but slow, since many devices may be tested before the requester is found.
2. Hardware:
- Daisy chaining (serial priority): the devices are connected in series by a priority chain. The interrupt acknowledge signal passes through each device in turn, and the first device with a pending request blocks the signal and puts its vector address on the bus. The device nearest to the CPU has the highest priority.
- Parallel priority: each device has a bit in an interrupt register, with a mask register to enable or disable each source. A priority encoder gives the vector address of the highest-priority unmasked request.
Instruction set completeness. An instruction set is complete if it can be used to evaluate any computable function. It must contain instructions in these classes:
- arithmetic, logical and shift instructions for computation,
- data transfer instructions (move data between memory and registers),
- program control instructions (test, branch, call, return) for decisions and loops,
- input/output instructions for communication with the outside.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2017 AD · 1 mark
What the advantage is of normalizes floating point number?
Answer
A normalized floating-point number has a non-zero leading digit in its fraction (mantissa). This uses the mantissa bits for the maximum precision and gives each number a unique representation, which also makes comparison and arithmetic simpler.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2017 AD · 1 mark
Why control data register in micro-programmed control organization is called pipeline register?
Answer
The control data register holds the microinstruction fetched from control memory while it is executed. The next microinstruction is read and the next address is computed at the same time as the present one executes. This overlapping of fetch and execute is pipelining, so the register is called the pipeline register.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2017 AD · 1 mark
What are the different techniques used to achieve parallel processing?
Answer
Parallel processing is achieved by:
- Pipelining (overlapping the segments of an instruction or arithmetic operation),
- Vector (array) processing,
- Multiple functional units in the CPU,
- Multiprocessing (several CPUs sharing memory, such as multiprocessor systems),
- Multicomputers/distributed systems, and
- Overlapping CPU and I/O operations.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2017 AD · 1 mark
Why peripherals are connected with computer through interface?
Answer
Peripherals differ from the CPU in speed, data format, word length and signal levels. An interface is placed between them to convert signals and formats, synchronise the different speeds, and provide the control and status information and the address decoding. Without it the CPU could not communicate correctly with the devices.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2017 AD · 1 mark
Why hierarchy of memory is maintained?
Answer
No single memory is at once fast, large and cheap. A hierarchy (registers, cache, main memory, secondary storage) combines a small, fast memory for the active data with larger, slower and cheaper memories. Because of locality of reference, the system gives an average access time close to the fastest level at a cost close to the cheapest level.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2017 AD · 1 mark
Differentiate between vector and array processor.
Answer
A vector processor has one (or a few) deeply pipelined functional units that process the elements of a vector one after another in a pipelined fashion, with the elements streamed from vector registers. An array processor has many identical processing elements (ALUs) that operate in parallel on different elements of the array at the same time under a single control unit (SIMD), so it needs more hardware.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2017 AD · 4 marks
Perform the arithmetic operation (+33) + (+48) and (-33) + (-48) with binary numbers in signed 2's complement representation. Use seven bits to accommodate each number together with sign. Show that overflow occurs in both cases.
Answer
Use 7 bits including the sign bit, so the range is to .
Case 1: (+33) + (+48)
and
0100001
+ 0110000
---------
1010001
The carry into the sign bit is 1 and the carry out of the sign bit is 0. These differ, so overflow occurs. Two positive numbers have given a negative-looking result (sign bit 1), and the true sum is outside the range to .
Case 2: (-33) + (-48)
in 2's complement:
in 2's complement:
1011111
+ 1010000
---------
10101111
Dropping the carry out gives . The carry into the sign bit is 0 and the carry out of the sign bit is 1, which differ, so overflow occurs. Two negative numbers have given a positive-looking result (sign bit 0), and the true sum is outside the range.
In both cases the sign of the result is wrong, which shows overflow.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2017 AD · 4 marks
Explain how instruction is executed in basic computer with necessary flow chart.
Answer
Every instruction in the basic computer goes through an instruction cycle that is repeated until the computer halts. It has these phases:
- Fetch the instruction from memory.
- Decode the operation code.
- Read the effective address from memory if the instruction has an indirect address.
- Execute the instruction.
Fetch (timing signals T0, T1):
Decode (T2):
After decoding, the type of instruction is found from and :
- : input-output instruction, executed at once.
- : register-reference instruction, executed at once.
- : memory-reference instruction with indirect address, so at .
- : memory-reference instruction with direct address, so nothing is done at .
Then the memory-reference instruction is executed from onwards, and the sequence counter is cleared () so that the next instruction is fetched at .
Flow chart:
Start, SC <- 0
|
T0: AR <- PC
|
T1: IR <- M[AR], PC <- PC + 1
|
T2: Decode IR(12-14), AR <- IR(0-11), I <- IR(15)
|
D7 = 1 ?
/ \
(no) (yes)
memory-ref I = 1 ? --yes--> Input-output: execute at T3
| | no
I = 1 ? Register-ref: execute at T3
/ \ |
(yes) (no) |
T3: AR<-M[AR] T3: nothing |
\ / |
Execute memory-ref (T4...)|
\ /
SC <- 0, next instruction
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2017 AD · 4 marks
The time delay of the four segments in the pipeline system are t1 = 30ns, t2 = 35ns, t3 = 20ns and t4 = 45ns. The interface registers delay time d = 4ns. Find the speed ratio of pipeline system over equivalent conventional system for 100 tasks.
Answer
Pipeline clock period. The clock must be as long as the slowest segment plus the register delay:
Pipeline time for tasks with segments:
Equivalent non-pipelined system: each task takes the sum of the segment delays, ns, so
Speedup:
The pipeline is about 2.58 times faster, less than the ideal limit of because the segment delays are unequal and the register delay is added.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2017 AD · 4 marks
Write a symbolic program to subtract two double precision numbers and explain each statement.
Answer
Let and be 32-bit numbers held in two 16-bit words each (low part XL, YL and high part XH, YH), and let . The subtraction is done by adding the 2's complement of : . The carry from the low words must be carried into the high words.
ORG 100
CLE / clear E
LDA YL / AC = YL
CMA / AC = complement of YL
INC / AC = -YL (2's complement); E = carry if YL = 0
STA TL / TL = low word of -Y
CLA / AC = 0
CIL / AC = E (carry from the negation of the low word)
STA C / save the carry
LDA YH / AC = YH
CMA / AC = complement of YH
ADD C / add the carry: AC = high word of -Y
STA TH / TH = high word of -Y
CLE / clear E
LDA XL / AC = XL
ADD TL / AC = XL + TL; E = carry
STA ZL / ZL = low word of the result
CLA / AC = 0
CIL / AC = E (carry from the low words)
ADD XH / AC = carry + XH
ADD TH / AC = XH + TH + carry
STA ZH / ZH = high word of the result
HLT
XL, HEX 0 / low word of X
XH, HEX 0 / high word of X
YL, HEX 0 / low word of Y
YH, HEX 0 / high word of Y
ZL, HEX 0 / low word of Z
ZH, HEX 0 / high word of Z
TL, HEX 0 / low word of -Y
TH, HEX 0 / high word of -Y
C, HEX 0 / carry
END
The first part forms the double-precision negative of Y, and the second part adds it to X with carry propagation between the low and high words.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2017 AD · 5 marks
What are the different CPU organizations? List and explain each type of addressing modes available.
Answer
CPU organizations (by how the processor registers are organised, which decides the instruction format):
- Single accumulator organization: one accumulator register is used for all operations, with one address in the instruction. Example: does .
- General register organization: many registers are used and the instruction has two or three addresses. Example: does .
- Stack organization: operations use a push-down stack, and arithmetic instructions need no address (zero-address). Example: pops the top two items and pushes their sum, and and move data.
Addressing modes. The addressing mode tells how the operand or its effective address (EA) is found from the address field.
- Implied mode: the operand is implied by the instruction, as in (complement AC) and stack operations.
- Immediate mode: the operand is in the instruction itself, with no memory reference. Used for constants.
- Register mode: the operand is in a CPU register named in the instruction.
- Register indirect mode: the register holds the address of the operand in memory.
- Autoincrement/autodecrement mode: like register indirect, but the register is incremented or decremented automatically after (or before) the access, for walking through tables.
- Direct address mode: the address field is the effective address, .
- Indirect address mode: the address field gives the location that holds the address of the operand, .
- Relative address mode: . Useful for branches and position-independent code.
- Indexed addressing mode: (index register). Useful for arrays.
- Base register addressing mode: (base register). Useful for relocating programs.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2017 AD · 5 marks
Explain hypercube interconnection structure in brief with its merits and demerits. Explain different cache mapping techniques.
Answer
Hypercube interconnection. A binary hypercube (n-cube) connects processors, one at each corner of an n-dimensional cube. Each processor has a distinct n-bit binary address and is directly linked to the processors whose address differs from its own in exactly one bit.
For example, has 8 processors (000 to 111); processor 000 is linked to 001, 010 and 100. The maximum distance between any two nodes is , and the route between two nodes is found by comparing their addresses bit by bit.
Merits:
- The communication distance is short (at most links) and there are several alternative paths, so the network is fault tolerant.
- It is scalable, and the number of links per node grows only logarithmically.
- It supports many other topologies (rings, meshes, trees) and is good for parallel algorithms.
Demerits:
- The number of connections per processor grows with , so the hardware cost and wiring are high.
- The size must be a power of 2, and it is hard to extend by only one processor.
- The layout is complex for large .
Cache mapping techniques. Mapping decides where a block of main memory is placed in the cache.
- Associative mapping: any block of main memory can go to any cache line. The cache stores both the address and the data, and the address is compared with all lines at once. It is the most flexible and has the best hit ratio, but needs costly associative hardware.
- Direct mapping: the address is split into tag, index and offset. A block can only go to one line, given by . It is simple and cheap, but blocks that map to the same line cause conflicts and a lower hit ratio.
- Set-associative mapping: the cache is divided into sets with lines each. A block maps to one set, given by , and can be in any of the lines of the set. It is a compromise between direct and associative mapping, and a replacement algorithm (FIFO, LRU) is used within the set.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2018 AD · 1 mark
Convert to 9's complement.
Answer
The 9's complement of a decimal number is found by subtracting each digit from 9:
So the 9's complement of is .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2018 AD · 1 mark
Define interrupt.
Answer
An interrupt is a signal from an I/O device, a program error or a timer that makes the CPU suspend the program it is executing, save its state, and run a service routine for the event. After the service routine, the CPU resumes the interrupted program.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2018 AD · 1 mark
How the size of program counter in basic computer determined?
Answer
The program counter holds the address of the next instruction, so its size is set by the memory size. For a memory of words, PC has bits. In the basic computer, memory has 4096 words (), so PC is 12 bits.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2018 AD · 1 mark
Define hypercube.
Answer
A hypercube (binary n-cube) is an interconnection structure with processors, each at a corner of an n-dimensional cube and directly connected to neighbours whose binary addresses differ from its own in exactly one bit.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2018 AD · 1 mark
Define strobe.
Answer
A strobe is a control signal (a pulse) used in asynchronous data transfer to tell the receiving unit when to accept data. It is activated by the source or by the destination to mark the time of the transfer.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2018 AD · 1 mark
Define pipeline hazards.
Answer
Pipeline hazards are the situations that stop the next instruction from executing in its clock cycle and so cause the pipeline to stall. They are of three types: structural (resource conflict), data (dependency between instructions) and control (branch) hazards.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2018 AD · 1 mark
What is locality of reference?
Answer
Locality of reference is the tendency of a program to access the same memory locations (temporal locality) or the locations near them (spatial locality) repeatedly over short periods. It is the reason cache memory and memory hierarchy are effective.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2018 AD · 1 mark
Define critical section.
Answer
A critical section is a segment of code in which a process accesses shared data or a shared resource. It must be executed by only one process at a time (mutual exclusion) to avoid inconsistent results.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2018 AD · 4 marks
What is cache coherence? Explain with example and suggest the solutions.
Answer
Cache coherence. In a multiprocessor system, each processor has its own cache, and the same memory block may be held in several caches. The cache coherence problem arises when a processor modifies its copy, so that the other copies and main memory hold stale (inconsistent) data.
Example. Let location in main memory have the value 52, and let processors P1 and P2 both read into their caches. Then:
- P1 writes in its cache.
- With a write-back cache, main memory still holds 52, and P2's cache also still holds 52.
- If P2 now reads , it gets the stale value 52 instead of 120, so the processors see different values.
Even with write-through, memory is updated to 120, but P2's cached copy remains 52.
Solutions:
- Do not cache shared writable data: shared variables are kept in main memory only or in a non-cacheable region. It is simple but slow.
- Snooping (bus-watching) cache controllers: each cache controller monitors the common bus. On a write, the other caches either invalidate their copy (write-invalidate) or update it (write-update). This works with write-through or write-back caches, and protocols such as MESI are used.
- Directory-based protocols: a central directory records which caches hold each block, and sends invalidation or update messages only to those caches. It scales better than snooping.
- Centralised global table: a table in the central controller records the blocks in the caches and their status (read-only or read/write), and it controls their access.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2018 AD · 4 marks
Why different addressing mode required? Explain any four addressing mode.
Answer
Why different addressing modes are required
- They give programmers flexibility: pointers, arrays, loop counters, indexing and relocation can be handled efficiently.
- They reduce the number of bits in the address field of an instruction (e.g. register modes need only a few bits).
- They allow position-independent (relocatable) programs and compact code.
- They allow the effective address to be computed at run time instead of being fixed when the program is written.
Four addressing modes
- Immediate mode: the operand is in the instruction itself (e.g.
MOV R1, #5). No memory reference is needed for the operand, so it is fast, but the value is constant. - Direct mode: the address field gives the effective address of the operand: . One memory reference is needed.
- Indirect mode: the address field gives the address of a memory word that holds the address of the operand: . Two memory references are needed, but it supports pointers.
- Register indirect mode: the instruction names a register that holds the operand address: . It needs fewer address bits and only one memory reference.
Other modes include register mode, indexed mode (), base-register mode and relative mode ().
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2018 AD · 4 marks
What is pipeline? A non-pipeline system takes 100ns to process a task. The same task can be processed in a six-segment pipeline with a clock cycle of 20ns. Calculate the speedup ratio of the pipeline for 200 tasks.
Answer
Pipeline: a technique of decomposing a sequential process into sub-operations (segments), each executed in a dedicated segment that works concurrently with the others. Several tasks are therefore at different stages at the same time, which increases throughput.
Speedup
Given: ns, segments, ns, tasks.
The pipeline is about times faster. For very large , the speedup approaches .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2018 AD · 5 marks
What is Address sequencing? Explain with diagram how selection of address is done?
Answer
Address sequencing is the process by which a microprogrammed control unit determines the address of the next microinstruction in control memory. Microinstructions are normally stored in consecutive locations, but the sequence must change for branches, subroutine calls, returns and the mapping from an instruction's opcode to its microprogram routine.
Selection of the next address
+---------------------+
Opcode ------->| Mapping logic |--------+
+---------------------+ |
Branch address field ----------------------+ |
Subroutine register (SBR) ---------------+ | |
Increment (CAR + 1) -------------+ | | |
v v v v
+--------------------+
Status bits ---------------->| Multiplexers |<-- MUX select
(from condition select) +--------------------+ (branch logic)
|
v
+---------------------------+
| Control Address Register |
| (CAR) |
+---------------------------+
|
v
Control memory
The next address comes from one of these sources, chosen by the multiplexers under the control of the branch logic and status bits:
- Incrementing CAR () for sequential execution.
- Branch address field of the microinstruction for an unconditional or conditional jump, taken when the tested status bit is true; otherwise CAR is incremented.
- Mapping logic: the opcode of the machine instruction is mapped into the starting address of its microroutine (e.g. by placing 0 in the MSB and the opcode bits in the middle).
- Subroutine register (SBR): the return address is saved in SBR on a call (CALL) and loaded back into CAR on RET.
- An initial address loaded at power-up/reset.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2018 AD · 5 marks
What is the advantage of DMA over programmed I/O? Explain DMA transfer with diagram
Answer
Advantage of DMA over programmed I/O
In programmed I/O the CPU runs a loop that tests the device status and moves every word through a CPU register, so the CPU is busy for the entire transfer. In DMA the DMA controller transfers blocks of data directly between the I/O device and memory, so:
- the CPU is freed for other work during the transfer (it is involved only at the start and the end);
- transfer rate is much higher, limited only by memory speed;
- there is no per-word instruction overhead, so it suits large block transfers.
DMA transfer
CPU <----> Address bus / Data bus / Control <----> Memory
^ BR ->| ^
|<- BG --| +---------------------+ |
| +--------| DMA controller |----------+
| | Address register |
| | Word count reg. |
| | Control register |
Interrupt <---------| |<----> I/O device
+---------------------+ (DMA request / DMA acknowledge)
Steps:
- The CPU initialises the DMA controller with the starting memory address (address register), the number of words (word count register) and the direction of transfer (read/write), then continues with other work.
- The device raises a DMA request. The DMA controller sends a bus request (BR) to the CPU.
- The CPU finishes the current bus cycle, places its buses in high-impedance state and replies with bus grant (BG).
- The DMA controller now controls the buses, sends the address to memory, and transfers a word (cycle stealing) or a whole block (burst mode). After each word the address register is incremented and the word count is decremented.
- When the word count reaches zero, the DMA controller releases the bus and interrupts the CPU to signal completion.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2019 AD · 1 mark
What are the methods of representing negative integers? Give examples.
Answer
Negative integers are represented in three ways (the MSB is the sign bit, 1 for negative). Example for in 8 bits:
- Signed magnitude: sign bit plus the magnitude: .
- Signed 1's complement: complement all bits of : .
- Signed 2's complement: 1's complement plus 1: .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2019 AD · 1 mark
How handshaking is different than strobe?
Answer
In strobe control a single control line is used: the source (or destination) sends a strobe pulse to say that data is valid (or should be read), and there is no confirmation from the other unit. In handshaking two control lines are used: a request/data-valid signal from the source and an acknowledge/data-accepted signal from the destination, so each unit knows the other has responded. Handshaking is therefore more reliable and works with units of different speeds.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2019 AD · 1 mark
How daisy chaining assigns priority?
Answer
In daisy chaining, all devices are connected in series on a common interrupt request line. The interrupt acknowledge (PI/PO) signal passes from the CPU through the devices one after another, starting with the device nearest the CPU. A device that has requested an interrupt blocks the acknowledge signal (PO=0) and places its vector address on the bus; otherwise it passes the signal on. Hence priority is fixed by physical position: the device closest to the CPU has the highest priority.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2019 AD · 4 marks
Show the step by step multiplication using Booth algorithm if (+12) is multiplied by (-9).
Answer
Use 5-bit registers. , , . Initially , , .
| Step | Operation | AC | Q | ||
|---|---|---|---|---|---|
| Initial | 00000 | 10111 | 0 | ||
| 1 | 10 | 10100 | 10111 | 0 | |
| ashr | 11010 | 01011 | 1 | ||
| 2 | 11 | ashr | 11101 | 00101 | 1 |
| 3 | 11 | ashr | 11110 | 10010 | 1 |
| 4 | 01 | 01010 | 10010 | 1 | |
| ashr | 00101 | 01001 | 0 | ||
| 5 | 10 | 11001 | 01001 | 0 | |
| ashr | 11100 | 10100 | 1 |
Product . This is negative; its 2's complement is .
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2019 AD · 4 marks
How does a basic computer execute instruction? Describe with flowchart.
Answer
The basic computer executes each instruction in an instruction cycle made of these phases, repeated until HALT:
- Fetch the instruction from memory.
- Decode the opcode.
- Read the effective address from memory if the instruction has an indirect address.
- Execute the instruction.
Fetch and decode (timing signals )
- :
- :
- : decode ,
Flowchart
Start, SC <- 0
|
T0: AR <- PC
T1: IR <- M[AR], PC <- PC + 1
T2: Decode IR(12-14), AR <- IR(0-11), I <- IR(15)
|
D7 = 1 ? ---- yes ----> I = 1 ?
| no |-- no --> Register-reference instr.
v | (execute, SC <- 0)
I = 1 ? '-- yes --> Input-output instr.
yes | | no (execute, SC <- 0)
v v
T3: AR <- M[AR] T3: nothing
\ /
v v
T4..: Execute memory-reference instruction
(AND, ADD, LDA, STA, BUN, BSA, ISZ)
|
SC <- 0
back to T0
- If and it is a register-reference instruction; if and it is an input-output instruction. Both execute at .
- If it is a memory-reference instruction: if the effective address is fetched at (), then the instruction executes at onwards.
- After execution the sequence counter is cleared () and the next instruction cycle begins, unless the interrupt flip-flop IEN/R is set, in which case an interrupt cycle is entered.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2019 AD · 4 marks
What is the purpose of memory hierarchy? Given a cache memory with access time 2ns and RAM with 10ns, if cache hit ratio is 80%. Find the average memory access time.
Answer
Purpose of memory hierarchy: no single memory is fast, large and cheap at the same time. A hierarchy (registers, cache, main memory, secondary storage) combines small fast memories with large slow ones so that the average access time approaches that of the fastest level, while the cost per bit stays close to that of the cheapest level. It works because of locality of reference.
Average access time
Given ns, ns, hit ratio (cache and main memory accessed in parallel on a miss):
(If the memory is accessed only after the cache lookup fails, ns.)
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2019 AD · 5 marks
Define microprogrammed control unit. Explain any three interconnection structures for a multiprocessor
Answer
Microprogrammed control unit: a control unit whose control signals are generated by a stored program of microinstructions kept in a control memory (ROM). Each machine instruction is executed by a sequence of microinstructions (a microprogram); the control address register (CAR) selects the microinstruction, which is read into the control data register and whose bits give the control signals and the next-address information. It is flexible and easy to modify, though slower than hardwired control.
Interconnection structures of a multiprocessor
- Time-shared common bus: all processors, memories and I/O units share one bus. Only one transfer can occur at a time, so arbitration is needed. It is simple and cheap, but the bus is a bottleneck and a single point of failure.
- Multiport memory: each memory module has separate ports for each processor, with priority logic inside the memory. Several processors can access different modules simultaneously, giving high transfer rate, but it needs many ports and cables and costly memory control.
- Crossbar switch: a switch at every crosspoint between processors and memory modules allows all processors to access different modules at the same time. Only conflicts on the same module need resolving. It gives the highest bandwidth, but hardware cost grows as switches.
Other structures are the multistage switching network and the hypercube.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2019 AD · 5 marks
How pipelining result in better performance of the system? Identify and explain different pipeline hazards with examples.
Answer
How pipelining improves performance
The instruction cycle is split into segments (fetch, decode, operand fetch, execute, write back), each with its own hardware. While one instruction is executing, the next one is being decoded and another fetched. Once the pipeline is full, one instruction completes every clock cycle, so throughput increases. For tasks and segments:
Pipeline hazards
- Structural (resource) hazards: two instructions need the same hardware resource in the same cycle, e.g. an instruction fetch and a data access both using a single memory. Fix: separate instruction and data memories/caches, or stall.
- Data hazards: an instruction depends on the result of a previous one that is not yet written.
Example:
ADD R1,R2,R3followed bySUB R4,R1,R5.SUBneeds R1 beforeADDwrites it (read after write). Fix: operand forwarding, hardware interlocks/stalls, or compiler delayed load. - Control (branch) hazards: a branch or jump changes the PC, so instructions already fetched after it may be wrong.
Example:
BEQ R1,R2,Lleaves the next instructions fetched before the outcome is known. Fix: prefetch both targets, branch target buffer, branch prediction, delayed branch.
Hazards cause stalls that reduce the ideal speedup.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 AD · 10 marks
List the significance of complements in the digital computer. Explain fixed point representation with example.
Answer
Significance of complements in digital computers
- Complements allow subtraction to be done by addition (), so the same adder is used for both and the hardware is simpler and cheaper.
- They allow representation of negative numbers (signed 1's and 2's complement) with a single sign bit.
- They allow logical manipulation, e.g. 1's complement is a simple bitwise NOT, and 2's complement has a unique zero.
- Using the 2's complement, arithmetic overflow is easy to detect and signed and unsigned addition use the same circuit.
Fixed-point representation
A fixed-point number has the binary point at a fixed position, almost always either at the extreme left (a fraction) or at the extreme right (an integer). The leftmost bit is the sign bit (0 for +, 1 for -). Three formats exist for negative numbers:
For in 8 bits: . For in 8 bits:
- Signed magnitude:
- Signed 1's complement:
- Signed 2's complement:
For a fraction, the binary point is assumed just after the sign bit: . For an integer it is assumed to the right of the LSB. Range of -bit 2's complement: to (for : to ). Fixed-point numbers are fast and simple, but have limited range and precision; floating point is used when a wider range is needed.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 AD · 10 marks
Explain arithmetic and shift micro operations in brief.
Answer
A micro-operation is an elementary operation performed on data stored in registers in one clock pulse.
Arithmetic micro-operations
| Micro-operation | Meaning |
|---|---|
| add | |
| subtract () | |
| 1's complement | |
| 2's complement (negate) | |
| increment | |
| decrement |
They are implemented with a binary adder (full adders in cascade). A binary adder-subtractor uses an XOR gate on each input with a mode control : adds, subtracts (inverts and sets carry-in to 1). An increment is a half-adder chain. An arithmetic circuit with select lines and generates add, add with carry, subtract, decrement, transfer and increment from one circuit.
Shift micro-operations
Shifts move the bits of a register left or right and are used for serial transfer and arithmetic.
- Logical shift: zero is inserted at the vacated end.
shl R: shl ;shr R: shr . - Circular shift (rotate): the bit shifted out is re-inserted at the other end.
cil R,cir R. - Arithmetic shift: shifts a signed number, keeping the sign.
ashr: the sign bit stays and is copied into the next bit, i.e. divides by 2. E.g. .ashl: shifts left, the sign bit unchanged, multiplies by 2; overflow occurs if the sign bit changes, i.e. .
In hardware, a bidirectional shift register with parallel load or a combinational shifter built from multiplexers (4x1 muxes with select ) is used.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 AD · 10 marks
Evaluate the arithmetic statement using a general register computer with three address and two address instruction format.
Answer
Three-address instruction format (OP dest, src1, src2; R1, R2 are registers)
ADD R1, P, Q ; R1 <- M[P] + M[Q]
ADD R2, R, S ; R2 <- M[R] + M[S]
MUL X, R1, R2 ; M[X] <- R1 * R2
Three instructions are needed.
Two-address instruction format (OP dest, src; the destination is also the first operand)
MOV R1, P ; R1 <- M[P]
ADD R1, Q ; R1 <- R1 + M[Q]
MOV R2, R ; R2 <- M[R]
ADD R2, S ; R2 <- R2 + M[S]
MUL R1, R2 ; R1 <- R1 * R2
MOV X, R1 ; M[X] <- R1
Six instructions are needed. The three-address format gives shorter programs, but each instruction is longer and needs more memory fields.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 AD · 10 marks
Multiply with by using Booth's multiplication and draw flowchart for corresponding example.
Answer
Use 4-bit registers. , , . Initially , , .
Booth's rule (look at ): ; ; or no operation. Then arithmetic shift right (ashr) and .
| Step | Operation | AC | Q | SC | ||
|---|---|---|---|---|---|---|
| Initial | 0000 | 1101 | 0 | 4 | ||
| 1 | 10 | 1001 | 1101 | 0 | ||
| ashr | 1100 | 1110 | 1 | 3 | ||
| 2 | 01 | 0011 | 1110 | 1 | ||
| ashr | 0001 | 1111 | 0 | 2 | ||
| 3 | 10 | 1010 | 1111 | 0 | ||
| ashr | 1101 | 0111 | 1 | 1 | ||
| 4 | 11 | ashr | 1110 | 1011 | 1 | 0 |
Result . It is negative; its 2's complement is .
Flowchart
Start: AC <- 0, Q-1 <- 0, M <- multiplicand, Q <- multiplier, SC <- n
|
v
+--> Q0 Q-1 ?
| 10 : AC <- AC + (-M) (AC - M)
| 01 : AC <- AC + M
| 00 / 11 : no operation
| |
| v
| ashr (AC, Q, Q-1)
| SC <- SC - 1
| |
| v
+-- no --- SC = 0 ?
| yes
v
End (product in AC and Q)
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 AD · 10 marks
What is the use of control address register in micro programmed organization?
Answer
The control address register (CAR) holds the address of the next microinstruction to be read from control memory in a microprogrammed control unit.
Its uses:
- It supplies the address to the control memory, so the selected microinstruction is read into the control data register and its bits generate the control signals.
- It is loaded with the next address, which comes from one of these sources: increment of CAR (sequential execution), the branch address field (jump), the mapping logic (starting address of the microroutine for the opcode), or the subroutine register (return from a microsubroutine call).
- It is loaded with the initial address at reset or after each instruction fetch, so the correct microprogram starts.
In effect, it plays the role in the control unit that the program counter plays for the machine instructions.
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 AD · 10 marks
What is the purpose of strobe pulse in asynchronous data transfer? Explain how handshaking method resolve the problem in strobe control method.
Answer
Purpose of the strobe pulse
In asynchronous data transfer the source and destination units have independent clocks, so a control signal is needed to time the transfer. The strobe pulse is a single control line that tells the receiving unit when valid data is on the data bus.
- Source-initiated strobe: the source places data on the bus and, after a short delay, pulses the strobe so the destination can accept the data.
- Destination-initiated strobe: the destination pulses the strobe to request data, and the source then places data on the bus.
Problem with strobe control
There is no feedback. In source-initiated transfer the source cannot know whether the destination actually received the data; in destination-initiated transfer the destination cannot know whether the data placed on the bus is valid. Slow units can lose data.
How handshaking solves it
Handshaking uses two control lines, one in each direction, so each step is acknowledged.
Source-initiated:
- The source places data on the bus and enables data valid.
- The destination accepts the data and enables data accepted.
- The source sees the acknowledgement, disables data valid and removes the data.
- The destination disables data accepted, ready for the next transfer.
Destination-initiated:
- The destination enables ready for data.
- The source places data on the bus and enables data valid.
- The destination accepts the data and disables ready for data.
- The source disables data valid and removes the data.
Each unit proceeds only when the other has responded, so transfer is reliable between units of different speeds, and faulty units are detected (a time-out circuit can be added when no reply arrives).
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
- 2021 AD · 10 marks
What do you mean by multiprocessor? List different interconnection structures and explain any two of them.
Answer
Multiprocessor: a computer system with two or more CPUs that share memory and I/O under one integrated operating system, executing several programs or parts of a program at the same time. It increases throughput, speed and reliability.
Interconnection structures
- Time-shared common bus
- Multiport memory
- Crossbar switch
- Multistage switching network
- Hypercube interconnection
Time-shared common bus: all processors, memory modules and I/O units are connected to one common bus. Only one processor can use the bus at a time; others must wait, so a bus arbitration scheme (priority, daisy chain, etc.) is used. It is simple and cheap and easy to expand, but total transfer rate is limited by the single bus and a bus failure stops the entire system.
Crossbar switch: there is a switch at each crosspoint between every processor and every memory module. A path can be set up between any processor and any module, and several processors can transfer simultaneously to different modules. Each module has its own multiplexer and arbitration logic to resolve conflicts when more than one processor requests the same module. It gives the highest bandwidth and parallelism, but the hardware is expensive for processors and modules ( crosspoints).
Answer checked by Claude Sonnet · Oct 21, 2026
Test yourself · 2 MCQs
Loading…
Questions from TU BIM Third Semester Model Questions 2023 (IT 237, ACC 201, IT 236, STT 201, IT 238) (Faculty of Management model question set 2023, BIM third semester (new course)), TU BIM Third Semester Model Question 2023 ACC 201 Financial Accounting (Faculty of Management model question 2023), TU BIM Third Semester Model Question 2023 IT 236 Microprocessor and Computer Architecture (Faculty of Management model question 2023), TU BIM Third Semester Model Question 2023 STT 201 Business Statistics (Faculty of Management model question 2023), TU BIM Third Semester Model Question 2023 IT 238 Data Structure and Algorithms (Faculty of Management model question 2023), TU BIM Third Semester Model Question 2023 STT 201 Business Statistics (Lab) (Faculty of Management model question 2023, MS-Excel practical), TU BIM 2014 Third Semester IT 215 Web Programming I (model question) (Faculty of Management model question 2014 (old course), via EducateNepal), TU BIM 2014 Third Semester IT 216 Java Programming I (model question) (Faculty of Management model question 2014 (old course), via EducateNepal), TU BIM 2014 Third Semester IT 217 Computer Organization (model question) (Faculty of Management model question 2014 (old course), via EducateNepal), TU BBA/BIM/BBM 2015 Third Semester STT 201 Business Statistics (model question) (Faculty of Management model question 2015 (old course), via EducateNepal), TU BBA/BIM/BBM 2015 Third Semester STT 201 Business Statistics Lab (model question) (Faculty of Management model question 2015, lab work using MS-Excel), TU BIM Computer Organization (IT 217) 2012 AD (Board exam paper, 2012 AD), TU BIM Computer Organization (IT 217) 2014 AD (Board exam paper, 2014 AD), TU BIM Computer Organization (IT 217) 2015 AD (Board exam paper, 2015 AD), TU BIM Computer Organization (IT 217) 2016 AD (Board exam paper, 2016 AD), TU BIM Computer Organization (IT 217) 2017 AD (Board exam paper, 2017 AD), TU BIM Computer Organization (IT 217) 2018 AD (Board exam paper, 2018 AD), TU BIM Computer Organization (IT 217) 2019 AD (Board exam paper, 2019 AD), TU BIM Computer Organization (IT 217) 2021 AD (Board exam paper, 2021 AD), TU BIM Web Programming I (IT 215) 2014 AD (Board exam paper, 2014 AD), TU BIM Web Programming I (IT 215) 2015 AD (Board exam paper, 2015 AD), TU BIM Web Programming I (IT 215) 2016 AD (Board exam paper, 2016 AD), TU BIM Web Programming I (IT 215) 2017 AD (Board exam paper, 2017 AD), TU BIM Web Programming I (IT 215) 2018 AD (Board exam paper, 2018 AD), TU BIM Web Programming I (IT 215) 2019 AD (Board exam paper, 2019 AD), TU BIM Web Programming I (IT 215) 2021 AD (Board exam paper, 2021 AD), TU BIM Java Programming I (IT 216) 2015 AD (Board exam paper, 2015 AD), TU BIM Java Programming I (IT 216) 2017 AD (Board exam paper, 2017 AD), TU BIM Java Programming I (IT 216) 2018 AD (Board exam paper, 2018 AD), TU BIM Java Programming I (IT 216) 2019 AD (Board exam paper, 2019 AD), TU BIM Java Programming I (IT 216) 2021 AD (Board exam paper, 2021 AD), TU BIM Business Statistics (STT 201) 2009 AD (Board exam paper, 2009 AD), TU BIM Business Statistics (STT 201) 2010 AD (Board exam paper, 2010 AD), TU BIM Business Statistics (STT 201) 2021 AD (Board exam paper, January 2021 (Full Marks 36, answer any six)), TU BIM Business Statistics (STT 201) 2013 AD (Board exam paper, 2013 (Full Marks 36)), TU BIM Business Statistics (STT 201) 2014 AD (Board exam paper, 2014 AD), TU BIM Business Statistics (STT 201) 2015 AD (Board exam paper, 2015 AD), TU BIM Business Statistics (STT 201) 2016 AD (Board exam paper, 2016 AD), TU BIM Business Statistics (STT 201) 2018 AD (Board exam paper, 2018 AD), TU BIM Business Statistics (STT 201) 2019 AD (Board exam paper, 2019 AD), TU BIM Financial Accounting (ACC 201) 2015 AD (Board exam paper, 2015 AD), TU BIM Financial Accounting (ACC 201) 2016 AD (Board exam paper, 2016 AD), TU BIM Financial Accounting (ACC 201) 2017 AD (Board exam paper, 2017 AD), TU BIM Financial Accounting (ACC 201) 2018 AD (Board exam paper, 2018 AD), TU BIM Financial Accounting (ACC 201) 2019 AD (Board exam paper, 2019 AD), TU BIM Financial Accounting (ACC 201) 2021 AD (Board exam paper, 2021 AD), TU BIM Financial Accounting (ACC 201) 2014 AD (Board exam paper, 2014 AD), TU BIM Financial Accounting (ACC 201) 2013 AD (Board exam paper, 2013 AD), TU BIM Financial Accounting (ACC 201) 2012 AD (Board exam paper, 2012 AD), TU BIM Financial Accounting (ACC 201) 2010 AD (Board exam paper, 2010 AD) and TU BIM Financial Accounting (ACC 201) 2009 AD (Board exam paper, 2009 AD). Answers are written for this site; check them against your class notes.