GATE 2006
191 questions
MCQ 1911-mark 191
Questions 61–65 of 191
The boolean function for a combinational circuit with four inputs is represented by the following Karnaugh map.
Which of the product terms given below is an essential prime implicant of the function?
Which of the product terms given below is an essential prime implicant of the function?
Answer: (D)
Number each cell by the bits , with as the top bit. The 1s are minterms .
The four corner cells (minterms ) are next to each other when the map wraps around. They form one group of four where and , so the term is . The neighbours of minterm 0 (cells 1 and 4) are 0, so no other prime implicant covers it. So is essential.
The other options are not essential:
(A) covers 7 and 15. Minterm 7 is also in (3, 7), and minterm 15 is also in (13, 15).
(B) covers 13 and 15. Minterm 13 is also in (9, 13), and minterm 15 is also in .
(C) covers only 8 and 10, which lie inside , so it is not even a prime implicant.
Answer: (D)
We consider addition of two 2's complement numbers and . A binary adder for adding unsigned binary numbers is used to add the two numbers. The sum is denoted by and the carryout by . Which one of the following options correctly identifies the overflow condition?
Answer: (B)
In the options, are the sign bits of the two numbers, is the sign bit of the sum, and is the carry out of the adder.
In 2's complement, overflow happens only when two numbers of the same sign give a sum of the opposite sign:
1. both positive () and the sum sign is 1;
2. both negative () and the sum sign is 0.
Adding a positive and a negative number never overflows.
Option B is . The first term is case 2 and the second term is case 1, so B is exactly the overflow condition.
Why the others fail (take ):
- A: is an overflow ( does not fit), but here , so A gives 0.
- C: is , no overflow, but and , so C gives 1.
- D: is , no overflow, but , so D gives 1.
Answer: (B)
In 2's complement, overflow happens only when two numbers of the same sign give a sum of the opposite sign:
1. both positive () and the sum sign is 1;
2. both negative () and the sum sign is 0.
Adding a positive and a negative number never overflows.
Option B is . The first term is case 2 and the second term is case 1, so B is exactly the overflow condition.
Why the others fail (take ):
- A: is an overflow ( does not fit), but here , so A gives 0.
- C: is , no overflow, but and , so C gives 1.
- D: is , no overflow, but , so D gives 1.
Answer: (B)
The majority function is a Boolean function f(x,y,z) that takes the value 1 whenever a majority of the variables x,y,z are 1. In the circuit diagram for the majority function shown below, the logic gates for the boxes labeled P and Q are, respectively,
Answer: (D)
The box with output f is a 2-to-1 multiplexer with select x. When x = 1 it passes P, and when x = 0 it passes Q:
The majority function is 1 when at least two of x, y, z are 1:
Write , so
(because ).
Compare with : is an OR gate, and is an AND gate.
Answer: (D)
The majority function is 1 when at least two of x, y, z are 1:
Write , so
(because ).
Compare with : is an OR gate, and is an AND gate.
Answer: (D)
Consider a boolean function f (w,x,y,z). Suppose that exactly one of its inputs is allowed to change at a time. If the function happens to be true for two input vectors i1=(w1,x1,y1,z1) and i2=(w2,x2,y2,z2), we would like the function to remain true as the input changes from i1 to i2(i1 and i2 differ in exactly one bit position), without becoming false momentarily. Let f(w,x,y,z)=(5,7,11,12,13,15). Which of the following cube covers of f will ensure that the required property
is satisfied?
Answer: (D)
The question asks for a cover of f in which a one-bit input change between two 1s never makes the output drop to 0 for a moment. That glitch is called a static-1 hazard.
A static-1 hazard can occur in a two-level AND-OR (SOP) circuit. If two adjacent 1s are covered by different product terms and no single term covers both, then when the input changes one AND gate turns off and another turns on. Because of gate delays, the first can turn off before the second turns on, and the output dips to 0 momentarily.
Example: with , so the output is 1. When changes to 1 the output should stay 1 because of the term. But if turns 0 before turns 1, the output is momentarily 0.
On a K-map, the hazard is avoided when every pair of adjacent 1s lies inside a common implicant. In the K-map below, the extra middle group covers the pair that the other two groups share no term for.
Here , so the K-map is
The adjacent pairs of 1s are (5, 7), (5, 13), (7, 15), (13, 15), (12, 13) and (11, 15). A cover is hazard-free if every one of these pairs sits inside one of its terms.
A.
Minterm 13 (1101) is covered only by and . Minterm 15 (1111) is covered only by and . No term holds both, so when y changes from 0 to 1 (with w = x = z = 1) the output can dip to 0. A term is needed to cover the pair (13, 15). Hazard possible.
B.
The term covers minterm 14 (1110), where f = 0, so it is not an implicant of f. Also minterms 12 and 13 are not covered by any term. This is not a cover of f.
C.
Minterm 12 is covered only by and minterm 13 only by , so the pair (12, 13) has no common term. In the same way minterm 11 is covered only by and minterm 15 only by , so the pair (11, 15) has no common term. Hazard possible. It would be avoided by using instead of and instead of .
D.
These terms cover all six minterms of f, and each is an implicant of f. Each adjacent pair lies inside a common term: (5, 7) in , (5, 13) in , (7, 15) in , (13, 15) in , (12, 13) in , (11, 15) in . So there is no hazard.
Answer: (D)
A static-1 hazard can occur in a two-level AND-OR (SOP) circuit. If two adjacent 1s are covered by different product terms and no single term covers both, then when the input changes one AND gate turns off and another turns on. Because of gate delays, the first can turn off before the second turns on, and the output dips to 0 momentarily.
Example: with , so the output is 1. When changes to 1 the output should stay 1 because of the term. But if turns 0 before turns 1, the output is momentarily 0.
On a K-map, the hazard is avoided when every pair of adjacent 1s lies inside a common implicant. In the K-map below, the extra middle group covers the pair that the other two groups share no term for.
Here , so the K-map is
The adjacent pairs of 1s are (5, 7), (5, 13), (7, 15), (13, 15), (12, 13) and (11, 15). A cover is hazard-free if every one of these pairs sits inside one of its terms.
A.
Minterm 13 (1101) is covered only by and . Minterm 15 (1111) is covered only by and . No term holds both, so when y changes from 0 to 1 (with w = x = z = 1) the output can dip to 0. A term is needed to cover the pair (13, 15). Hazard possible.
B.
The term covers minterm 14 (1110), where f = 0, so it is not an implicant of f. Also minterms 12 and 13 are not covered by any term. This is not a cover of f.
C.
Minterm 12 is covered only by and minterm 13 only by , so the pair (12, 13) has no common term. In the same way minterm 11 is covered only by and minterm 15 only by , so the pair (11, 15) has no common term. Hazard possible. It would be avoided by using instead of and instead of .
D.
These terms cover all six minterms of f, and each is an implicant of f. Each adjacent pair lies inside a common term: (5, 7) in , (5, 13) in , (7, 15) in , (13, 15) in , (12, 13) in , (11, 15) in . So there is no hazard.
Answer: (D)
Given two three bit numbers and and c, the carry in, the function that represents the carry generate function when these two numbers are added is
Answer: (A)
The options contain only the bits a and b and no carry-in c, so take c = 0. Then the carry out of each bit position is the majority of that position's two bits and the carry coming in.
Put in :
Put in :
This matches option (A) term by term.
(With a carry-in, would add terms with c, and none of the options has c.)
Answer: (A)
Put in :
Put in :
This matches option (A) term by term.
(With a carry-in, would add terms with c, and none of the options has c.)
Answer: (A)