Find Interview Questions for Top Companies
Ques:- Suppose you have a combination circuit between two registers driven by a clock. What will you do if the delay of the combination circuit is greater than your clock signal? (You can’t resize the combination circuit transistors)
Right Answer:
You can increase the clock period to ensure it accommodates the delay of the combinational circuit.
Ques:- Design a divide-by-3 sequential circuit with 50% duty circle.
Right Answer:
To design a divide-by-3 sequential circuit with a 50% duty cycle, you can use a 3-bit Johnson counter or a 3-bit binary counter with appropriate state encoding. The circuit should have the following states: 00, 01, 10, and reset back to 00 after reaching 11. Use flip-flops to store the state and combinational logic to determine the next state based on the current state. The output can be taken from the flip-flops to ensure a 50% duty cycle by toggling the output every three clock cycles.
Ques:- Design a Transmission Gate based XOR. Now, how do you convert it to XNOR?
Right Answer:
To design a Transmission Gate based XOR, use two transmission gates (TG1 and TG2) and two inverters (INV1 and INV2). Connect the inputs A and B to the gates of the transmission gates as follows:

1. Connect A to the gate of TG1 and B to the gate of TG2.
2. Connect the output of TG1 to one input of INV1, and the output of TG2 to one input of INV2.
3. Connect the outputs of INV1 and INV2 together to get the XOR output.

