GATE 2006
191 questions
MCQ 1911-mark 191
Questions 66–70 of 191
Consider the circuit below. Which one of the following options correctly represents
f (x,y,z)?
Answer: (A)
Let the output of the first MUX be
The output of the second MUX is
So the answer is Option A.
Note:
- is the output of a MUX. Here and are the inputs and is the select line.
- Distributive property:
Consider the circuit in the diagram. The operator represents Ex-OR. The D flip-flops are initialized to zeroes (cleared).
The following data : 100110000 is supplied to the "data" terminal in nine clock cycles. After that the values of are
The following data : 100110000 is supplied to the "data" terminal in nine clock cycles. After that the values of are
Answer: (C)
From the figure, the next-state equations are:
, , .
So on each clock: new = data, new = old old , new = old . The start state is .
After 9 clocks, , , , so .
Answer: (C)
, , .
So on each clock: new = data, new = old old , new = old . The start state is .
After 9 clocks, , , , so .
Answer: (C)
You are given a free running clock with a duty cycle of 50% and a digital waveform f which changes only at the negative edge of the clock. Which one of the following circuits (using clocked D flip flops) will delay the phase of f by ?
Answer: (C)
In the timing diagram below, f is taken as a square wave that changes at falling clock edges, so f stays high for one clock period and low for one clock period. Its period is two clock periods, so a delay of means a delay of exactly one clock period, with f not inverted. A D flip-flop with a plain clock input samples D at the rising edge; one with an inverter on its clock samples at the falling edge.
Circuit C: flip-flop 1 samples f at the rising edge. f is steady then, since it changes only at falling edges, so its output is f held until the next rising edge. Flip-flop 2 has an inverted clock, so it samples that output at the next falling edge. f changed at a falling edge and its copy appears at the next falling edge, one clock period later. Nothing is inverted, so the output is f delayed by one clock period, which is .
Why the others fail:
(B) The inverter at the input of flip-flop 1 stores . The output is delayed by one clock period. For this square wave that looks the same as f itself (no shift, ), and for any other f it is inverted, so it is not a delay.
(A) Flip-flop 1 samples at the falling edge, the same instant f changes. If it takes the new value of f, the total delay is half a clock period (, as drawn); if it takes the old value, the total delay is one and a half clock periods (). Either way it is not one clock period. The inverter at its input is undone by taking .
(D) Flip-flop 1 also samples at the falling edge, so the delay is not one clock period, as in (A). The output is also taken from , so it is inverted as well.
Timing diagram:
Answer: (C)
Circuit C: flip-flop 1 samples f at the rising edge. f is steady then, since it changes only at falling edges, so its output is f held until the next rising edge. Flip-flop 2 has an inverted clock, so it samples that output at the next falling edge. f changed at a falling edge and its copy appears at the next falling edge, one clock period later. Nothing is inverted, so the output is f delayed by one clock period, which is .
Why the others fail:
(B) The inverter at the input of flip-flop 1 stores . The output is delayed by one clock period. For this square wave that looks the same as f itself (no shift, ), and for any other f it is inverted, so it is not a delay.
(A) Flip-flop 1 samples at the falling edge, the same instant f changes. If it takes the new value of f, the total delay is half a clock period (, as drawn); if it takes the old value, the total delay is one and a half clock periods (). Either way it is not one clock period. The inverter at its input is undone by taking .
(D) Flip-flop 1 also samples at the falling edge, so the delay is not one clock period, as in (A). The output is also taken from , so it is inverted as well.
Timing diagram:
Answer: (C)
When multiplicand Y is multiplied by multiplier using bit-pair recoding in Booth's algorithm, partial products are generated according to the following table.
The partial products for rows 5 and 8 are
The partial products for rows 5 and 8 are
Answer: (C)
Bit-pair recoding gives each bit pair a multiplier digit . The partial product is times Y.
Row 5, : , so the partial product is -2Y.
Row 8, : , so the partial product is 0.
The formula also gives the other rows: 001 gives +1, 010 gives +1, 011 gives +2, 101 gives -1, 110 gives -1, which agree with the table.
So rows 5 and 8 are -2Y and 0.
Answer: (C)
Row 5, : , so the partial product is -2Y.
Row 8, : , so the partial product is 0.
The formula also gives the other rows: 001 gives +1, 010 gives +1, 011 gives +2, 101 gives -1, 110 gives -1, which agree with the table.
So rows 5 and 8 are -2Y and 0.
Answer: (C)
The addition of 4-bit, two's complement, binary numbers 1101 and 0100 results in
Answer: (C)
Read both numbers in 4-bit 2's complement: and .
Add: . Keep 4 bits: the sum is (this is ), and the carry out of the top bit is 1.
Overflow happens only when both operands have the same sign bit and the result has the opposite sign bit. Here the operand sign bits are 1 and 0, which differ, so there is no overflow. A carry out alone does not mean overflow.
So the result is 0001 with no overflow. Options (A) and (D) report an overflow, and options (B) and (D) give , not .
Answer: (C)
Add: . Keep 4 bits: the sum is (this is ), and the carry out of the top bit is 1.
Overflow happens only when both operands have the same sign bit and the result has the opposite sign bit. Here the operand sign bits are 1 and 0, which differ, so there is no overflow. A carry out alone does not mean overflow.
So the result is 0001 with no overflow. Options (A) and (D) report an overflow, and options (B) and (D) give , not .
Answer: (C)