(a) Assume that a CPU has only two registers R₁ and R₂ and that only the…

PYQ GATE 1994

(a) Assume that a CPU has only two registers R₁ and R₂ and that only the following instruction is available XOR Rᵢ,Rⱼ; {Rᵢ ← Rᵢ ⊕ Rⱼ, for i, j = 1,2}

Using this XOR instruction, find an instruction sequence in order to exchange the contents of the registers R₁ and R₂.

(b) The line p of the circuit shown in figure has stuck at 1 fault. Determine an input test to detect the fault.

A and B feed a NAND gate whose output p has a stuck-at-1 fault; p and C feed a second NAND gate.

Attempted by 1 students.

Sign up free to check your answer

Sign up free

Explore the full course: Zero To Hero

Loading lesson…