To convert this XOR to XNOR, simply invert the output of the XOR. You can do this by adding an additional inverter (INV3) at the output of the XOR. The final output will be the output of INV3, which gives you the XNOR.
Ques:- Design any FSM in VHDL or Verilog.
Right Answer:
```verilog
module fsm_example (
input clk,
input reset,
input in,
output reg out
);
typedef enum reg [1:0] {S0, S1, S2} state_t;
state_t state, next_state;

always @(posedge clk or posedge reset) begin
if (reset)
state <= S0;
else
state <= next_state;
end

always @(*) begin
case (state)
S0: begin
out = 0;
if (in)
next_state = S1;
else
next_state = S0;
end
S1: begin
out = 1;
if (in)
next_state = S2;
else
next_state = S0;
end
S2: begin
out = 0;
if (in)
next_state = S1
Ques:- How do you detect a sequence of “1101” arriving serially from a signal line?
Right Answer:
To detect the sequence "1101" arriving serially from a signal line, you can use a finite state machine (FSM) or a shift register. The FSM will have states corresponding to each bit of the sequence, transitioning through states as each bit is received. When the FSM reaches the final state after receiving "1101", it indicates that the sequence has been detected. Alternatively, a shift register can be used to store the last four bits received, and you can compare these bits to "1101" to detect the sequence.
Ques:- What are set up time & hold time constraints? What do they signify? Which one is critical for estimating maximum clock frequency of a circuit?
Right Answer:
Setup time is the minimum time before the clock edge that the data input must be stable, while hold time is the minimum time after the clock edge that the data input must remain stable. Setup time is critical for estimating the maximum clock frequency of a circuit.
Ques:- What are the different Adder circuits you studied?
Right Answer:
The different adder circuits include:

1. Half Adder
2. Full Adder
3. Ripple Carry Adder
4. Carry Lookahead Adder
5. Carry Select Adder
6. Carry Save Adder
Ques:- Give two ways of converting a two input NAND gate to an inverter.
Right Answer:
1. Connect both inputs of the NAND gate together and apply the input signal to them.
2. Use a single NAND gate and connect its output to the input of another NAND gate, with both inputs of the second NAND gate tied together.
Ques:- Explain the working of a binary counter.
Right Answer:
A binary counter is a digital circuit that counts in binary numbers. It consists of flip-flops, typically D or T flip-flops, arranged in a series. Each flip-flop represents a bit of the binary number. When a clock pulse is applied, the least significant bit (LSB) toggles from 0 to 1 or from 1 to 0. When it overflows (from 1 to 0), it triggers the next flip-flop to toggle, effectively counting in binary. This continues through all the flip-flops, allowing the counter to count up in binary from 0 to its maximum value (2^n - 1, where n is the number of flip-flops).
Ques:- Explain RC circuit?s charging and discharging.
Right Answer:
An RC circuit consists of a resistor (R) and a capacitor (C) connected in series.

**Charging:** When a voltage source is connected, the capacitor charges through the resistor. The voltage across the capacitor (Vc) increases exponentially and can be described by the equation Vc(t) = V(1 - e^(-t/RC)), where V is the source voltage, t is time, R is resistance, and C is capacitance. The time constant τ = RC determines how quickly the capacitor charges; after about 5τ, the capacitor is considered fully charged.

**Discharging:** When the voltage source is removed, the capacitor discharges through the resistor. The voltage across the capacitor decreases exponentially, described by Vc(t) = V0 * e^(-t/RC), where V0 is the initial voltage across the capacitor. Again, the time constant τ = RC dictates the discharge rate; after about 5τ, the capacitor is nearly fully discharged.
Ques:- Give a circuit to divide frequency of clock cycle by two?
Right Answer:
A simple circuit to divide the frequency of a clock cycle by two is a D flip-flop. Connect the clock signal to the clock input of the D flip-flop, and connect the Q output back to the D input. The output Q will produce a clock signal that is half the frequency of the input clock.
Ques:- How do you detect if two 8-bit signals are same?
Right Answer:
You can detect if two 8-bit signals are the same by using an XOR gate. If the result of the XOR operation between the two signals is 0, then the signals are the same; if the result is 1, they are different.
Ques:- Draw a Transmission Gate-based D-Latch?
Right Answer:
A Transmission Gate-based D-Latch can be represented as follows:

```
D ----|>o----|>o---- Q
| |
| |
CLK ---| |--- CLK
| |
D ----|>o----|>o---- Q'
```

In this diagram:
- The D input is connected to the gates of two transmission gates.
- The CLK signal controls the transmission gates.
- Q is the output that holds the value of D when CLK is high.
- Q' is the complementary output.
Ques:- Describe how you would reverse a singly linked list.
Right Answer:
To reverse a singly linked list, follow these steps:

1. Initialize three pointers: `prev` as `null`, `current` as the head of the list, and `next` as `null`.
2. Iterate through the list:
- Set `next` to `current.next`.
- Change `current.next` to `prev`.
- Move `prev` to `current`.
- Move `current` to `next`.
3. Once the loop is complete, set the head of the list to `prev`.

This will reverse the linked list in place.
Ques:- Given a circuit, draw its exact timing response.
Right Answer:
To provide the exact timing response of a circuit, I would need the specific circuit diagram and details about its components (like resistors, capacitors, and their values) and configuration. Please provide that information for an accurate timing response.
Ques:- How to flash dead phone?
Right Answer:
To flash a dead phone, follow these steps:

1. **Download the necessary firmware** for your phone model from a reliable source.
2. **Install the appropriate flashing tool** (like Odin for Samsung, SP Flash Tool for MediaTek, etc.) on your computer.
3. **Put your phone into download/fastboot mode** (usually by pressing specific button combinations while powering on).
4. **Connect the phone to your computer** using a USB cable.
5. **Open the flashing tool** and load the downloaded firmware file.
6. **Start the flashing process** and wait for it to complete.
7. **Disconnect the phone** and restart it.

Make sure to back up any important data before flashing, as this process may erase all data on the device.
Ques:- Why do you want a career change?
Right Answer:
I want a career change to pursue my passion for hardware design, where I can apply my skills and creativity to develop innovative solutions and contribute to exciting projects in technology.
Ques:- What is the difference between SYNONYM and ALIAS?
Right Answer:
A SYNONYM is a database object that serves as an alternative name for another database object, allowing users to access it without needing to specify its schema. An ALIAS, on the other hand, is a temporary name given to a table or column for the duration of a query, primarily for readability or convenience in SQL statements.
Ques:- What is the meaning of cascading in CSS?
Right Answer:
Cascading in CSS refers to the way styles are applied to HTML elements based on their specificity and the order in which they are defined, allowing multiple styles to be combined and prioritized.


AmbitionBox Logo

What makes Takluu valuable for interview preparation?

1 Lakh+
Companies
6 Lakh+
Interview Questions
50K+
Job Profiles
20K+
Users