A CPU has 24-bit instructions. A program starts at address 300 (in decimal). Which one of the following is a legal program counter (all values in decimal)? [GATE CSE 2006]
Instructor: Ayon Chakraborty
Practice questions from past GATE papers
Chapter 1
Foundations: From Software to Digital Hardware
Instructions, addressing, operands and register transfers
Consider the following program segment. Here R1, R2 and R3 are the general purpose registers.
| Instruction | Operation | Instruction size (no. of words) |
MOV R1, (3000) | R1 M[3000] | 2 |
LOOP: MOV R2, (R3) | R2 M[R3] | 1 |
ADD R2, R1 | R2 R1 R2 | 1 |
MOV (R3), R2 | M[R3] R2 | 1 |
INC R3 | R3 R3 1 | 1 |
DEC R1 | R1 R1 1 | 1 |
BNZ LOOP | Branch on not zero | 2 |
HALT | Stop | 1 |
Assume that the content of memory location 3000 is 10 and the content of the register R3 is 2000. The content of each of the memory locations from 2000 to 2010 is 100. The program is loaded from the memory location 1000. All the numbers are in decimal.
Assume that the memory is word addressable. The number of memory references for accessing the data in executing the program completely is [GATE CSE 2007]
(Common data with Question 2.) Assume that the memory is word addressable. After the execution of this program, the content of memory location 2010 is [GATE CSE 2007]
Which of the following is/are true of the auto-increment addressing mode?
| I. | It is useful in creating self-relocating code. |
| II. | If it is included in an Instruction Set Architecture, then an additional ALU is required for effective address calculation. |
| III. | The amount of increment depends on the size of the data item accessed. |
[GATE CSE 2008]
Consider a hypothetical processor with an instruction of type LW R1, 20(R2), which during execution reads a 32-bit word from memory and stores it in a 32-bit register R1. The effective address of the memory location is obtained by the addition of a constant 20 and the contents of register R2. Which of the following best reflects the addressing mode implemented by this instruction for the operand in memory? [GATE CSE 2011]
Consider the following sequence of micro-operations.
| MBR PC |
| MAR X |
| PC Y |
| Memory MBR |
Which one of the following is a possible operation performed by this sequence? [GATE CSE 2013]
A machine has a 32-bit architecture, with 1-word long instructions. It has 64 registers, each of which is 32 bits long. It needs to support 45 instructions, which have an immediate operand in addition to two register operands. Assuming that the immediate operand is an unsigned integer, the maximum value of the immediate operand is ________. [GATE CSE 2014]
For computer based on three-address instruction formats, each address field can be used to specify which of the following:
| (S1) | A memory operand |
| (S2) | A processor register |
| (S3) | An implied accumulator register |
[GATE CSE 2015]
A processor can support a maximum memory of 4 GB, where the memory is word-addressable (a word consists of two bytes). The size of the address bus of the processor is at least ________ bits. [GATE CSE 2016]
A processor has 40 distinct instruction and 24 general purpose registers. A 32-bit instruction word has an opcode, two registers operands and an immediate operand. The number of bits available for the immediate operand field is ________. [GATE CSE 2016]
Consider a processor with 64 registers and an instruction set of size twelve. Each instruction has five distinct fields, namely, opcode, two source register identifiers, one destination register identifier, and a twelve-bit immediate value. Each instruction must be stored in memory in a byte-aligned fashion. If a program has 100 instructions, the amount of memory (in bytes) consumed by the program text is ________. [GATE CSE 2016]
Consider the C struct defined below:
struct data { |
int marks [100]; |
char grade; |
int cnumber; |
}; |
struct data student; |
The base address of student is available in register R1. The field student.grade can be accessed efficiently using: [GATE CSE 2017]
Consider a RISC machine where each instruction is exactly 4 bytes long. Conditional and unconditional branch instructions use PC-relative addressing mode with Offset specified in bytes to the target location of the branch instruction. Further the Offset is always with respect to the address of the next instruction in the program sequence. Consider the following instruction sequence
| Instr. No. | Instruction |
: add R2, R3, R4 | |
: sub R5, R6, R7 | |
: cmp R1, R9, R10 | |
: beq R1, Offset |
If the target of the branch instruction is , then the decimal value of the Offset is ________. [GATE CSE 2017]
A processor has 16 integer registers (R0, R1, …, R15) and 64 floating point registers (F0, F1, …, F63). It uses a 2-byte instruction format. There are four categories of instructions: Type-1, Type-2, Type-3, and Type-4. Type-1 category consists of four instructions, each with 3 integer register operands (3Rs). Type-2 category consists of eight instructions, each with 2 floating point register operands (2Fs). Type-3 category consists of fourteen instructions, each with one integer register operand and one floating point register operand (1R+1F). Type-4 category consists of instructions, each with a floating point register operand (1F). The maximum value of is ________. [GATE CSE 2018]
Consider the following data path diagram.
[GATE CSE 2020]
Consider an instruction: R0 R1 R2. The following steps are used to execute it over the given data path. Assume that PC is incremented appropriately. The subscripts and indicate read and write operations, respectively.
| 1. | R2, TEMP1, ALU, TEMP2 |
| 2. | R1, TEMP1 |
| 3. | PC, MAR, MEM |
| 4. | TEMP2, R0 |
| 5. | MDR, IR |
Which one of the following is the correct order of execution of the above steps?
A processor has 64 registers and uses 16-bit instruction format. It has two types of instructions: I-type and R-type. Each I-type instruction contains an opcode, a register name, and a 4-bit immediate value. Each R-type instruction contains an opcode and two register names. If there are 8 distinct I-type opcodes, then the maximum number of distinct R-type opcodes is ________. [GATE CSE 2020]
Consider the following instruction sequence where registers R1, R2 and R3 are general purpose and MEMORY denotes the content at the memory location .
| Instruction | Semantics | Instruction size (bytes) |
MOV R1, (5000) | R1 MEMORY | 4 |
MOV R2, (R3) | R2 MEMORYR3 | 4 |
ADD R2, R1 | R2 R1 R2 | 2 |
MOV (R3), R2 | MEMORYR3 R2 | 4 |
INC R3 | R3 R3 1 | 2 |
DEC R1 | R1 R1 1 | 2 |
BNZ 1004 | Branch if not zero to the given absolute address | 2 |
HALT | Stop | 1 |
Assume that the content of the memory location 5000 is 10, and the content of the register R3 is 3000. The content of each of the memory locations from 3000 to 3020 is 50. The instruction sequence starts from the memory location 1000. All the numbers are in decimal format. Assume that the memory is byte addressable. After the execution of the program, the content of memory location 3010 is ________. [GATE CSE 2021]
Consider the given C-code and its corresponding assembly code, with a few operands -- being unknown. Some useful information as well as the semantics of each unique assembly instruction is annotated as inline comments in the code. The memory is byte-addressable. [GATE CSE 2023]
Which one of the following options is a CORRECT replacement for operands in the position in the above assembly code?
A processor with 16 general purpose registers uses a 32-bit instruction format. The instruction format consists of an opcode field, an addressing mode field, two register operand fields, and a 16-bit scalar field. If 8 addressing modes are to be supported, the maximum number of unique opcodes possible for every addressing mode is ________ [GATE CSE 2024]
A processor uses a 32-bit instruction format and supports byte-addressable memory access. The ISA of the processor has 150 distinct instructions. The instructions are equally divided into two types, namely R-type and I-type, whose formats are shown below.
R-type Instruction Format:
| OPCODE | UNUSED | DST Register | SRC Register 1 | SRC Register 2 |
I-type Instruction Format:
| OPCODE | DST Register | SRC Register | # Immediate value/address |
In the OPCODE, 1 bit is used to distinguish between I-type and R-type instructions and the remaining bits indicate the operation. The processor has 50 architectural registers, and all register fields in the instructions are of equal size. Let be the number of bits used to encode the UNUSED field, be the number of bits used to encode the OPCODE field, and be the number of bits used to encode the immediate value/address field. The value of is ________ [GATE CSE 2024]
A machine has a 32-bit architecture with 1-word long instructions. It has 24 registers and supports an instruction set of size 40. Each instruction has five distinct fields, namely opcode, two source register identifiers, one destination register identifier, and an immediate value. Assuming that the immediate operand is an unsigned integer, its maximum value is ________. [GATE ECE 2024]
A partial data path of a processor is given in the figure, where RA, RB, and RZ are 32-bit registers. Which option(s) is/are CORRECT related to arithmetic operations using the data path as shown? [GATE CSE 2025]
A processor has 64 general-purpose registers and 50 distinct instruction types. An instruction is encoded in 32-bits. What is the maximum number of bits that can be used to store the immediate operand for the given instruction?
ADD R1, #25 // R1 = R1 + 25 |
[GATE CSE 2025]
Which of the following is/are part of an Instruction Set Architecture of a processor? [GATE CSE 2025]
Consider a processor P whose instruction set architecture is the load-store architecture. The instruction format is such that the first operand of any instruction is the destination operand. Which one of the following sequences of instructions corresponds to the high-level language statement ?
Note: X, Y, and Z are memory operands. R0, R1, and R2 are registers. [GATE CSE 2026]
Consider a processor that has 16 general purpose registers and it uses 2-byte instruction format for all its instructions. Variable-sized opcodes are permitted. There are three different types of instructions; M-type, R-type, and C-type. Each M-type instruction has 2 register operands and a 6-bit immediate operand. Each R-type instruction has 3 register operands. Each C-type instruction has a register operand and a 6-bit offset value. If there are 2 unique M-type opcodes and 7 unique R-type opcodes, which one of the following options gives the maximum number of unique opcodes possible for C-type instructions? [GATE CSE 2026]
Chapter 2
Data, Bits, and Logic
Number representation, radix conversion and arithmetic
We consider the addition of two 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 carry-out by . Which one of the following options correctly identifies the overflow condition? [GATE CSE 2006]
and are two 5-bit binary numbers represented in two's complement format. The sum of and represented in two's complement format using 6 bits is [GATE ECE 2007]
Let denote number system radix. The only value(s) of that satisfy the equation is/are [GATE CSE 2008]
The two numbers represented in signed 2's complement form are and . If is subtracted from , the value obtained in signed 2's complement form is [GATE ECE 2008]
is equivalent to [GATE CSE 2009]
is a -bit signed integer. The 's complement representation of is . The 's complement representation of is [GATE CSE 2010]
The smallest integer that can be represented by an number in complement form is [GATE CSE 2013]
The base (or radix) of the number system such that the following equation holds is________.
[GATE CSE 2014, Set 1]
Consider the equation with and as unknown. The number of possible solutions is ________ . [GATE CSE 2014, Set 2]
Consider the function func shown below:
int func(int num)
{
int count = 0;
while (num)
{
count++;
num >>= 1;
}
return (count);
}
The value returned by func(435) is ________. [GATE CSE 2014, Set 2]
The number of bytes required to represent the decimal number 1856357 in packed BCD (Binary Coded Decimal) form is ________ . [GATE ECE 2014, Set 2]
The complement representation of an integer is its decimal representation is ________ [GATE CSE 2016, Set 1]
Let be the number of distinct -bit integers in complement representation. Let be the number of distinct -bit integers in sign magnitude representation Then is________. [GATE CSE 2016, Set 2]
When two numbers and in 's complement representation (with and as the least significant bits) are added using a ripple-carry adder, the sum bits obtained are and the carry bits are . An overflow is said to have occurred if [GATE CSE 2017, Set 1]
(A) the carry bit is
(B) all the carry bits are
(C) is
(D) is
The representation of the value of a unsigned integer in hexadecimal number system is . The representation of the value of in octal number system is [GATE CSE 2017, Set 2]
Consider a quadratic equation with coefficients in a base . The solutions of this equation in the same base are and . Then ________. [GATE CSE 2017, Set 2]
In -bit 's complement representation, the decimal number is: [GATE CSE 2019]
Consider where and Z are all in sign-magnitude form. X and Y are each represented in bits. To avoid overflow, the representation of would require a minimum of: [GATE CSE 2019]
, , and are the decimal integers corresponding to the 4-bit binary number 1100 considered in signed magnitude, 1's complement, and 2's complement representations, respectively. The 6-bit 2's complement representation of is [GATE ECE 2020]
Let the representation of a number in base be . What is the hexadecimal representation of the number? [GATE CSE 2021, Set 1]
Let and be two registers that store numbers in complement form. For the operation which one of the following values of and gives an arithmetic overflow? [GATE CSE 2022]
Consider a system that uses bits for representing signed integers in 's complement format. In this system, two integers and are represented as = and =. Which one of the following operations will result in either an arithmetic overflow or an arithmetic underflow? [GATE CSE 2024, Set 1]
In a number system of base , the equation has as one of its solutions. The value of is ________. [GATE ECE 2024]
The number can be represented as in -bit 's complement representation. Which of the following is/are CORRECT 's complement representation(s) of ? [GATE CSE 2025, Set 1]
Consider the 8-bit signed integers , and represented using the sign-magnitude form. The binary representations of and are as follows:
Which of the following operations to compute result(s) in an arithmetic overflow? [GATE CSE 2026, Set 1]
In a system, numbers are represented using 4-bit two's complement form. Consider four numbers , , and in the system. Which of the following operations will result in arithmetic overflow? [GATE CSE 2026, Set 2]
What is the 10's complement of ? [GATE ECE 2026]
The 's complement representation of the decimal value is [GATE CSE 2002]
Zero has two representations in [GATE CSE 1999]
The number in complement representation is [GATE CSE 2000]
The 's complement representation of in hexadecimal is [GATE CSE 2001]
The decimal value [GATE CSE 2002]
The range of integers that can be represented by an bit complement number system is: [GATE CSE 2005]
Chapter 3
Combinational Logic and the TARA ALU
Boolean functions, gates, multiplexers and combinational circuits
A logical binary relation , is defined as follows:
| A | B | |
| True | True | True |
| True | False | True |
| False | True | False |
| False | False | True |
Let be the unary negation (NOT) operator, with higher precedence than .
Which one of the following is equivalent to ? [GATE CSE 2006]
Consider the circuit above. Which one of the following options correctly represents [GATE CSE 2006]
Given two three bit numbers and and the carry in, the function that represents the carry generate function when these two numbers are added is: [GATE CSE 2006]
(A)
(B)
(C)
(D)
Consider a Boolean function . 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 and , we would like the function to remain true as the input changes from to ( and differ in exactly one bit position) without becoming false momentarily.
Let . Which of the following cube covers of will ensure that the required property is satisfied? [GATE CSE 2006]
What is the maximum number of different Boolean functions involving Boolean variables? [GATE CSE 2007]
How many -to- line decoders with an enable input are needed to construct a -to- line decoder without using any other logic gates? [GATE CSE 2007]
Consider the following Boolean function of four variables:
The function is [GATE CSE 2007]
Let . Which of the following expressions are NOT equivalent to ?
P:
Q:
R:
S: [GATE CSE 2007]
Define the connective for the Boolean variables and as:
Let . Consider the following expressions , and .
Which of the following is TRUE? [GATE CSE 2007]
Suppose only one multiplexer and one inverter are allowed to be used to implement any Boolean function of variables. What is the minimum size of the multiplexer needed? [GATE CSE 2007]
In a look-ahead carry generator, the carry generate function and the carry propagate function for inputs and are given by:
The expressions for the sum bit and the carry bit of the look ahead carry adder are given by:
Consider a two-level logic implementation of the look-ahead carry generator. Assume that all and are available for the carry generator circuit and that the AND and OR gates can have any number of inputs. The number of AND gates and OR gates needed to implement the look-ahead carry generator for a -bit adder with and as its outputs are respectively: [GATE CSE 2007]
The Boolean function is to be realized using only 2-input NAND gates. The minimum number of gates required is [GATE ECE 2007]
The Boolean expression can be minimized to [GATE ECE 2007]
In the following circuit, is given by
[GATE ECE 2007]
In the Karnaugh map shown below, denotes a don't care term. What is the minimal form of the function represented by the Karnaugh map?
[GATE CSE 2008]
If are Boolean variables, then
simplifies to [GATE CSE 2008]
The logic function implemented by the following circuit at the terminal OUT is
[GATE ECE 2008]
Which of the following Boolean Expressions correctly represents the relation between , , and ?
[GATE ECE 2008]
For the circuit shown in the following figure, - are inputs to the multiplexer. (MSB) and are control bits.
The output can be represented by [GATE ECE 2008]
What is the minimum number of gates required to implement the Boolean function if we have to use only gates? [GATE CSE 2009]
The binary operation is defined as follows
| P | Q | |
| T | T | T |
| T | F | T |
| F | T | F |
| F | F | T |
Which one of the following is equivalent to ? [GATE CSE 2009]
If in the logic equation , then [GATE ECE 2009]
What are the minimum number of 2-to-1 multiplexers required to generate a 2-input AND gate and a 2-input Ex-OR gate ? [GATE ECE 2009]
Statement for Linked Answer Questions 59 and 60.
Two products are sold from a vending machine, which has two push buttons and . When a button is pressed, the price of the corresponding product is displayed in a 7-segment display.
- If no buttons are pressed, ‘0' is displayed, signifying ‘Rs. 0'.
- If only is pressed, ‘2' is displayed, signifying ‘Rs. 2'.
- If only is pressed, ‘5' is displayed, signifying ‘Rs. 5'.
- If both and are pressed, ‘E' is displayed, signifying ‘Error'.
The names of the segments in the 7-segment display, and the glow of display for ‘0', ‘2', ‘5' and ‘E', are shown below.
Consider
(i) push button pressed/not pressed is equivalent to logic 1/0 respectively,
(ii) a segment glowing / not glowing in the display is equivalent to logic 1/0 respectively.
If segments to are considered as functions of and , then which of the following is correct ? [GATE ECE 2009]
Use the shared statement in Question 24.
What are the minimum numbers of NOT gates and 2-input OR gates required to design the logic of the driver for this 7-segment display ? [GATE ECE 2009]
The minterm expansion of is [GATE CSE 2010]
The Boolean expression of the output of the multiplexer shown below is
[GATE CSE 2010]
What is the boolean expression for the output of the combinational logic circuit of NOR gates given below?
[GATE CSE 2010]
Match the logic gates in Column A with their equivalents in Column B.
[GATE ECE 2010]
For the output to be 1 in the logic circuit shown, the input combination should be
[GATE ECE 2010]
The simplified SOP (Sum of Product) from the Boolean expression
is [GATE CSE 2011]
Which one of the following circuits is NOT equivalent to a 2-input XNOR (exclusive NOR) gate?
[GATE CSE 2011]
The logic function implemented by the circuit below is (ground implies a logic “0)
[GATE ECE 2011]
The truth table
represents the Boolean function [GATE CSE 2012]
The amount of ROM needed to implement a multiplier is [GATE CSE 2012]
What is the minimal form of the Karnaugh map shown below? Assume that denotes a don't care term
[GATE CSE 2012]
The output of a 2-bit comparator is logic 1 whenever the 2-bit input is greater than the 2-bit input . The number of combinations for which the output is logic 1, is [GATE ECE 2012]
In the following truth table, if and only if the input is valid.
What function does the truth table represent? [GATE CSE 2013]
Which one of the following expressions does NOT represent exclusive NOR of and ? [GATE CSE 2013]
A bulb in a staircase has two switches, one switch being at the ground floor and the other one at the first floor. The bulb can be turned ON and also can be turned OFF by any one of the switches irrespective of the state of the other switch. The logic of switching of the bulb resembles [GATE ECE 2013]
In the circuit shown below, has negligible collector-to-emitter saturation voltage and the diode drops negligible voltage across it under forward bias. If is V, and are digital signals with 0 V as logic 0 and as logic 1, then the Boolean expression for is
[GATE ECE 2013]
Consider the following Boolean expression for F:
The minimal sumofproducts form of is [GATE CSE 2014, Set 1]
Consider the multiplexer with two select lines and given below
The minimal sum-of-products form of the Boolean expression for the output of the multiplexer is [GATE CSE 2014, Set 1]
The dual of a Boolean function , written as is the same expression as that of with and swapped. is said to be self-dual if . The number of self-dual functions with Boolean variables is [GATE CSE 2014, Set 2]
Consider the following minterm expression for :
The minterms , , and are 'do not care' terms. The minimal sum-of-products form for is [GATE CSE 2014, Set 3]
Consider the following combinational function block involving four Boolean variables where are inputs and is the output.
f(x, a, b, y)
{
if(x is 1) y = a;
else y = b;
}
Which one of the following digital logic blocks is the most suitable for implementing this function? [GATE CSE 2014, Set 3]
Let denote the exclusive OR (XOR) operation. Let '' and '' denote the binary constants. Consider the following Boolean expression for over two variables and :
The equivalent expression for is [GATE CSE 2014, Set 3]
The Boolean expression simplifies to [GATE ECE 2014, Set 1]
The output in the digital logic circuit shown in the figure is
[GATE ECE 2014, Set 1]
Consider the Boolean function, . Which one of the following is the complete set of essential prime implicants? [GATE ECE 2014, Set 1]
For an -variable Boolean function, the maximum number of prime implicants is [GATE ECE 2014, Set 2]
In a half-subtractor circuit with and as inputs, the Borrow and Difference are given by [GATE ECE 2014, Set 2]
Consider the multiplexer based logic circuit shown in the figure.
Which one of the following Boolean functions is realized by the circuit? [GATE ECE 2014, Set 3]
In the circuit shown, and are MSBs of the control inputs. The output is given by
[GATE ECE 2014, Set 3]
If and are inputs and the Difference and the Borrow are the outputs, which one of the following diagrams implements a half-subtractor?
[GATE ECE 2014, Set 3]
An 8-to-1 multiplexer is used to implement a logical function as shown in the figure. The output is given by
[GATE ECE 2014, Set 4]
A 16-bit ripple carry adder is realized using 16 identical full adders (FA) as shown in the figure. The carry-propagation delay of each FA is 12 ns and the sum-propagation delay of each FA is 15 ns. The worst case delay (in ns) of this 16-bit adder will be ________.
[GATE ECE 2014, Set 4]
The binary operator is defined by the following truth table
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
Which one of the following is true about the binary operator ? [GATE CSE 2015, Set 1]
Consider the operations
Which one of the following is correct? [GATE CSE 2015, Set 1]
The number of min-terms after minimizing the following Boolean expression is ________.
[GATE CSE 2015, Set 2]
A half adder is implemented with XOR and AND gates. A full adder is implemented with two half adders and one OR gate. The propagation delay of an XOR gate is twice that of an AND/OR gate. The propagation delay of an AND/OR gate is 1.2 microseconds. A 4-bit ripple-carry binary adder is implemented by using four full adders. The total propagation time of this 4-bit binary adder in microseconds is ________. [GATE CSE 2015, Set 2]
Let be a binary operator defined as where X and Y are Boolean variables. Consider the following two statements.
Which of the following is/are true for the Boolean variables P, Q and R? [GATE CSE 2015, Set 3]
Given the function , where F is a function in three Boolean variables P, Q and R and , consider the following statements.
Which of the following is true? [GATE CSE 2015, Set 3]
A 16 Kb (=16,384 bit) memory array is designed as a square with an aspect ratio of one (number of rows is equal to the number of columns). The minimum number of address lines needed for the row decoder is ________. [GATE ECE 2015, Set 1]
The Boolean expression converted into the canonical product of sum (POS) form is [GATE ECE 2015, Set 1]
All the logic gates shown in the figure have a propagation delay of 20 ns. Let and until time . At , all the inputs flip (i.e., and ) and remain in that state. For , output for a duration (in ns) of ________.
[GATE ECE 2015, Set 1]
A 3-input majority gate is defined by the logic function . Which one of the following gates is represented by the function ? [GATE ECE 2015, Set 1]
In the figure shown, the output is required to be . The gates G1 and G2 must be, respectively,
[GATE ECE 2015, Set 2]
A function of Boolean variables , and is expressed in terms of the min-terms as
Which one of the product of sums given below is equal to the function ? [GATE ECE 2015, Set 2]
(A)
(B)
(C)
(D)
A 1-to-8 demultiplexer with data input , address inputs , , (with as the LSB) and to as the eight demultiplexed outputs, is to be designed using two 2-to-4 decoders (with enable input and address inputs and ) as shown in the figure. , , and are to be connected to P, Q, R and S, but not necessarily in this order. The respective input connections to P, Q, R, and S terminals should be
[GATE ECE 2015, Set 2]
In the circuit shown, diodes , and are ideal, and the inputs , and are “0 V” for logic ‘0' and “10 V” for logic ‘1'. What logic gate does the circuit represent?
[GATE ECE 2015, Set 3]
A universal logic gate can implement any Boolean function by connecting sufficient number of them appropriately. Three gates are shown.
Which one of the following statements is TRUE? [GATE ECE 2015, Set 3]
Consider the Boolean operator # with the following properties :
and Then is equivalent to [GATE CSE 2016, Set 1]
Consider the two cascade to multiplexers as shown in the figure .
The minimal sum of products form of the output is [GATE CSE 2016, Set 1]
Consider a carry look ahead adder for adding two -bit integers, built using gates of fan-in at most two. The time to perform addition using this adder is [GATE CSE 2016, Set 1]
Consider an eight-bit ripple-carry adder for computing the sum of and , where and are integers represented in 's complement form. If the decimal value of is one, the decimal value of that leads to the longest latency for the sum to stabilize is ________ [GATE CSE 2016, Set 2]
Let, where are Boolean variables, and is the XOR operator.
Which one of the following must always be TRUE? [GATE CSE 2016, Set 2]
Identify the circuit below.
[GATE ECE 2016, Set 1]
The functionality implemented by the circuit below is
[GATE ECE 2016, Set 1]
A 4:1 multiplexer is to be used for generating the output carry of a full adder. A and B are the bits to be added while is the input carry and is the output carry. A and B are to be used as the select bits with A being the more significant select bit.
Which one of the following statements correctly describes the choice of signals to be connected to the inputs , , and so that the output is ? [GATE ECE 2016, Set 2]
An 8 Kbyte ROM with an active low Chip Select input () is to be used in an 8085 microprocessor based system. The ROM should occupy the address range 1000H to 2FFFH. The address lines are designated as to , where is the most significant address bit.
Which one of the following logic expressions will generate the correct signal for this ROM? [GATE ECE 2016, Set 2]
(A)
(B)
(C)
(D)
The logic functionality realized by the circuit shown below is
[GATE ECE 2016, Set 3]
The minimum number of 2-input NAND gates required to implement a 2-input XOR gate is [GATE ECE 2016, Set 3]
Following is the K-map of a Boolean function of five variables P, Q, R, S and X. The minimum sum-of-product (SOP) expression for the function is
[GATE ECE 2016, Set 3]
(A)
(B)
(C)
(D)
For the circuit shown in the figure, the delays of NOR gates, multiplexers and inverters are 2 ns, 1.5 ns and 1 ns, respectively. If all the inputs P, Q, R, S and T are applied at the same time instant, the maximum propagation delay (in ns) of the circuit is ________
[GATE ECE 2016, Set 3]
Consider the Karnaugh map given below, where represents "don't care" and blank represents .
Assume for all inputs , the respective complements are also available. The above logic is implemented using -input gates only. The minimum number of gates required is ________ . [GATE CSE 2017, Set 1]
If are Boolean variables, then which one of the following is INCORRECT? [GATE CSE 2017, Set 2]
Given ; where represents the 'don't-care' condition in Karnaugh maps. Which of the following is a minimum product-of-sums (POS) form of ? [GATE CSE 2017, Set 2]
Which one of the following gives the simplified sum of products expression for the Boolean function , where , , and are minterms corresponding to the inputs , and with as the MSB and as the LSB? [GATE ECE 2017, Set 1]
For the circuit shown in the figure, P and Q are the inputs and Y is the output.
The logic implemented by the circuit is [GATE ECE 2017, Set 2]
Consider the circuit shown in the figure.
The Boolean expression implemented by the circuit is [GATE ECE 2017, Set 2]
Figure I shows a 4-bit ripple carry adder realized using full adders and Figure II shows the circuit of a full-adder (FA). The propagation delay of the XOR, AND and OR gates in Figure II are 20 ns, 15 ns and 10 ns, respectively. Assume all the inputs to the 4-bit adder are initially reset to 0.
Figure I
Figure II
At , the inputs to the 4-bit adder are changed to , and . The output of the ripple carry adder will be stable at (in ns) = ________. [GATE ECE 2017, Set 2]
A programmable logic array (PLA) is shown in the figure.
The Boolean function implemented is [GATE ECE 2017, Set 2]
Let and denote the Exclusive OR and Exclusive NOR operations, respectively. Which one of the following is NOT CORRECT? [GATE CSE 2018]
Consider the minterm list form of a Boolean function given below.
Here, denotes a minterm and denotes a don't care term. The number of essential prime implicants of the function is ________ [GATE CSE 2018]
The logic function realized by the given circuit is
[GATE ECE 2018]
A function defined by three Boolean variables A, B and C when expressed as sum of products is given by
where, , , and are the complements of the respective variables. The product of sums (POS) form of the function F is [GATE ECE 2018]
(A)
(B)
(C)
(D)
A four-variable Boolean function is realized using multiplexers as shown in the figure.
The minimized expression for is [GATE ECE 2018]
The logic gates shown in the digital circuit below use strong pull-down nMOS transistors for LOW logic level at the outputs. When the pull-downs are off, high-value resistors set the output logic levels to HIGH (i.e. the pull-ups are weak). Note that some nodes are intentionally shorted to implement “wired logic”. Such shorted nodes will be HIGH only if the outputs of all the gates whose outputs are shorted are HIGH.
The number of distinct values of (out of the 16 possible values) that give is ________. [GATE ECE 2018]
The chip select logic for a certain DRAM chip in a memory system design is shown below. Assume that the memory system has 16 address lines denoted by to . What is the range of address (in hexadecimal) of the memory system that can get enabled by the chip select (CS) signal?
[GATE CSE 2019]
Which one of the following is NOT a valid identity? [GATE CSE 2019]
Consider three -variable functions , and , which are expressed in sum-of-minterms as
For the following circuit with one AND gate and one XOR gate the output function can be expressed as:
[GATE CSE 2019]
What is the minimum number of -input NOR gates required to implement a -variable function expressed in sum-of-minterms form as Assume that all the inputs and their complements are available. Answer: ________ [GATE CSE 2019]
In the circuit shown, A and B are the inputs and F is the output. What is the functionality of the circuit?
[GATE ECE 2019]
A multiplexer is placed between a group of registers and an accumulator to regulate data movement such that at any given point in time the content of only one register will move to the accumulator. The number of select lines needed for the multiplexer is ________. [GATE CSE 2020]
If there are input lines and output lines for a decoder that is used to uniquely address a byte addressable KB RAM, then the minimum value of is ________ . [GATE CSE 2020]
Consider the Boolean function .
Which one of the following minterm lists represents the circuit given above? [GATE CSE 2020]
The figure below shows a multiplexer where and are the select lines, to are the input data lines, EN is the enable line, and is the output. is
[GATE ECE 2020]
Consider the following Boolean expression.
Which of the following Boolean expressions is/are equivalent to (complement of )? [GATE CSE 2021, Set 1]
Which one of the following circuits implements the Boolean function given below?
, where is the minterm.
[GATE CSE 2021, Set 2]
Consider a Boolean function such that
The number of literals in the minimal sum-of-products expression of is ________ [GATE CSE 2021, Set 2]
Addressing of a memory is realized using a single decoder. The minimum number of AND gates required for the decoder is [GATE ECE 2021]
The propagation delays of the XOR gate, AND gate and multiplexer (MUX) in the circuit shown in the figure are 4 ns, 2 ns and 1 ns, respectively. If all the inputs P, Q, R, S and T are applied simultaneously and held constant, the maximum propagation delay of the circuit is
[GATE ECE 2021]
Consider a digital display system shown in the figure that displays the contents of register A code word is used to load a word in either from or from is a word memory segment and is a word register file. Based on the value of mode bit selects an input word to load in
and interface with the corresponding bits in the code word to choose the addressed word. Which one of the following represents the functionality of and
[GATE CSE 2022]
(A) is multiplexer is multiplexer is multiplexer
(B) is decoder is decoder is encoder
(C) is decoder is decoder is multiplexer
(D) is de-multiplexer is de-multiplexer is multiplexer
Consider the 2-bit multiplexer (MUX) shown in the figure. For OUTPUT to be the XOR of C and D, the values for , , , and are ________.
[GATE ECE 2022]
Select the Boolean function(s) equivalent to , where , , and are Boolean variables, and denotes logical OR operation. [GATE ECE 2022]
Consider a Boolean gate (D) where the output is related to the inputs and as, , where denotes logical OR operation. The Boolean inputs ‘0' and ‘1' are also available separately. Using instances of only D gates and inputs ‘0' and ‘1', ________ (select the correct option(s)). [GATE ECE 2022]
A 4 kilobyte (KB) byte-addressable memory is realized using four 1 KB memory blocks. Two input address lines ( and ) are connected to the chip select (CS) port of these memory blocks through a decoder as shown in the figure. The remaining ten input address lines from -- are connected to the address port of these blocks. The chip select (CS) is active high.
The input memory addresses (--), in decimal, for the starting locations (Addr=0) of each block (indicated as , , , in the figure) are among the options given below. Which one of the following options is CORRECT? [GATE CSE 2023]
A Boolean digital circuit is composed using two -input multiplexers and one -input multiplexer as shown in the figure. are the inputs of the multiplexers and could be connected to either or The select lines of the multiplexers are connected to Boolean variables as shown.
Which one of the following set of values of will realise the Boolean function [GATE CSE 2023]
Consider a Boolean expression given by .
Which of the following statements is/are CORRECT? [GATE CSE 2024, Set 1]
Consider a digital logic circuit consisting of three -to- multiplexers , and as shown below. and are inputs of . and are inputs of . , and are select lines of , and , respectively.
For an instance of inputs , and , the number of combinations of that give the output is ________. [GATE CSE 2024, Set 1]
For a Boolean variable , which of the following statements is/are FALSE? [GATE CSE 2024, Set 2]
For the Boolean function , the essential prime implicants are ________. [GATE ECE 2024]
A 4-bit priority encoder has inputs , , , and in descending order of priority. The two-bit output is generated as 00, 01, 10, and 11 corresponding to inputs , , , and , respectively. The Boolean expression of the output bit is ________. [GATE ECE 2024]
Let be a -variable Boolean function that produces output as when at least two of the input variables are . Which of the following statement(s) is/are CORRECT, where are Boolean variables? [GATE CSE 2025, Set 1]
Consider the following four variable Boolean function in sum-of-product form
where the value of the function is computed by considering as a -bit binary number, where denotes the most significant bit and denotes the least significant bit. Note that there are no don't care terms. Which ONE of the following options is the CORRECT minimized Boolean expression for ? [GATE CSE 2025, Set 1]
Consider the following logic circuit diagram.
Which is/are the CORRECT option(s) for the output function ? [GATE CSE 2025, Set 2]
Given the following Karnaugh Map for a Boolean function :
Which one or more of the following Boolean expression(s) represent(s) ? [GATE CSE 2025, Set 2]
(A)
(B)
(C)
(D)
Which of the following Boolean algebraic equation(s) is/are CORRECT? [GATE CSE 2025, Set 2]
(A)
(B)
(C)
(D)
A 3-input majority logic gate has inputs X, Y and Z. The output F of the gate is logic ‘1' if two or more of the inputs are logic ‘1'. The output F is logic ‘0' if two or more of the inputs are logic ‘0'.
Which one of the following options is a Boolean expression of the output F? [GATE ECE 2025]
A full adder and an XOR gate are used to design a digital circuit with inputs X, Y, and Z, and output F, as shown below. The input Z is connected to the carry-in input of the full adder.
If the input Z is set to logic ‘1', then the circuit functions as ________ with X and Y as inputs.
[GATE ECE 2025]
Consider the following Boolean expression of a function F :
Which of the following expressions is/are equivalent to F ? [GATE CSE 2026, Set 1]
Consider a Boolean function F with the following minterm expression:
Which of the following options is/are the minimal sum-of-products expression(s) of F ? [GATE CSE 2026, Set 1]
Which one of the following options is not a property of Boolean Algebra?
Note: is OR operation, is AND operation, and is NOT operation [GATE CSE 2026, Set 2]
Consider the following 4-variable Boolean function
Consider A as MSB, D as LSB. Which one of the following options represents the minimal sum of products form for the above function?
Note: is OR operation, is AND operation, is NOT operation [GATE CSE 2026, Set 2]
Consider the digital circuit shown below with two input lines A and B, two select lines and , and an output line Y. The blocks Q and M represent active high 2:4 decoder and 4-to-1 multiplexer, respectively. Out of 16 possible input combinations, the number of combinations that produce Y=1 is ________. (answer in integer)
Note: One input combination is an instance of .
[GATE CSE 2026, Set 2]
A Boolean function, with x as MSB and z as LSB is realized by 4:1 multiplexer (MUX) with select lines, and ( is MSB, is LSB) and inputs, , , , as shown in the Figure.
Which of the following options is the correct expression of ?
[GATE ECE 2026]
Consider the four-variable Boolean function,
with ‘w' as MSB and ‘z' as LSB.
Which of the following expressions is/are the valid form(s) of ? [GATE ECE 2026]
Which of the following operations is commutative but not associative? [GATE CSE 1998]
Which of the following expressions is not equivalent to ? [GATE CSE 1999]
The simultaneous equations on the Boolean variables and ,
have the following solution for and respectively: [GATE CSE 2000]
Let . Simplified expression for function is [GATE CSE 2002]
A Boolean function is equivalent to [GATE CSE 2004]
Which of the following expressions is equivalent to [GATE IT 2005]
Chapter 4
Sequential Logic, Memory, and Control
Flip-flops, registers, counters, state machines and memory
You are given a free running clock with a duty cycle of and a digital waveform 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 by ?
[GATE CSE 2006]
Consider the circuit in the diagram. The operator represents Ex-OR. The D flip-flops are initialized to zeroes (cleared).
The following data: is supplied to the “data” terminal in nine clock cycles. After that the values of are: [GATE CSE 2006]
Consider numbers represented in 4-bit Gray code. Let be the Gray code representation of a number and let be the Gray code of value of the number. Which one of the following functions is correct? [GATE CSE 2006]
The control signal functions of a 4-bit binary counter are given below (where is “don't care”):
The counter is connected as follows:
Assume that the counter and gate delays are negligible. If the counter starts at then it cycles through the following sequence: [GATE CSE 2007]
The following binary values were applied to the and inputs of the NAND latch shown in the figure in the sequence indicated below:
The corresponding stable outputs will be
[GATE ECE 2007]
For the circuit shown, the counter state follows the sequence
[GATE ECE 2007]
For each of the positive edge-triggered J-K flip flop used in the following figure, the propagation delay is .
Which of the following waveforms correctly represents the output at ?
[GATE ECE 2008]
For the circuit shown in the figure, has a transition from 0 to 1 after CLK changes from 1 to 0. Assume gate delays to be negligible.
Which of the following statements is true? [GATE ECE 2008]
In the following circuit, the comparator output is logic “1” if and is logic “0” otherwise. The D/A conversion is done as per the relation
where (MSB), , and (LSB) are the counter outputs.
The counter starts from the clear state.
(a)
The stable reading of the LED displays is [GATE ECE 2008]
(b)
The magnitude of the error between and at steady state in volts is [GATE ECE 2008]
How many RAM chips are needed to provide a memory capacity of bytes? [GATE CSE 2009]
Given the following state table of an FSM with two states and ,one input and one output.
If the initial state is what is the minimum length of an input string which will take the machine to the state with . [GATE CSE 2009]
Refer to the NAND and NOR latches shown in the figure. The inputs for both the latches are first made and then, after a few seconds, made . The corresponding stable outputs are
[GATE ECE 2009]
What are the counting states for the counter shown in the figure below ?
[GATE ECE 2009]
The main memory unit with a capacity of is built using DRAM chips. Each DRAM chip has rows of cells with cells in each row. The time taken for a single refresh operation is . The time required to perform one refresh operation on all the cells in the memory unit is [GATE CSE 2010]
In the sequential circuit shown below, if the initial value of the output is . What are the next four values of ?
[GATE CSE 2010]
Assuming that all flip-flops are in reset condition initially, the count sequence observed at in the circuit shown is
[GATE ECE 2010]
The minimum number of D flip-flops needed to design a mod-258 counter is. [GATE CSE 2011]
Consider the following circuit involving three D-type flip-flops used in a certain type of counter configuration.
If all the flip-flops were reset to at power on, what is the total number of distinct outputs (states) represented by generated by the counter? [GATE CSE 2011]
Consider the following circuit involving three D-type flip-flops used in a certain type of counter configuration.
If at some instance prior to the occurrence of the clock edge, and have a value , and respectively, what shall be the value of after the clock edge? [GATE CSE 2011]
When the output in the circuit below is “1”, it implies that data has
[GATE ECE 2011]
The output of a 3-stage Johnson (twisted-ring) counter is fed to a digital-to-analog (D/A) converter as shown in the figure below. Assume all states of the counter to be unset initially. The waveform which represents the D/A converter output is
[GATE ECE 2011]
Two D flip-flops are connected as a synchronous counter that goes through the following sequence
The connections to the inputs and are [GATE ECE 2011]
Consider the given circuit.
In this circuit, the race around [GATE ECE 2012]
The state transition diagram for the logic circuit shown is
[GATE ECE 2012]
Let . A circuit is built by giving the output of an -bit binary counter as input to an bit decoder. This circuit is equivalent to a [GATE CSE 2014, Set 2]
The above synchronous sequential circuit built using JK flip-flops is initialized with . The state sequence for this circuit for the next clock cycles is [GATE CSE 2014, Set 3]
Five JK flip-flops are cascaded to form the circuit shown in Figure. Clock pulses at a frequency of 1 MHz are applied as shown. The frequency (in kHz) of the waveform at is ________ .
[GATE ECE 2014, Set 1]
The digital logic shown in the figure satisfies the given state diagram when is connected to input A of the XOR gate.
Suppose the XOR gate is replaced by an XNOR gate. Which one of the following options preserves the state diagram? [GATE ECE 2014, Set 1]
The outputs of the two flip-flops in the figure shown are initialized to 0, 0. The sequence generated at upon application of clock signal is
[GATE ECE 2014, Set 2]
The circuit shown in the figure is a
[GATE ECE 2014, Set 3]
If WL is the Word Line and BL the Bit Line, an SRAM cell is shown in
[GATE ECE 2014, Set 3]
Consider a 4 bit Johnson counter with an initial value of 0000. The counting sequence of this counter is: [GATE CSE 2015, Set 1]
A positive edge-triggered D flip-flop is connected to a positive edge-triggered JK flipflop as follows. The Q output of the D flip-flop is connected to both the J and K inputs of the JK flip-flop, while the Q output of the JK flip-flop is connected to the input of the D flip-flop. Initially, the output of the D flip-flop is set to logic one and the output of the JK flip-flop is cleared. Which one of the following is the bit sequence (including the initial state) generated at the Q output of the JK flip-flop when the flip-flops are connected to a free-running common clock? Assume that J = K = 1 is the toggle mode and J = K = 0 is the state-holding mode of the JK flip-flop. Both the flip-flops have non-zero propagation delays. [GATE CSE 2015, Set 1]
The minimum number of flip-flops required to construct a synchronous counter with the count sequence is ________. [GATE CSE 2015, Set 2]
A mod- counter using a synchronous binary up-counter with synchronous clear input is shown in the figure. The value of is ________.
[GATE ECE 2015, Set 2]
The figure shows a binary counter with synchronous clear input. With the decoding logic shown, the counter works as a
[GATE ECE 2015, Set 2]
The circuit shown consists of J-K flip-flops, each with an active low asynchronous reset input). The counter corresponding to this circuit is
[GATE ECE 2015, Set 3]
A three bit pseudo random number generator is shown. Initially the value of output is set to 111. The value of output after three clock cycles is
[GATE ECE 2015, Set 3]
An SR latch is implemented using TTL gates as shown in the figure. The set and reset pulse inputs are provided using the push-button switches. It is observed that the circuit fails to work as desired. The SR latch can be made functional by changing
[GATE ECE 2015, Set 3]
We want to design a synchronous counter that counts the sequence and then repeats. The minimum number of flip-flops required to implement this counter is ________. [GATE CSE 2016, Set 1]
Assume that all the digital gates in the circuit shown in the figure are ideal, the resistor and the supply voltage is 5 V. The D flip-flops , , , and are initialized with logic values 0, 1, 0, 1 and 0, respectively. The clock has a 30% duty cycle.
The average power dissipated (in mW) in the resistor is ________ [GATE ECE 2016, Set 2]
The state transition diagram for a finite state machine with states A, B and C, and binary inputs X, Y and Z, is shown in the figure.
Which one of the following statements is correct? [GATE ECE 2016, Set 2]
For the circuit shown in the figure, the delay of the bubbled NAND gate is 2 ns and that of the counter is assumed to be zero.
If the clock (Clk) frequency is 1 GHz, then the counter behaves as a [GATE ECE 2016, Set 3]
Consider a combination of and flip-flops connected as shown below. The output of the flip-flop is connected to the input of the flip-flop and the output of the flip-flop is connected to the input of the flip-flop.
Initially, both and are set to (before the clock cycle). The outputs [GATE CSE 2017, Set 1]
(A) after the cycle are and after the cycle are respectively.
(B) after the cycle are and after the cycle are respectively.
(C) after the cycle are and after the cycle are respectively.
(D) after the cycle are and after the cycle are respectively.
The next state table of a bit saturating up-counter is given below.
The counter is built as a synchronous sequential circuit using flip-flops. The expressions for and are [GATE CSE 2017, Set 2]
In the latch circuit shown, the NAND gates have non-zero, but unequal propagation delays. The present input condition is: P = Q = ‘0'. If the input condition is changed simultaneously to P = Q = ‘1', the outputs X and Y are
[GATE ECE 2017, Set 1]
Consider the D-Latch shown in the figure, which is transparent when its clock input CK is high and has zero propagation delay. In the figure, the clock signal CLK1 has a 50% duty cycle and CLK2 is a one-fifth period delayed version of CLK1. The duty cycle at the output of the latch in percentage is ________.
[GATE ECE 2017, Set 1]
A 4-bit shift register circuit configured for right-shift operation, i.e. , , , , is shown. If the present state of the shift register is , the number of clock cycles required to reach the state is ________.
[GATE ECE 2017, Set 1]
A finite state machine (FSM) is implemented using the D flip-flops A and B, and logic gates, as shown in the figure below. The four possible states of the FSM are , and 11.
Assume that is held at a constant logic level throughout the operation of the FSM. When the FSM is initialized to the state and clocked, after a few clock cycles, it starts cycling through [GATE ECE 2017, Set 1]
In a DRAM, [GATE ECE 2017, Set 2]
The state diagram of a finite state machine (FSM) designed to detect an overlapping sequence of three bits is shown in the figure. The FSM has an input ‘In' and an output ‘Out'. The initial state of the FSM is .
If the input sequence is 10101101001101, starting with the left-most bit, then the number of times ‘Out' will be 1 is ________. [GATE ECE 2017, Set 2]
Consider the sequential circuit shown in the figure, where both flip-flops used are positive edge-triggered flip-flops.
The number of states in the state transition diagram of this circuit that have a transition back to the same state on some value of "in" is ________ [GATE CSE 2018]
A 32-bit wide main memory unit with a capacity of 1 GB is built using -bit DRAM chips. The number of rows of memory cells in the DRAM chip is . The time taken to perform one refresh operation is 50 nanoseconds. The refresh period is 2 milliseconds. The percentage (rounded to the closest integer) of the time available for performing the memory read/write operations in the main memory unit is ________. [GATE CSE 2018]
A traffic signal cycles from GREEN to YELLOW, YELLOW to RED and RED to GREEN. In each cycle, GREEN is turned on for 70 seconds, YELLOW is turned on for 5 seconds and the RED is turned on for 75 seconds. This traffic light has to be implemented using a finite state machine (FSM). The only input to this FSM is a clock of 5 second period. The minimum number of flip-flops required to implement this FSM is ________. [GATE ECE 2018]
A ROM array is built with the help of diodes as shown in the circuit below. Here W0 and W1 are signals that select the word lines and B0 and B1 are signals that are output of the sense amps based on the stored data corresponding to the bit lines during the read operation.
During the read operation, the selected word line goes high and the other word line is in a high impedance state. As per the implementation shown in the circuit diagram above, what are the bits corresponding to (where or 1 and or 1) stored in the ROM? [GATE ECE 2018]
(A)
(B)
(C)
(D)
In the circuit shown below, a positive edge-triggered D Flip-Flop is used for sampling input data using clock . The XOR gate outputs 3.3 volts for logic HIGH and 0 volts for logic LOW levels. The data bit and clock periods are equal and the value of , where the parameters and are shown in the figure. Assume that the Flip-Flop and the XOR gate are ideal.
If the probability of input data bit () transition in each clock period is 0.3, the average value (in volts, accurate to two decimal places) of the voltage at node , is ________. [GATE ECE 2018]
In the circuit shown, the clock frequency, i.e., the frequency of the Clk signal, is 12 kHz. The frequency of the signal at is ________ kHz.
[GATE ECE 2019]
The state transition diagram for the circuit shown is
[GATE ECE 2019]
The state diagram of a sequence detector is shown below. State is the initial state of the sequence detector. If the output is 1, then
[GATE ECE 2020]
For the components in the sequential circuit shown below, is the propagation delay, is the setup time, and is the hold time. The maximum clock frequency (rounded off to the nearest integer), at which the given circuit can operate reliably, is ________ MHz.
[GATE ECE 2020]
Consider a -bit counter, designed using flip-flops, as shown below:
Assuming the initial state of the counter given by as , what are the next three states? [GATE CSE 2021, Set 1]
Suppose we want to design a synchronous circuit that processes a string of 0's and 1's. Given a string, it produces another string by replacing the first 1 in any subsequence of consecutive 1's by a 0. Consider the following example.
| Input sequence : | 00100011000011100 |
| Output sequence : | 00000001000001100 |
A Mealy Machine is a state machine where both the next state and the output are functions of the present state and the current input. The above mentioned circuit can be designed as a two-state Mealy machine. The states in the Mealy machine can be represented using Boolean values 0 and 1. We denote the current state, the next state, the next incoming bit, and the output bit of the Mealy machine by the variables s, t, b and y respectively. Assume the initial state of the Mealy machine is 0. What are the Boolean expressions corresponding to t and y in terms of s and b? [GATE CSE 2021, Set 2]
The propagation delay of the exclusive-OR (XOR) gate in the circuit in the figure is 3 ns. The propagation delay of all the flip-flops is assumed to be zero. The clock (Clk) frequency provided to the circuit is 500 MHz.
Starting from the initial value of the flip-flop outputs with , the minimum number of triggering clock edges after which the flip-flop outputs becomes 1 0 0 (in integer) is ________. [GATE ECE 2021]
For the circuit shown, the clock frequency is and the duty cycle is 25%. For the signal at the Q output of the Flip-Flop, ________.
[GATE ECE 2022]
The output of a -input multiplexer is connected back to one of its inputs as shown in the figure.
Match the functional equivalence of this circuit to one of the following options. [GATE CSE 2023]
Consider a sequential digital circuit consisting of flip-flops and flip-flops as shown in the figure. is the clock input to the circuit. At the beginning, and have values and respectively.
Which one of the given values of can be obtained with this digital circuit? [GATE CSE 2023]
The synchronous sequential circuit shown below works at a clock frequency of 1 GHz. The throughput, in Mbits/s, and the latency, in ns, respectively, are
[GATE ECE 2023]
For the circuit shown below, the propagation delay of each NAND gate is 1 ns. The critical path delay, in ns, is ________ (rounded off to the nearest integer).
[GATE ECE 2023]
In a given sequential circuit, initial states are and . For a clock frequency of 1 MHz, the frequency of signal in kHz, is ________ (rounded off to the nearest integer).
[GATE ECE 2023]
The sequence of states () of the given synchronous sequential circuit is ________.
[GATE ECE 2024]
Consider the given sequential circuit designed using D-Flip-flops. The circuit is initialized with some value (initial state). The number of distinct states the circuit will go through before returning back to the initial state is ________. (Answer in integer)
[GATE CSE 2025, Set 1]
In a -bit ripple counter, if the period of the waveform at the last flip-flop is microseconds, then the frequency of the ripple counter in kHz is ________. (Answer in integer) [GATE CSE 2025, Set 2]
A positive-edge-triggered sequential circuit is shown below. There are no timing violations in the circuit. Input P0 is set to logic ‘0' and P1 is set to logic ‘1' at all times. The timing diagram of the inputs SEL and S are also shown below.
The sequence of output Y from time to is ________.
[GATE ECE 2025]
In the circuit shown below, the AND gate has a propagation delay of 1 ns. The edge-triggered flip-flops have a set-up time of 2 ns, a hold-time of 0 ns, and a clock-to-Q delay of 2 ns.
The maximum clock frequency (in MHz, rounded off to the nearest integer) such that there are no setup violations is ________.
[GATE ECE 2025]
Consider a 2-bit saturating up/down counter that performs the saturating up count when the input P is 0, and the saturating down count when P is 1. The Next State table of the counter is as shown. The counter is built as a synchronous sequential circuit using D flip-flops.
| Input | Current State | Next State | ||
| 0 | 0 | 0 | 0 | 1 |
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 1 | 1 |
| 0 | 1 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 | 0 |
| 1 | 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 | 0 |
Which one of the following options corresponds to the expressions for the inputs of the D flip-flops, and ? [GATE CSE 2026, Set 1]
(A)
(B)
(C)
(D)
A binary ripple counter is designed to count to .
Which of the following is/are the number of flip-flops required to design the counter? [GATE ECE 2026]
The negative edge triggered JK flip-flop in the Figure has J and K inputs tied to Logic High and a square wave of 10 cycles/second is applied to its clock (C) input.
The frequency of the output Q (in cycles/second) is ________.
(rounded off to two decimal places)
[GATE ECE 2026]
A shift-left Shift Register (SR) and a D flip-flop are connected to a synchronized clock as shown in the Figure. Assume that the SR and D flip-flops are initially cleared and the XOR gate has no propagation delay.
Which of the following options gives the correct binary representation () of the content of the shift register immediately after the 5th clock transition (positive edge)?
[GATE ECE 2026]
The number of flip-flops required to construct a binary modulo counter is ________ [GATE CSE 1994]
How many pulses are needed to change the contents of a -bit up counter from to (rightmost bit is the LSB)? [GATE IT 2005]
Consider the following state diagram and its realization by a JK flip flop
The combinational circuit generates J and K in terms of x, y and Q.
The Boolean expressions for J and K are : [GATE IT 2008]
A ROM is used to store the Truth table for binary multiple units that will multiply two -bit numbers. The size of the ROM (number of words number of bits) that is required to accommodate the Truth table is . Write the values of and . [GATE CSE 1993]
A ROM is used to store the table for multiplication of two -bit unsigned integers. The size of ROM required is [GATE CSE 1996]
What is the minimum size of ROM required to store the complete truth table of an -bit -bit multiplier? [GATE IT 2004]
Chapter 1
Foundations: From Software to Digital Hardware
Instructions, addressing, operands and register transfers
A CPU has 24-bit instructions. A program starts at address 300 (in decimal). Which one of the following is a legal program counter (all values in decimal)? [GATE CSE 2006]
Consider the following program segment. Here R1, R2 and R3 are the general purpose registers.
| Instruction | Operation | Instruction size (no. of words) |
MOV R1, (3000) | R1 M[3000] | 2 |
LOOP: MOV R2, (R3) | R2 M[R3] | 1 |
ADD R2, R1 | R2 R1 R2 | 1 |
MOV (R3), R2 | M[R3] R2 | 1 |
INC R3 | R3 R3 1 | 1 |
DEC R1 | R1 R1 1 | 1 |
BNZ LOOP | Branch on not zero | 2 |
HALT | Stop | 1 |
Assume that the content of memory location 3000 is 10 and the content of the register R3 is 2000. The content of each of the memory locations from 2000 to 2010 is 100. The program is loaded from the memory location 1000. All the numbers are in decimal.
Assume that the memory is word addressable. The number of memory references for accessing the data in executing the program completely is [GATE CSE 2007]
(Common data with Question 2.) Assume that the memory is word addressable. After the execution of this program, the content of memory location 2010 is [GATE CSE 2007]
Which of the following is/are true of the auto-increment addressing mode?
| I. | It is useful in creating self-relocating code. |
| II. | If it is included in an Instruction Set Architecture, then an additional ALU is required for effective address calculation. |
| III. | The amount of increment depends on the size of the data item accessed. |
[GATE CSE 2008]
Consider a hypothetical processor with an instruction of type LW R1, 20(R2), which during execution reads a 32-bit word from memory and stores it in a 32-bit register R1. The effective address of the memory location is obtained by the addition of a constant 20 and the contents of register R2. Which of the following best reflects the addressing mode implemented by this instruction for the operand in memory? [GATE CSE 2011]
Consider the following sequence of micro-operations.
| MBR PC |
| MAR X |
| PC Y |
| Memory MBR |
Which one of the following is a possible operation performed by this sequence? [GATE CSE 2013]
A machine has a 32-bit architecture, with 1-word long instructions. It has 64 registers, each of which is 32 bits long. It needs to support 45 instructions, which have an immediate operand in addition to two register operands. Assuming that the immediate operand is an unsigned integer, the maximum value of the immediate operand is ________. [GATE CSE 2014]
For computer based on three-address instruction formats, each address field can be used to specify which of the following:
| (S1) | A memory operand |
| (S2) | A processor register |
| (S3) | An implied accumulator register |
[GATE CSE 2015]
A processor can support a maximum memory of 4 GB, where the memory is word-addressable (a word consists of two bytes). The size of the address bus of the processor is at least ________ bits. [GATE CSE 2016]
A processor has 40 distinct instruction and 24 general purpose registers. A 32-bit instruction word has an opcode, two registers operands and an immediate operand. The number of bits available for the immediate operand field is ________. [GATE CSE 2016]
Consider a processor with 64 registers and an instruction set of size twelve. Each instruction has five distinct fields, namely, opcode, two source register identifiers, one destination register identifier, and a twelve-bit immediate value. Each instruction must be stored in memory in a byte-aligned fashion. If a program has 100 instructions, the amount of memory (in bytes) consumed by the program text is ________. [GATE CSE 2016]
Consider the C struct defined below:
struct data { |
int marks [100]; |
char grade; |
int cnumber; |
}; |
struct data student; |
The base address of student is available in register R1. The field student.grade can be accessed efficiently using: [GATE CSE 2017]
Consider a RISC machine where each instruction is exactly 4 bytes long. Conditional and unconditional branch instructions use PC-relative addressing mode with Offset specified in bytes to the target location of the branch instruction. Further the Offset is always with respect to the address of the next instruction in the program sequence. Consider the following instruction sequence
| Instr. No. | Instruction |
: add R2, R3, R4 | |
: sub R5, R6, R7 | |
: cmp R1, R9, R10 | |
: beq R1, Offset |
If the target of the branch instruction is , then the decimal value of the Offset is ________. [GATE CSE 2017]
A processor has 16 integer registers (R0, R1, …, R15) and 64 floating point registers (F0, F1, …, F63). It uses a 2-byte instruction format. There are four categories of instructions: Type-1, Type-2, Type-3, and Type-4. Type-1 category consists of four instructions, each with 3 integer register operands (3Rs). Type-2 category consists of eight instructions, each with 2 floating point register operands (2Fs). Type-3 category consists of fourteen instructions, each with one integer register operand and one floating point register operand (1R+1F). Type-4 category consists of instructions, each with a floating point register operand (1F). The maximum value of is ________. [GATE CSE 2018]
Consider the following data path diagram.
[GATE CSE 2020]
Consider an instruction: R0 R1 R2. The following steps are used to execute it over the given data path. Assume that PC is incremented appropriately. The subscripts and indicate read and write operations, respectively.
| 1. | R2, TEMP1, ALU, TEMP2 |
| 2. | R1, TEMP1 |
| 3. | PC, MAR, MEM |
| 4. | TEMP2, R0 |
| 5. | MDR, IR |
Which one of the following is the correct order of execution of the above steps?
A processor has 64 registers and uses 16-bit instruction format. It has two types of instructions: I-type and R-type. Each I-type instruction contains an opcode, a register name, and a 4-bit immediate value. Each R-type instruction contains an opcode and two register names. If there are 8 distinct I-type opcodes, then the maximum number of distinct R-type opcodes is ________. [GATE CSE 2020]
Consider the following instruction sequence where registers R1, R2 and R3 are general purpose and MEMORY denotes the content at the memory location .
| Instruction | Semantics | Instruction size (bytes) |
MOV R1, (5000) | R1 MEMORY | 4 |
MOV R2, (R3) | R2 MEMORYR3 | 4 |
ADD R2, R1 | R2 R1 R2 | 2 |
MOV (R3), R2 | MEMORYR3 R2 | 4 |
INC R3 | R3 R3 1 | 2 |
DEC R1 | R1 R1 1 | 2 |
BNZ 1004 | Branch if not zero to the given absolute address | 2 |
HALT | Stop | 1 |
Assume that the content of the memory location 5000 is 10, and the content of the register R3 is 3000. The content of each of the memory locations from 3000 to 3020 is 50. The instruction sequence starts from the memory location 1000. All the numbers are in decimal format. Assume that the memory is byte addressable. After the execution of the program, the content of memory location 3010 is ________. [GATE CSE 2021]
Consider the given C-code and its corresponding assembly code, with a few operands -- being unknown. Some useful information as well as the semantics of each unique assembly instruction is annotated as inline comments in the code. The memory is byte-addressable. [GATE CSE 2023]
Which one of the following options is a CORRECT replacement for operands in the position in the above assembly code?
A processor with 16 general purpose registers uses a 32-bit instruction format. The instruction format consists of an opcode field, an addressing mode field, two register operand fields, and a 16-bit scalar field. If 8 addressing modes are to be supported, the maximum number of unique opcodes possible for every addressing mode is ________ [GATE CSE 2024]
A processor uses a 32-bit instruction format and supports byte-addressable memory access. The ISA of the processor has 150 distinct instructions. The instructions are equally divided into two types, namely R-type and I-type, whose formats are shown below.
R-type Instruction Format:
| OPCODE | UNUSED | DST Register | SRC Register 1 | SRC Register 2 |
I-type Instruction Format:
| OPCODE | DST Register | SRC Register | # Immediate value/address |
In the OPCODE, 1 bit is used to distinguish between I-type and R-type instructions and the remaining bits indicate the operation. The processor has 50 architectural registers, and all register fields in the instructions are of equal size. Let be the number of bits used to encode the UNUSED field, be the number of bits used to encode the OPCODE field, and be the number of bits used to encode the immediate value/address field. The value of is ________ [GATE CSE 2024]
A machine has a 32-bit architecture with 1-word long instructions. It has 24 registers and supports an instruction set of size 40. Each instruction has five distinct fields, namely opcode, two source register identifiers, one destination register identifier, and an immediate value. Assuming that the immediate operand is an unsigned integer, its maximum value is ________. [GATE ECE 2024]
A partial data path of a processor is given in the figure, where RA, RB, and RZ are 32-bit registers. Which option(s) is/are CORRECT related to arithmetic operations using the data path as shown? [GATE CSE 2025]
A processor has 64 general-purpose registers and 50 distinct instruction types. An instruction is encoded in 32-bits. What is the maximum number of bits that can be used to store the immediate operand for the given instruction?
ADD R1, #25 // R1 = R1 + 25 |
[GATE CSE 2025]
Which of the following is/are part of an Instruction Set Architecture of a processor? [GATE CSE 2025]
Consider a processor P whose instruction set architecture is the load-store architecture. The instruction format is such that the first operand of any instruction is the destination operand. Which one of the following sequences of instructions corresponds to the high-level language statement ?
Note: X, Y, and Z are memory operands. R0, R1, and R2 are registers. [GATE CSE 2026]
Consider a processor that has 16 general purpose registers and it uses 2-byte instruction format for all its instructions. Variable-sized opcodes are permitted. There are three different types of instructions; M-type, R-type, and C-type. Each M-type instruction has 2 register operands and a 6-bit immediate operand. Each R-type instruction has 3 register operands. Each C-type instruction has a register operand and a 6-bit offset value. If there are 2 unique M-type opcodes and 7 unique R-type opcodes, which one of the following options gives the maximum number of unique opcodes possible for C-type instructions? [GATE CSE 2026]
Chapter 2
Data, Bits, and Logic
Number representation, radix conversion and arithmetic
We consider the addition of two 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 carry-out by . Which one of the following options correctly identifies the overflow condition? [GATE CSE 2006]
and are two 5-bit binary numbers represented in two's complement format. The sum of and represented in two's complement format using 6 bits is [GATE ECE 2007]
Let denote number system radix. The only value(s) of that satisfy the equation is/are [GATE CSE 2008]
The two numbers represented in signed 2's complement form are and . If is subtracted from , the value obtained in signed 2's complement form is [GATE ECE 2008]
is equivalent to [GATE CSE 2009]
is a -bit signed integer. The 's complement representation of is . The 's complement representation of is [GATE CSE 2010]
The smallest integer that can be represented by an number in complement form is [GATE CSE 2013]
The base (or radix) of the number system such that the following equation holds is________.
[GATE CSE 2014, Set 1]
Consider the equation with and as unknown. The number of possible solutions is ________ . [GATE CSE 2014, Set 2]
Consider the function func shown below:
int func(int num)
{
int count = 0;
while (num)
{
count++;
num >>= 1;
}
return (count);
}
The value returned by func(435) is ________. [GATE CSE 2014, Set 2]
The number of bytes required to represent the decimal number 1856357 in packed BCD (Binary Coded Decimal) form is ________ . [GATE ECE 2014, Set 2]
The complement representation of an integer is its decimal representation is ________ [GATE CSE 2016, Set 1]
Let be the number of distinct -bit integers in complement representation. Let be the number of distinct -bit integers in sign magnitude representation Then is________. [GATE CSE 2016, Set 2]
When two numbers and in 's complement representation (with and as the least significant bits) are added using a ripple-carry adder, the sum bits obtained are and the carry bits are . An overflow is said to have occurred if [GATE CSE 2017, Set 1]
(A) the carry bit is
(B) all the carry bits are
(C) is
(D) is
The representation of the value of a unsigned integer in hexadecimal number system is . The representation of the value of in octal number system is [GATE CSE 2017, Set 2]
Consider a quadratic equation with coefficients in a base . The solutions of this equation in the same base are and . Then ________. [GATE CSE 2017, Set 2]
In -bit 's complement representation, the decimal number is: [GATE CSE 2019]
Consider where and Z are all in sign-magnitude form. X and Y are each represented in bits. To avoid overflow, the representation of would require a minimum of: [GATE CSE 2019]
, , and are the decimal integers corresponding to the 4-bit binary number 1100 considered in signed magnitude, 1's complement, and 2's complement representations, respectively. The 6-bit 2's complement representation of is [GATE ECE 2020]
Let the representation of a number in base be . What is the hexadecimal representation of the number? [GATE CSE 2021, Set 1]
Let and be two registers that store numbers in complement form. For the operation which one of the following values of and gives an arithmetic overflow? [GATE CSE 2022]
Consider a system that uses bits for representing signed integers in 's complement format. In this system, two integers and are represented as = and =. Which one of the following operations will result in either an arithmetic overflow or an arithmetic underflow? [GATE CSE 2024, Set 1]
In a number system of base , the equation has as one of its solutions. The value of is ________. [GATE ECE 2024]
The number can be represented as in -bit 's complement representation. Which of the following is/are CORRECT 's complement representation(s) of ? [GATE CSE 2025, Set 1]
Consider the 8-bit signed integers , and represented using the sign-magnitude form. The binary representations of and are as follows:
Which of the following operations to compute result(s) in an arithmetic overflow? [GATE CSE 2026, Set 1]
In a system, numbers are represented using 4-bit two's complement form. Consider four numbers , , and in the system. Which of the following operations will result in arithmetic overflow? [GATE CSE 2026, Set 2]
What is the 10's complement of ? [GATE ECE 2026]
The 's complement representation of the decimal value is [GATE CSE 2002]
Zero has two representations in [GATE CSE 1999]
The number in complement representation is [GATE CSE 2000]
The 's complement representation of in hexadecimal is [GATE CSE 2001]
The decimal value [GATE CSE 2002]
The range of integers that can be represented by an bit complement number system is: [GATE CSE 2005]
Chapter 3
Combinational Logic and the TARA ALU
Boolean functions, gates, multiplexers and combinational circuits
A logical binary relation , is defined as follows:
| A | B | |
| True | True | True |
| True | False | True |
| False | True | False |
| False | False | True |
Let be the unary negation (NOT) operator, with higher precedence than .
Which one of the following is equivalent to ? [GATE CSE 2006]
Consider the circuit above. Which one of the following options correctly represents [GATE CSE 2006]
Given two three bit numbers and and the carry in, the function that represents the carry generate function when these two numbers are added is: [GATE CSE 2006]
(A)
(B)
(C)
(D)
Consider a Boolean function . 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 and , we would like the function to remain true as the input changes from to ( and differ in exactly one bit position) without becoming false momentarily.
Let . Which of the following cube covers of will ensure that the required property is satisfied? [GATE CSE 2006]
What is the maximum number of different Boolean functions involving Boolean variables? [GATE CSE 2007]
How many -to- line decoders with an enable input are needed to construct a -to- line decoder without using any other logic gates? [GATE CSE 2007]
Consider the following Boolean function of four variables:
The function is [GATE CSE 2007]
Let . Which of the following expressions are NOT equivalent to ?
P:
Q:
R:
S: [GATE CSE 2007]
Define the connective for the Boolean variables and as:
Let . Consider the following expressions , and .
Which of the following is TRUE? [GATE CSE 2007]
Suppose only one multiplexer and one inverter are allowed to be used to implement any Boolean function of variables. What is the minimum size of the multiplexer needed? [GATE CSE 2007]
In a look-ahead carry generator, the carry generate function and the carry propagate function for inputs and are given by:
The expressions for the sum bit and the carry bit of the look ahead carry adder are given by:
Consider a two-level logic implementation of the look-ahead carry generator. Assume that all and are available for the carry generator circuit and that the AND and OR gates can have any number of inputs. The number of AND gates and OR gates needed to implement the look-ahead carry generator for a -bit adder with and as its outputs are respectively: [GATE CSE 2007]
The Boolean function is to be realized using only 2-input NAND gates. The minimum number of gates required is [GATE ECE 2007]
The Boolean expression can be minimized to [GATE ECE 2007]
In the following circuit, is given by
[GATE ECE 2007]
In the Karnaugh map shown below, denotes a don't care term. What is the minimal form of the function represented by the Karnaugh map?
[GATE CSE 2008]
If are Boolean variables, then
simplifies to [GATE CSE 2008]
The logic function implemented by the following circuit at the terminal OUT is
[GATE ECE 2008]
Which of the following Boolean Expressions correctly represents the relation between , , and ?
[GATE ECE 2008]
For the circuit shown in the following figure, - are inputs to the multiplexer. (MSB) and are control bits.
The output can be represented by [GATE ECE 2008]
What is the minimum number of gates required to implement the Boolean function if we have to use only gates? [GATE CSE 2009]
The binary operation is defined as follows
| P | Q | |
| T | T | T |
| T | F | T |
| F | T | F |
| F | F | T |
Which one of the following is equivalent to ? [GATE CSE 2009]
If in the logic equation , then [GATE ECE 2009]
What are the minimum number of 2-to-1 multiplexers required to generate a 2-input AND gate and a 2-input Ex-OR gate ? [GATE ECE 2009]
Statement for Linked Answer Questions 59 and 60.
Two products are sold from a vending machine, which has two push buttons and . When a button is pressed, the price of the corresponding product is displayed in a 7-segment display.
- If no buttons are pressed, ‘0' is displayed, signifying ‘Rs. 0'.
- If only is pressed, ‘2' is displayed, signifying ‘Rs. 2'.
- If only is pressed, ‘5' is displayed, signifying ‘Rs. 5'.
- If both and are pressed, ‘E' is displayed, signifying ‘Error'.
The names of the segments in the 7-segment display, and the glow of display for ‘0', ‘2', ‘5' and ‘E', are shown below.
Consider
(i) push button pressed/not pressed is equivalent to logic 1/0 respectively,
(ii) a segment glowing / not glowing in the display is equivalent to logic 1/0 respectively.
If segments to are considered as functions of and , then which of the following is correct ? [GATE ECE 2009]
Use the shared statement in Question 24.
What are the minimum numbers of NOT gates and 2-input OR gates required to design the logic of the driver for this 7-segment display ? [GATE ECE 2009]
The minterm expansion of is [GATE CSE 2010]
The Boolean expression of the output of the multiplexer shown below is
[GATE CSE 2010]
What is the boolean expression for the output of the combinational logic circuit of NOR gates given below?
[GATE CSE 2010]
Match the logic gates in Column A with their equivalents in Column B.
[GATE ECE 2010]
For the output to be 1 in the logic circuit shown, the input combination should be
[GATE ECE 2010]
The simplified SOP (Sum of Product) from the Boolean expression
is [GATE CSE 2011]
Which one of the following circuits is NOT equivalent to a 2-input XNOR (exclusive NOR) gate?
[GATE CSE 2011]
The logic function implemented by the circuit below is (ground implies a logic “0)
[GATE ECE 2011]
The truth table
represents the Boolean function [GATE CSE 2012]
The amount of ROM needed to implement a multiplier is [GATE CSE 2012]
What is the minimal form of the Karnaugh map shown below? Assume that denotes a don't care term
[GATE CSE 2012]
The output of a 2-bit comparator is logic 1 whenever the 2-bit input is greater than the 2-bit input . The number of combinations for which the output is logic 1, is [GATE ECE 2012]
In the following truth table, if and only if the input is valid.
What function does the truth table represent? [GATE CSE 2013]
Which one of the following expressions does NOT represent exclusive NOR of and ? [GATE CSE 2013]
A bulb in a staircase has two switches, one switch being at the ground floor and the other one at the first floor. The bulb can be turned ON and also can be turned OFF by any one of the switches irrespective of the state of the other switch. The logic of switching of the bulb resembles [GATE ECE 2013]
In the circuit shown below, has negligible collector-to-emitter saturation voltage and the diode drops negligible voltage across it under forward bias. If is V, and are digital signals with 0 V as logic 0 and as logic 1, then the Boolean expression for is
[GATE ECE 2013]
Consider the following Boolean expression for F:
The minimal sumofproducts form of is [GATE CSE 2014, Set 1]
Consider the multiplexer with two select lines and given below
The minimal sum-of-products form of the Boolean expression for the output of the multiplexer is [GATE CSE 2014, Set 1]
The dual of a Boolean function , written as is the same expression as that of with and swapped. is said to be self-dual if . The number of self-dual functions with Boolean variables is [GATE CSE 2014, Set 2]
Consider the following minterm expression for :
The minterms , , and are 'do not care' terms. The minimal sum-of-products form for is [GATE CSE 2014, Set 3]
Consider the following combinational function block involving four Boolean variables where are inputs and is the output.
f(x, a, b, y)
{
if(x is 1) y = a;
else y = b;
}
Which one of the following digital logic blocks is the most suitable for implementing this function? [GATE CSE 2014, Set 3]
Let denote the exclusive OR (XOR) operation. Let '' and '' denote the binary constants. Consider the following Boolean expression for over two variables and :
The equivalent expression for is [GATE CSE 2014, Set 3]
The Boolean expression simplifies to [GATE ECE 2014, Set 1]
The output in the digital logic circuit shown in the figure is
[GATE ECE 2014, Set 1]
Consider the Boolean function, . Which one of the following is the complete set of essential prime implicants? [GATE ECE 2014, Set 1]
For an -variable Boolean function, the maximum number of prime implicants is [GATE ECE 2014, Set 2]
In a half-subtractor circuit with and as inputs, the Borrow and Difference are given by [GATE ECE 2014, Set 2]
Consider the multiplexer based logic circuit shown in the figure.
Which one of the following Boolean functions is realized by the circuit? [GATE ECE 2014, Set 3]
In the circuit shown, and are MSBs of the control inputs. The output is given by
[GATE ECE 2014, Set 3]
If and are inputs and the Difference and the Borrow are the outputs, which one of the following diagrams implements a half-subtractor?
[GATE ECE 2014, Set 3]
An 8-to-1 multiplexer is used to implement a logical function as shown in the figure. The output is given by
[GATE ECE 2014, Set 4]
A 16-bit ripple carry adder is realized using 16 identical full adders (FA) as shown in the figure. The carry-propagation delay of each FA is 12 ns and the sum-propagation delay of each FA is 15 ns. The worst case delay (in ns) of this 16-bit adder will be ________.
[GATE ECE 2014, Set 4]
The binary operator is defined by the following truth table
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |
Which one of the following is true about the binary operator ? [GATE CSE 2015, Set 1]
Consider the operations
Which one of the following is correct? [GATE CSE 2015, Set 1]
The number of min-terms after minimizing the following Boolean expression is ________.
[GATE CSE 2015, Set 2]
A half adder is implemented with XOR and AND gates. A full adder is implemented with two half adders and one OR gate. The propagation delay of an XOR gate is twice that of an AND/OR gate. The propagation delay of an AND/OR gate is 1.2 microseconds. A 4-bit ripple-carry binary adder is implemented by using four full adders. The total propagation time of this 4-bit binary adder in microseconds is ________. [GATE CSE 2015, Set 2]
Let be a binary operator defined as where X and Y are Boolean variables. Consider the following two statements.
Which of the following is/are true for the Boolean variables P, Q and R? [GATE CSE 2015, Set 3]
Given the function , where F is a function in three Boolean variables P, Q and R and , consider the following statements.
Which of the following is true? [GATE CSE 2015, Set 3]
A 16 Kb (=16,384 bit) memory array is designed as a square with an aspect ratio of one (number of rows is equal to the number of columns). The minimum number of address lines needed for the row decoder is ________. [GATE ECE 2015, Set 1]
The Boolean expression converted into the canonical product of sum (POS) form is [GATE ECE 2015, Set 1]
All the logic gates shown in the figure have a propagation delay of 20 ns. Let and until time . At , all the inputs flip (i.e., and ) and remain in that state. For , output for a duration (in ns) of ________.
[GATE ECE 2015, Set 1]
A 3-input majority gate is defined by the logic function . Which one of the following gates is represented by the function ? [GATE ECE 2015, Set 1]
In the figure shown, the output is required to be . The gates G1 and G2 must be, respectively,
[GATE ECE 2015, Set 2]
A function of Boolean variables , and is expressed in terms of the min-terms as
Which one of the product of sums given below is equal to the function ? [GATE ECE 2015, Set 2]
(A)
(B)
(C)
(D)
A 1-to-8 demultiplexer with data input , address inputs , , (with as the LSB) and to as the eight demultiplexed outputs, is to be designed using two 2-to-4 decoders (with enable input and address inputs and ) as shown in the figure. , , and are to be connected to P, Q, R and S, but not necessarily in this order. The respective input connections to P, Q, R, and S terminals should be
[GATE ECE 2015, Set 2]
In the circuit shown, diodes , and are ideal, and the inputs , and are “0 V” for logic ‘0' and “10 V” for logic ‘1'. What logic gate does the circuit represent?
[GATE ECE 2015, Set 3]
A universal logic gate can implement any Boolean function by connecting sufficient number of them appropriately. Three gates are shown.
Which one of the following statements is TRUE? [GATE ECE 2015, Set 3]
Consider the Boolean operator # with the following properties :
and Then is equivalent to [GATE CSE 2016, Set 1]
Consider the two cascade to multiplexers as shown in the figure .
The minimal sum of products form of the output is [GATE CSE 2016, Set 1]
Consider a carry look ahead adder for adding two -bit integers, built using gates of fan-in at most two. The time to perform addition using this adder is [GATE CSE 2016, Set 1]
Consider an eight-bit ripple-carry adder for computing the sum of and , where and are integers represented in 's complement form. If the decimal value of is one, the decimal value of that leads to the longest latency for the sum to stabilize is ________ [GATE CSE 2016, Set 2]
Let, where are Boolean variables, and is the XOR operator.
Which one of the following must always be TRUE? [GATE CSE 2016, Set 2]
Identify the circuit below.
[GATE ECE 2016, Set 1]
The functionality implemented by the circuit below is
[GATE ECE 2016, Set 1]
A 4:1 multiplexer is to be used for generating the output carry of a full adder. A and B are the bits to be added while is the input carry and is the output carry. A and B are to be used as the select bits with A being the more significant select bit.
Which one of the following statements correctly describes the choice of signals to be connected to the inputs , , and so that the output is ? [GATE ECE 2016, Set 2]
An 8 Kbyte ROM with an active low Chip Select input () is to be used in an 8085 microprocessor based system. The ROM should occupy the address range 1000H to 2FFFH. The address lines are designated as to , where is the most significant address bit.
Which one of the following logic expressions will generate the correct signal for this ROM? [GATE ECE 2016, Set 2]
(A)
(B)
(C)
(D)
The logic functionality realized by the circuit shown below is
[GATE ECE 2016, Set 3]
The minimum number of 2-input NAND gates required to implement a 2-input XOR gate is [GATE ECE 2016, Set 3]
Following is the K-map of a Boolean function of five variables P, Q, R, S and X. The minimum sum-of-product (SOP) expression for the function is
[GATE ECE 2016, Set 3]
(A)
(B)
(C)
(D)
For the circuit shown in the figure, the delays of NOR gates, multiplexers and inverters are 2 ns, 1.5 ns and 1 ns, respectively. If all the inputs P, Q, R, S and T are applied at the same time instant, the maximum propagation delay (in ns) of the circuit is ________
[GATE ECE 2016, Set 3]
Consider the Karnaugh map given below, where represents "don't care" and blank represents .
Assume for all inputs , the respective complements are also available. The above logic is implemented using -input gates only. The minimum number of gates required is ________ . [GATE CSE 2017, Set 1]
If are Boolean variables, then which one of the following is INCORRECT? [GATE CSE 2017, Set 2]
Given ; where represents the 'don't-care' condition in Karnaugh maps. Which of the following is a minimum product-of-sums (POS) form of ? [GATE CSE 2017, Set 2]
Which one of the following gives the simplified sum of products expression for the Boolean function , where , , and are minterms corresponding to the inputs , and with as the MSB and as the LSB? [GATE ECE 2017, Set 1]
For the circuit shown in the figure, P and Q are the inputs and Y is the output.
The logic implemented by the circuit is [GATE ECE 2017, Set 2]
Consider the circuit shown in the figure.
The Boolean expression implemented by the circuit is [GATE ECE 2017, Set 2]
Figure I shows a 4-bit ripple carry adder realized using full adders and Figure II shows the circuit of a full-adder (FA). The propagation delay of the XOR, AND and OR gates in Figure II are 20 ns, 15 ns and 10 ns, respectively. Assume all the inputs to the 4-bit adder are initially reset to 0.
Figure I
Figure II
At , the inputs to the 4-bit adder are changed to , and . The output of the ripple carry adder will be stable at (in ns) = ________. [GATE ECE 2017, Set 2]
A programmable logic array (PLA) is shown in the figure.
The Boolean function implemented is [GATE ECE 2017, Set 2]
Let and denote the Exclusive OR and Exclusive NOR operations, respectively. Which one of the following is NOT CORRECT? [GATE CSE 2018]
Consider the minterm list form of a Boolean function given below.
Here, denotes a minterm and denotes a don't care term. The number of essential prime implicants of the function is ________ [GATE CSE 2018]
The logic function realized by the given circuit is
[GATE ECE 2018]
A function defined by three Boolean variables A, B and C when expressed as sum of products is given by
where, , , and are the complements of the respective variables. The product of sums (POS) form of the function F is [GATE ECE 2018]
(A)
(B)
(C)
(D)
A four-variable Boolean function is realized using multiplexers as shown in the figure.
The minimized expression for is [GATE ECE 2018]
The logic gates shown in the digital circuit below use strong pull-down nMOS transistors for LOW logic level at the outputs. When the pull-downs are off, high-value resistors set the output logic levels to HIGH (i.e. the pull-ups are weak). Note that some nodes are intentionally shorted to implement “wired logic”. Such shorted nodes will be HIGH only if the outputs of all the gates whose outputs are shorted are HIGH.
The number of distinct values of (out of the 16 possible values) that give is ________. [GATE ECE 2018]
The chip select logic for a certain DRAM chip in a memory system design is shown below. Assume that the memory system has 16 address lines denoted by to . What is the range of address (in hexadecimal) of the memory system that can get enabled by the chip select (CS) signal?
[GATE CSE 2019]
Which one of the following is NOT a valid identity? [GATE CSE 2019]
Consider three -variable functions , and , which are expressed in sum-of-minterms as
For the following circuit with one AND gate and one XOR gate the output function can be expressed as:
[GATE CSE 2019]
What is the minimum number of -input NOR gates required to implement a -variable function expressed in sum-of-minterms form as Assume that all the inputs and their complements are available. Answer: ________ [GATE CSE 2019]
In the circuit shown, A and B are the inputs and F is the output. What is the functionality of the circuit?
[GATE ECE 2019]
A multiplexer is placed between a group of registers and an accumulator to regulate data movement such that at any given point in time the content of only one register will move to the accumulator. The number of select lines needed for the multiplexer is ________. [GATE CSE 2020]
If there are input lines and output lines for a decoder that is used to uniquely address a byte addressable KB RAM, then the minimum value of is ________ . [GATE CSE 2020]
Consider the Boolean function .
Which one of the following minterm lists represents the circuit given above? [GATE CSE 2020]
The figure below shows a multiplexer where and are the select lines, to are the input data lines, EN is the enable line, and is the output. is
[GATE ECE 2020]
Consider the following Boolean expression.
Which of the following Boolean expressions is/are equivalent to (complement of )? [GATE CSE 2021, Set 1]
Which one of the following circuits implements the Boolean function given below?
, where is the minterm.
[GATE CSE 2021, Set 2]
Consider a Boolean function such that
The number of literals in the minimal sum-of-products expression of is ________ [GATE CSE 2021, Set 2]
Addressing of a memory is realized using a single decoder. The minimum number of AND gates required for the decoder is [GATE ECE 2021]
The propagation delays of the XOR gate, AND gate and multiplexer (MUX) in the circuit shown in the figure are 4 ns, 2 ns and 1 ns, respectively. If all the inputs P, Q, R, S and T are applied simultaneously and held constant, the maximum propagation delay of the circuit is
[GATE ECE 2021]
Consider a digital display system shown in the figure that displays the contents of register A code word is used to load a word in either from or from is a word memory segment and is a word register file. Based on the value of mode bit selects an input word to load in
and interface with the corresponding bits in the code word to choose the addressed word. Which one of the following represents the functionality of and
[GATE CSE 2022]
(A) is multiplexer is multiplexer is multiplexer
(B) is decoder is decoder is encoder
(C) is decoder is decoder is multiplexer
(D) is de-multiplexer is de-multiplexer is multiplexer
Consider the 2-bit multiplexer (MUX) shown in the figure. For OUTPUT to be the XOR of C and D, the values for , , , and are ________.
[GATE ECE 2022]
Select the Boolean function(s) equivalent to , where , , and are Boolean variables, and denotes logical OR operation. [GATE ECE 2022]
Consider a Boolean gate (D) where the output is related to the inputs and as, , where denotes logical OR operation. The Boolean inputs ‘0' and ‘1' are also available separately. Using instances of only D gates and inputs ‘0' and ‘1', ________ (select the correct option(s)). [GATE ECE 2022]
A 4 kilobyte (KB) byte-addressable memory is realized using four 1 KB memory blocks. Two input address lines ( and ) are connected to the chip select (CS) port of these memory blocks through a decoder as shown in the figure. The remaining ten input address lines from -- are connected to the address port of these blocks. The chip select (CS) is active high.
The input memory addresses (--), in decimal, for the starting locations (Addr=0) of each block (indicated as , , , in the figure) are among the options given below. Which one of the following options is CORRECT? [GATE CSE 2023]
A Boolean digital circuit is composed using two -input multiplexers and one -input multiplexer as shown in the figure. are the inputs of the multiplexers and could be connected to either or The select lines of the multiplexers are connected to Boolean variables as shown.
Which one of the following set of values of will realise the Boolean function [GATE CSE 2023]
Consider a Boolean expression given by .
Which of the following statements is/are CORRECT? [GATE CSE 2024, Set 1]
Consider a digital logic circuit consisting of three -to- multiplexers , and as shown below. and are inputs of . and are inputs of . , and are select lines of , and , respectively.
For an instance of inputs , and , the number of combinations of that give the output is ________. [GATE CSE 2024, Set 1]
For a Boolean variable , which of the following statements is/are FALSE? [GATE CSE 2024, Set 2]
For the Boolean function , the essential prime implicants are ________. [GATE ECE 2024]
A 4-bit priority encoder has inputs , , , and in descending order of priority. The two-bit output is generated as 00, 01, 10, and 11 corresponding to inputs , , , and , respectively. The Boolean expression of the output bit is ________. [GATE ECE 2024]
Let be a -variable Boolean function that produces output as when at least two of the input variables are . Which of the following statement(s) is/are CORRECT, where are Boolean variables? [GATE CSE 2025, Set 1]
Consider the following four variable Boolean function in sum-of-product form
where the value of the function is computed by considering as a -bit binary number, where denotes the most significant bit and denotes the least significant bit. Note that there are no don't care terms. Which ONE of the following options is the CORRECT minimized Boolean expression for ? [GATE CSE 2025, Set 1]
Consider the following logic circuit diagram.
Which is/are the CORRECT option(s) for the output function ? [GATE CSE 2025, Set 2]
Given the following Karnaugh Map for a Boolean function :
Which one or more of the following Boolean expression(s) represent(s) ? [GATE CSE 2025, Set 2]
(A)
(B)
(C)
(D)
Which of the following Boolean algebraic equation(s) is/are CORRECT? [GATE CSE 2025, Set 2]
(A)
(B)
(C)
(D)
A 3-input majority logic gate has inputs X, Y and Z. The output F of the gate is logic ‘1' if two or more of the inputs are logic ‘1'. The output F is logic ‘0' if two or more of the inputs are logic ‘0'.
Which one of the following options is a Boolean expression of the output F? [GATE ECE 2025]
A full adder and an XOR gate are used to design a digital circuit with inputs X, Y, and Z, and output F, as shown below. The input Z is connected to the carry-in input of the full adder.
If the input Z is set to logic ‘1', then the circuit functions as ________ with X and Y as inputs.
[GATE ECE 2025]
Consider the following Boolean expression of a function F :
Which of the following expressions is/are equivalent to F ? [GATE CSE 2026, Set 1]
Consider a Boolean function F with the following minterm expression:
Which of the following options is/are the minimal sum-of-products expression(s) of F ? [GATE CSE 2026, Set 1]
Which one of the following options is not a property of Boolean Algebra?
Note: is OR operation, is AND operation, and is NOT operation [GATE CSE 2026, Set 2]
Consider the following 4-variable Boolean function
Consider A as MSB, D as LSB. Which one of the following options represents the minimal sum of products form for the above function?
Note: is OR operation, is AND operation, is NOT operation [GATE CSE 2026, Set 2]
Consider the digital circuit shown below with two input lines A and B, two select lines and , and an output line Y. The blocks Q and M represent active high 2:4 decoder and 4-to-1 multiplexer, respectively. Out of 16 possible input combinations, the number of combinations that produce Y=1 is ________. (answer in integer)
Note: One input combination is an instance of .
[GATE CSE 2026, Set 2]
A Boolean function, with x as MSB and z as LSB is realized by 4:1 multiplexer (MUX) with select lines, and ( is MSB, is LSB) and inputs, , , , as shown in the Figure.
Which of the following options is the correct expression of ?
[GATE ECE 2026]
Consider the four-variable Boolean function,
with ‘w' as MSB and ‘z' as LSB.
Which of the following expressions is/are the valid form(s) of ? [GATE ECE 2026]
Which of the following operations is commutative but not associative? [GATE CSE 1998]
Which of the following expressions is not equivalent to ? [GATE CSE 1999]
The simultaneous equations on the Boolean variables and ,
have the following solution for and respectively: [GATE CSE 2000]
Let . Simplified expression for function is [GATE CSE 2002]
A Boolean function is equivalent to [GATE CSE 2004]
Which of the following expressions is equivalent to [GATE IT 2005]
Chapter 4
Sequential Logic, Memory, and Control
Flip-flops, registers, counters, state machines and memory
You are given a free running clock with a duty cycle of and a digital waveform 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 by ?
[GATE CSE 2006]
Consider the circuit in the diagram. The operator represents Ex-OR. The D flip-flops are initialized to zeroes (cleared).
The following data: is supplied to the “data” terminal in nine clock cycles. After that the values of are: [GATE CSE 2006]
Consider numbers represented in 4-bit Gray code. Let be the Gray code representation of a number and let be the Gray code of value of the number. Which one of the following functions is correct? [GATE CSE 2006]
The control signal functions of a 4-bit binary counter are given below (where is “don't care”):
The counter is connected as follows:
Assume that the counter and gate delays are negligible. If the counter starts at then it cycles through the following sequence: [GATE CSE 2007]
The following binary values were applied to the and inputs of the NAND latch shown in the figure in the sequence indicated below:
The corresponding stable outputs will be
[GATE ECE 2007]
For the circuit shown, the counter state follows the sequence
[GATE ECE 2007]
For each of the positive edge-triggered J-K flip flop used in the following figure, the propagation delay is .
Which of the following waveforms correctly represents the output at ?
[GATE ECE 2008]
For the circuit shown in the figure, has a transition from 0 to 1 after CLK changes from 1 to 0. Assume gate delays to be negligible.
Which of the following statements is true? [GATE ECE 2008]
In the following circuit, the comparator output is logic “1” if and is logic “0” otherwise. The D/A conversion is done as per the relation
where (MSB), , and (LSB) are the counter outputs.
The counter starts from the clear state.
(a)
The stable reading of the LED displays is [GATE ECE 2008]
(b)
The magnitude of the error between and at steady state in volts is [GATE ECE 2008]
How many RAM chips are needed to provide a memory capacity of bytes? [GATE CSE 2009]
Given the following state table of an FSM with two states and ,one input and one output.
If the initial state is what is the minimum length of an input string which will take the machine to the state with . [GATE CSE 2009]
Refer to the NAND and NOR latches shown in the figure. The inputs for both the latches are first made and then, after a few seconds, made . The corresponding stable outputs are
[GATE ECE 2009]
What are the counting states for the counter shown in the figure below ?
[GATE ECE 2009]
The main memory unit with a capacity of is built using DRAM chips. Each DRAM chip has rows of cells with cells in each row. The time taken for a single refresh operation is . The time required to perform one refresh operation on all the cells in the memory unit is [GATE CSE 2010]
In the sequential circuit shown below, if the initial value of the output is . What are the next four values of ?
[GATE CSE 2010]
Assuming that all flip-flops are in reset condition initially, the count sequence observed at in the circuit shown is
[GATE ECE 2010]
The minimum number of D flip-flops needed to design a mod-258 counter is. [GATE CSE 2011]
Consider the following circuit involving three D-type flip-flops used in a certain type of counter configuration.
If all the flip-flops were reset to at power on, what is the total number of distinct outputs (states) represented by generated by the counter? [GATE CSE 2011]
Consider the following circuit involving three D-type flip-flops used in a certain type of counter configuration.
If at some instance prior to the occurrence of the clock edge, and have a value , and respectively, what shall be the value of after the clock edge? [GATE CSE 2011]
When the output in the circuit below is “1”, it implies that data has
[GATE ECE 2011]
The output of a 3-stage Johnson (twisted-ring) counter is fed to a digital-to-analog (D/A) converter as shown in the figure below. Assume all states of the counter to be unset initially. The waveform which represents the D/A converter output is
[GATE ECE 2011]
Two D flip-flops are connected as a synchronous counter that goes through the following sequence
The connections to the inputs and are [GATE ECE 2011]
Consider the given circuit.
In this circuit, the race around [GATE ECE 2012]
The state transition diagram for the logic circuit shown is
[GATE ECE 2012]
Let . A circuit is built by giving the output of an -bit binary counter as input to an bit decoder. This circuit is equivalent to a [GATE CSE 2014, Set 2]
The above synchronous sequential circuit built using JK flip-flops is initialized with . The state sequence for this circuit for the next clock cycles is [GATE CSE 2014, Set 3]
Five JK flip-flops are cascaded to form the circuit shown in Figure. Clock pulses at a frequency of 1 MHz are applied as shown. The frequency (in kHz) of the waveform at is ________ .
[GATE ECE 2014, Set 1]
The digital logic shown in the figure satisfies the given state diagram when is connected to input A of the XOR gate.
Suppose the XOR gate is replaced by an XNOR gate. Which one of the following options preserves the state diagram? [GATE ECE 2014, Set 1]
The outputs of the two flip-flops in the figure shown are initialized to 0, 0. The sequence generated at upon application of clock signal is
[GATE ECE 2014, Set 2]
The circuit shown in the figure is a
[GATE ECE 2014, Set 3]
If WL is the Word Line and BL the Bit Line, an SRAM cell is shown in
[GATE ECE 2014, Set 3]
Consider a 4 bit Johnson counter with an initial value of 0000. The counting sequence of this counter is: [GATE CSE 2015, Set 1]
A positive edge-triggered D flip-flop is connected to a positive edge-triggered JK flipflop as follows. The Q output of the D flip-flop is connected to both the J and K inputs of the JK flip-flop, while the Q output of the JK flip-flop is connected to the input of the D flip-flop. Initially, the output of the D flip-flop is set to logic one and the output of the JK flip-flop is cleared. Which one of the following is the bit sequence (including the initial state) generated at the Q output of the JK flip-flop when the flip-flops are connected to a free-running common clock? Assume that J = K = 1 is the toggle mode and J = K = 0 is the state-holding mode of the JK flip-flop. Both the flip-flops have non-zero propagation delays. [GATE CSE 2015, Set 1]
The minimum number of flip-flops required to construct a synchronous counter with the count sequence is ________. [GATE CSE 2015, Set 2]
A mod- counter using a synchronous binary up-counter with synchronous clear input is shown in the figure. The value of is ________.
[GATE ECE 2015, Set 2]
The figure shows a binary counter with synchronous clear input. With the decoding logic shown, the counter works as a
[GATE ECE 2015, Set 2]
The circuit shown consists of J-K flip-flops, each with an active low asynchronous reset input). The counter corresponding to this circuit is
[GATE ECE 2015, Set 3]
A three bit pseudo random number generator is shown. Initially the value of output is set to 111. The value of output after three clock cycles is
[GATE ECE 2015, Set 3]
An SR latch is implemented using TTL gates as shown in the figure. The set and reset pulse inputs are provided using the push-button switches. It is observed that the circuit fails to work as desired. The SR latch can be made functional by changing
[GATE ECE 2015, Set 3]
We want to design a synchronous counter that counts the sequence and then repeats. The minimum number of flip-flops required to implement this counter is ________. [GATE CSE 2016, Set 1]
Assume that all the digital gates in the circuit shown in the figure are ideal, the resistor and the supply voltage is 5 V. The D flip-flops , , , and are initialized with logic values 0, 1, 0, 1 and 0, respectively. The clock has a 30% duty cycle.
The average power dissipated (in mW) in the resistor is ________ [GATE ECE 2016, Set 2]
The state transition diagram for a finite state machine with states A, B and C, and binary inputs X, Y and Z, is shown in the figure.
Which one of the following statements is correct? [GATE ECE 2016, Set 2]
For the circuit shown in the figure, the delay of the bubbled NAND gate is 2 ns and that of the counter is assumed to be zero.
If the clock (Clk) frequency is 1 GHz, then the counter behaves as a [GATE ECE 2016, Set 3]
Consider a combination of and flip-flops connected as shown below. The output of the flip-flop is connected to the input of the flip-flop and the output of the flip-flop is connected to the input of the flip-flop.
Initially, both and are set to (before the clock cycle). The outputs [GATE CSE 2017, Set 1]
(A) after the cycle are and after the cycle are respectively.
(B) after the cycle are and after the cycle are respectively.
(C) after the cycle are and after the cycle are respectively.
(D) after the cycle are and after the cycle are respectively.
The next state table of a bit saturating up-counter is given below.
The counter is built as a synchronous sequential circuit using flip-flops. The expressions for and are [GATE CSE 2017, Set 2]
In the latch circuit shown, the NAND gates have non-zero, but unequal propagation delays. The present input condition is: P = Q = ‘0'. If the input condition is changed simultaneously to P = Q = ‘1', the outputs X and Y are
[GATE ECE 2017, Set 1]
Consider the D-Latch shown in the figure, which is transparent when its clock input CK is high and has zero propagation delay. In the figure, the clock signal CLK1 has a 50% duty cycle and CLK2 is a one-fifth period delayed version of CLK1. The duty cycle at the output of the latch in percentage is ________.
[GATE ECE 2017, Set 1]
A 4-bit shift register circuit configured for right-shift operation, i.e. , , , , is shown. If the present state of the shift register is , the number of clock cycles required to reach the state is ________.
[GATE ECE 2017, Set 1]
A finite state machine (FSM) is implemented using the D flip-flops A and B, and logic gates, as shown in the figure below. The four possible states of the FSM are , and 11.
Assume that is held at a constant logic level throughout the operation of the FSM. When the FSM is initialized to the state and clocked, after a few clock cycles, it starts cycling through [GATE ECE 2017, Set 1]
In a DRAM, [GATE ECE 2017, Set 2]
The state diagram of a finite state machine (FSM) designed to detect an overlapping sequence of three bits is shown in the figure. The FSM has an input ‘In' and an output ‘Out'. The initial state of the FSM is .
If the input sequence is 10101101001101, starting with the left-most bit, then the number of times ‘Out' will be 1 is ________. [GATE ECE 2017, Set 2]
Consider the sequential circuit shown in the figure, where both flip-flops used are positive edge-triggered flip-flops.
The number of states in the state transition diagram of this circuit that have a transition back to the same state on some value of "in" is ________ [GATE CSE 2018]
A 32-bit wide main memory unit with a capacity of 1 GB is built using -bit DRAM chips. The number of rows of memory cells in the DRAM chip is . The time taken to perform one refresh operation is 50 nanoseconds. The refresh period is 2 milliseconds. The percentage (rounded to the closest integer) of the time available for performing the memory read/write operations in the main memory unit is ________. [GATE CSE 2018]
A traffic signal cycles from GREEN to YELLOW, YELLOW to RED and RED to GREEN. In each cycle, GREEN is turned on for 70 seconds, YELLOW is turned on for 5 seconds and the RED is turned on for 75 seconds. This traffic light has to be implemented using a finite state machine (FSM). The only input to this FSM is a clock of 5 second period. The minimum number of flip-flops required to implement this FSM is ________. [GATE ECE 2018]
A ROM array is built with the help of diodes as shown in the circuit below. Here W0 and W1 are signals that select the word lines and B0 and B1 are signals that are output of the sense amps based on the stored data corresponding to the bit lines during the read operation.
During the read operation, the selected word line goes high and the other word line is in a high impedance state. As per the implementation shown in the circuit diagram above, what are the bits corresponding to (where or 1 and or 1) stored in the ROM? [GATE ECE 2018]
(A)
(B)
(C)
(D)
In the circuit shown below, a positive edge-triggered D Flip-Flop is used for sampling input data using clock . The XOR gate outputs 3.3 volts for logic HIGH and 0 volts for logic LOW levels. The data bit and clock periods are equal and the value of , where the parameters and are shown in the figure. Assume that the Flip-Flop and the XOR gate are ideal.
If the probability of input data bit () transition in each clock period is 0.3, the average value (in volts, accurate to two decimal places) of the voltage at node , is ________. [GATE ECE 2018]
In the circuit shown, the clock frequency, i.e., the frequency of the Clk signal, is 12 kHz. The frequency of the signal at is ________ kHz.
[GATE ECE 2019]
The state transition diagram for the circuit shown is
[GATE ECE 2019]
The state diagram of a sequence detector is shown below. State is the initial state of the sequence detector. If the output is 1, then
[GATE ECE 2020]
For the components in the sequential circuit shown below, is the propagation delay, is the setup time, and is the hold time. The maximum clock frequency (rounded off to the nearest integer), at which the given circuit can operate reliably, is ________ MHz.
[GATE ECE 2020]
Consider a -bit counter, designed using flip-flops, as shown below:
Assuming the initial state of the counter given by as , what are the next three states? [GATE CSE 2021, Set 1]
Suppose we want to design a synchronous circuit that processes a string of 0's and 1's. Given a string, it produces another string by replacing the first 1 in any subsequence of consecutive 1's by a 0. Consider the following example.
| Input sequence : | 00100011000011100 |
| Output sequence : | 00000001000001100 |
A Mealy Machine is a state machine where both the next state and the output are functions of the present state and the current input. The above mentioned circuit can be designed as a two-state Mealy machine. The states in the Mealy machine can be represented using Boolean values 0 and 1. We denote the current state, the next state, the next incoming bit, and the output bit of the Mealy machine by the variables s, t, b and y respectively. Assume the initial state of the Mealy machine is 0. What are the Boolean expressions corresponding to t and y in terms of s and b? [GATE CSE 2021, Set 2]
The propagation delay of the exclusive-OR (XOR) gate in the circuit in the figure is 3 ns. The propagation delay of all the flip-flops is assumed to be zero. The clock (Clk) frequency provided to the circuit is 500 MHz.
Starting from the initial value of the flip-flop outputs with , the minimum number of triggering clock edges after which the flip-flop outputs becomes 1 0 0 (in integer) is ________. [GATE ECE 2021]
For the circuit shown, the clock frequency is and the duty cycle is 25%. For the signal at the Q output of the Flip-Flop, ________.
[GATE ECE 2022]
The output of a -input multiplexer is connected back to one of its inputs as shown in the figure.
Match the functional equivalence of this circuit to one of the following options. [GATE CSE 2023]
Consider a sequential digital circuit consisting of flip-flops and flip-flops as shown in the figure. is the clock input to the circuit. At the beginning, and have values and respectively.
Which one of the given values of can be obtained with this digital circuit? [GATE CSE 2023]
The synchronous sequential circuit shown below works at a clock frequency of 1 GHz. The throughput, in Mbits/s, and the latency, in ns, respectively, are
[GATE ECE 2023]
For the circuit shown below, the propagation delay of each NAND gate is 1 ns. The critical path delay, in ns, is ________ (rounded off to the nearest integer).
[GATE ECE 2023]
In a given sequential circuit, initial states are and . For a clock frequency of 1 MHz, the frequency of signal in kHz, is ________ (rounded off to the nearest integer).
[GATE ECE 2023]
The sequence of states () of the given synchronous sequential circuit is ________.
[GATE ECE 2024]
Consider the given sequential circuit designed using D-Flip-flops. The circuit is initialized with some value (initial state). The number of distinct states the circuit will go through before returning back to the initial state is ________. (Answer in integer)
[GATE CSE 2025, Set 1]
In a -bit ripple counter, if the period of the waveform at the last flip-flop is microseconds, then the frequency of the ripple counter in kHz is ________. (Answer in integer) [GATE CSE 2025, Set 2]
A positive-edge-triggered sequential circuit is shown below. There are no timing violations in the circuit. Input P0 is set to logic ‘0' and P1 is set to logic ‘1' at all times. The timing diagram of the inputs SEL and S are also shown below.
The sequence of output Y from time to is ________.
[GATE ECE 2025]
In the circuit shown below, the AND gate has a propagation delay of 1 ns. The edge-triggered flip-flops have a set-up time of 2 ns, a hold-time of 0 ns, and a clock-to-Q delay of 2 ns.
The maximum clock frequency (in MHz, rounded off to the nearest integer) such that there are no setup violations is ________.
[GATE ECE 2025]
Consider a 2-bit saturating up/down counter that performs the saturating up count when the input P is 0, and the saturating down count when P is 1. The Next State table of the counter is as shown. The counter is built as a synchronous sequential circuit using D flip-flops.
| Input | Current State | Next State | ||
| 0 | 0 | 0 | 0 | 1 |
| 0 | 0 | 1 | 1 | 0 |
| 0 | 1 | 0 | 1 | 1 |
| 0 | 1 | 1 | 1 | 1 |
| 1 | 0 | 0 | 0 | 0 |
| 1 | 0 | 1 | 0 | 0 |
| 1 | 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 1 | 0 |
Which one of the following options corresponds to the expressions for the inputs of the D flip-flops, and ? [GATE CSE 2026, Set 1]
(A)
(B)
(C)
(D)
A binary ripple counter is designed to count to .
Which of the following is/are the number of flip-flops required to design the counter? [GATE ECE 2026]
The negative edge triggered JK flip-flop in the Figure has J and K inputs tied to Logic High and a square wave of 10 cycles/second is applied to its clock (C) input.
The frequency of the output Q (in cycles/second) is ________.
(rounded off to two decimal places)
[GATE ECE 2026]
A shift-left Shift Register (SR) and a D flip-flop are connected to a synchronized clock as shown in the Figure. Assume that the SR and D flip-flops are initially cleared and the XOR gate has no propagation delay.
Which of the following options gives the correct binary representation () of the content of the shift register immediately after the 5th clock transition (positive edge)?
[GATE ECE 2026]
The number of flip-flops required to construct a binary modulo counter is ________ [GATE CSE 1994]
How many pulses are needed to change the contents of a -bit up counter from to (rightmost bit is the LSB)? [GATE IT 2005]
Consider the following state diagram and its realization by a JK flip flop
The combinational circuit generates J and K in terms of x, y and Q.
The Boolean expressions for J and K are : [GATE IT 2008]
A ROM is used to store the Truth table for binary multiple units that will multiply two -bit numbers. The size of the ROM (number of words number of bits) that is required to accommodate the Truth table is . Write the values of and . [GATE CSE 1993]
A ROM is used to store the table for multiplication of two -bit unsigned integers. The size of ROM required is [GATE CSE 1996]
What is the minimum size of ROM required to store the complete truth table of an -bit -bit multiplier? [GATE IT 2004]
No matching questions
Try another search term or include practised questions.