Thursday, October 23, 2025

MID-2 IMPORTANT QUESTIONS UNIT-3,4 & 5


UNIT-3

COMBINATIONAL CKTS:

  1. What is encoder? Design octal to binary encoder.
  2. Explain the priority encoder with a neat logic diagram.
  3. Realize a 3 to 8 decoder using 2 to 4 decoder and other required gates.
  4. Design and explain BCD to decimal decoder and draw its logic diagram.
  5. What is decoder? Construct 3*8 decoder using logic gates and truth table.
  6. Design full adder from 3 to 8 decoder.
  7. Explain briefly about seven segment displays.
  8. Implement the following Boolean function with a multiplexer , 
    •  i) F(A,B,C,D) =∑(1,2,5,8,6,10,12,14)                 ii) F(A,B,C,D) =∑(1,2,5,6,12)
  9. Design 8*1 multiplexer using 2*1 multiplexer.
  10. Differentiate Demultiplexer and Decoder.
  11. Explain how a decoder can be converted into a de-multiplexer with relevant block diagrams and truth tables.
  12. Define multiplexer and explain the procedure to implement 32*1 MUX by using 4*1 multiplexers.
  13. Implement 64 × 1 multiplexer with four 16 × 1 and one 4 ×1 multiplexer (use only block diagram).
  14. Design a 1:8 demultiplexer using two 1:4 demultiplexer.
  15. Implement a 64:1 MUX using 16:1 and 4:1 Muxs.
  16. Implement f(A,B,C,D) = ∑(0,1,3,5,6,8,9,11,12,13) using 8:1 MUX and explain its procedure.
  17. Realize the Boolean function F= Σ(1,2,5,7) using (i) 8x1 multiplexer (ii) 4x1 multiplexer
  18. Design 4-bit digital comparator and explain with neat sketch.


PLD's:

  1. Derive the PLA programming table for the combinational circuit that squares a 3 bit number.
  2. Design a BCD to Excess-3 code converter and implement using suitable PLA.
  3. Briefly describe about the programmable logic arrays with suitable diagrams.
  4. Explain the merits & demerits of PROM
  5. Compare PROM, PLA and PAL.
  6. Write a brief note on Architecture of PLDs
  7. Tabulate the PLA programming table for the four Boolean functions listed below  A(x,y,z) = Σ (1, 2, 4, 6),    B(x,y,z) = Σ (0, 1, 6, 7),    C(x,y,z) = Σ (2,6),       D(x,y,z) = Σ (1, 2, 3, 5, 7)
  8. For the given 3-input, 4-output truth table of a combinations circuit, tabulate the PAL programming table for the circuit.

Inputs Output

    x y z     A B C D

0 0 0     0 1 0 0

0 0 1     1 1 1 1

0 1 0     1 0 1 1

0 1 1     0 1 0 1

1 0 0     1 0 1 0

1 0 1     0 0 0 1

1 1 0     1 1 1 0

1 1 1     0 1 1 1 

*******************************************

UNIT-4

FF:

  1. Explain about types of sequential circuits.
  2. Conversion of SR flip-flop to T-flip-flop.
  3. What is race around condition and how to avoid it along with circuit diagram.
  4. What do you mean by triggering? Explain the various triggering modes with examples.
  5. Convert T flip-flop to D flip-flop.
  6. Explain the operation of D-flip flop with the help of truth table.
  7. Explain the Buffer Register and Control Buffer Register.
  8. Explain about master-slave flip-flop in detail.
  9. Draw the logic diagram of a JK flip flop and using excitation table. explain its operation.
  10. Draw the logic diagram of RS flip flop and explain its operation.
  11. Using the method of flip flop conversion carry out the conversion from JK flip flop to D flip flop
  12. Explain about Master-slave flip-flop in detail.
  13. What is flip-flop? How can be used in sequential circuit and explain in detail.
COUNTER:
  1. Draw and explain the logic diagram for a 4-bit binary ripple down counter using positive edge triggered flip-flops.
  2. Design a modulo-12 up synchronous counter using T-flip flops and draw the circuit diagram.
  3. Explain the basic principles of ripple counter.
  4. Design a Mod-6 synchronous counter using J-K flip flops.
  5. Design a 4-bit ripple counter using T-flip-flop. Explain using waveforms.
  6. Design and explain a 4-bit ring counter using D-flip flops with relevant timing diagrams.
  7. Draw the circuit diagram of MOD-10 Counter and explain the operation of it.
  8. Design Mod-10 Counter using T Flip-Flops.
  9. Design a decade counter using RS flip flops.
  10. Draw the circuit diagram of Johnson counter using D-flip-flops and explain its operation with the help of bit pattern.
  11. Design a 4 bit ring counter using D flip-flops and explain its operation with the help of bit pattern.
REGISTERS:
  1. Explain in detail about shift registers.
  2. Explain the Buffer Register and Control Buffer Register.
  3. Draw and explain the working of shift right register.
  4. Draw a 4-bit bi-directional shift register logic diagram and explain its operation.
/////////////////////////////////**************************************/////////////////////////////////////

                                                UNIT-5
  1. Explain the difference among a truth table, a state table, a characteristic table and an excitation table.
  2. Explain the state machine capabilities and limitations in detail.
  3. Explain the analysis of clocked sequential circuits.
  4. Explain state transition function, finite state model, Terminal state and stronglyconnected machine in finite state machine.
  5. Explain about State diagram and State table in sequential circuits.
  6. Explain the following related to sequential circuits with suitable examples.                                          a)State diagram      b)State assignment
  7. Discuss Moore Machine models of sequential circuits.
  8. Distinguish between Meelay & Moore machines
  9. Draw and explain Moore circuit.
  10. Draw the logic diagram of Meelay and Moore models and also explain their operation with examples
  11. Explain the state reduction technique.
  12. Explain the minimization procedure for determining the set of equivalent state of aspecified machine M.
  13. Explain in detail the Mealy state diagram with one example.
  14. Draw the diagram of Mealy type FSM for serial adder.
  15. Design a Moore type sequence detector to detect a serial input sequence of 101.
  16. Draw the state diagrams of a sequence detector which can detect 101.
  17. Draw state diagrams of a sequence detector which can detect 011.
  18. Draw state diagrams of a sequence detector which can detect 010.
  19. Design a sequence detector that detects the overlapping sequence of 011010
  20. Obtain the state table and state diagram for a sequence detector to recognize the occurrence of sequence bits 110 & 001.
  21. Discuss the realization of sequence generator with diagram.
  22. Design the Clocked Sequential Circuit to detect the given sequence with overlapping.
  23. Implement the Sequential Circuit with clock to detect the given sequence without overlapping.
  24. Convert the following Mealy machine into a corresponding Moore machine:
25. Reduce the number of states in the state table, and tabulate the reduced state table and give proper assignment


26.

27.CONVERT MOORE MACHINE TO MEALY MACHINE 






Tuesday, October 21, 2025

PLD's

 COMBINATIONAL PLDs

The PROM is a combinational programmable logic device (PLD). A combinational PLD is an integrated circuit with programmable gates divided into an AND array and an OR array to provide an AND-OR sum of product implementation. There are three major types of combinational PLDs and they differ in the placement of the programmable connections in the AND-OR array. The Figure 3 shows the configuration of three PLDs.
The PROM has a fixed AND array constructed as a decoder and programmable OR array. The programmable OR gates implement the Boolean functions in sum of minterms.
The programmable array logic (PAL) has a programmable AND array and a fixed OR array. The AND gates are programmed to provide the product terms for the Boolean functions which are logically summed in each OR gate. The most flexible PLD is the programmable logic array (PLA) where both AND and OR arrays can be programmed. The product terms in the AND array may be shared by any OR gate to provide the required sum of products implementation.
Fig 3 Basic configuration of three PLDs

Types of ROMs:
 A combinational PLD is an integrated circuit with programmable gates divided into an AND array and an OR array to provide an AND-OR sum of product implementation.
 PROM: fixed AND array constructed as a decoder and programmable OR array.
 PAL: programmable AND array and fixed OR array.
 PLA: both the AND and OR arrays can be programmed.
 The required paths in a ROM may be programmed in four different ways.
5. Mask programming: fabrication process
6. Read-only memory or PROM: blown fuse /fuse intact
7. Erasable PROM or EPROM: placed under a special ultraviolet light for a given period of time will erase the pattern in ROM.
8. Electrically-erasable PROM(EEPROM): erased with an electrical signal instead of ultraviolet light.
Example of ROM :
 Design a combinational circuit using a ROM. The circuit accepts a 3-bit number and generates an output binary number equal to the square of the input number.
Derive truth table first



**************************************************************************

Programmable Logic Array(PLA):
The PLA is similar to PROM in concept except that PLA does not provide full decoding of the variable and does not generate all the minterms . The decoder is replaced by an array of AND gates that can be programmed to generate any product term of the input variables. The product terms are then connected to OR gates to provide the sum of products for the required Boolean functions.
 Fig.7-14, the decoder in PROM is replaced by an array of AND gates that can be programmed to generate any product term of the input variables.
 The product terms are then connected to OR gates to provide the sum of products for the required Boolean functions.
 The output is inverted when the XOR input is connected to 1 (since x⊕1 = x’). The output doesn’t change and connect to 0 (since x⊕0 = x).

 F1 = AB’+AC+A’BC’
 F2 = (AC+BC)’
The diagram uses the array logic graphic symbols for complex circuits. Each input goes through a buffer and an inverter shown in the diagram with a composite graphic symbol which has both the true and complement outputs. Each input and its complement are connected to the inputs of each AND gate as indicated by the intersections between the vertical and horizontal lines. The outputs of the AND gates are connected to the inputs of each OR gate.

 The output of the OR gates goes to an XOR gate where the other input can be programmed to receive a signal equal to either logic 1 or 0. The output is inverted when the XOR input is connected to 1. The output does not change when the XOR input is connected to 0 .

 The product terms generated in each AND gate are listed along the output of the gate in the diagram. The product term is determined from the inputs whose crosspoints are connected and marked with a X . The output of an OR gate gives the logic sum of the selected product terms. The output may be complemented or left in its true form depending on the connection for one of the XOR gate inputs.

 The programming table that specifies the PLA of Fig.4 is listed in Table 2. The PLA programming table consists of three sections .The first section lists the product terms numerically. The second section specifies the required paths between inputs and AND gates. The third section specifies the paths between AND and OR gates.




A T output dictates that the other input of the corresponding XOR gate be connected to 0,and a C specifies a connection to 1.The size of a PLA is specified by the number of inputs ,the number of product terms and the number of outputs. When designing a digital system with a PLA there is no need to show the internal connections of the units. All that is needed is a PLA programming table from which the PLA can be programmed to supply the required logic.
Programming Table:
1. First: lists the product terms numerically
2. Second: specifies the required paths between inputs and AND gates
3. Third: specifies the paths between the AND and OR gates
4. For each output variable, we may have a T(ture) or C(complement) for programming the XOR gate

Simplification of PLA :
 Careful investigation must be undertaken in order to reduce the number of distinct product terms, PLA has a finite number of AND gates.
 Both the true and complement of each function should be simplified to see which one can be expressed with fewer product terms and which one provides product terms that are common to other functions.
Example 7-2:
Implement the following two Boolean functions with a PLA:
F1(A, B, C) = Σ(0, 1, 2, 4)
F2(A, B, C) = Σ(0, 5, 6, 7)
The two functions are simplified in the maps of Fig.7-15



PLA table by simplifying the function:
 Both the true and complement of the functions are simplified in sum of products.
 We can find the same terms from the group terms of the functions of F1, F1’,F2 and F2’ which will make the minimum terms.
F1 = (AB + AC + BC)’
F2 = AB + AC + A’B’C’


PLA implementation:

Note that output F1 is the true output even though a c is marked over it in the table. This is because F1 is generated with an AND-OR circuit and is available at the output of the OR gate. The XOR gate complements the function to produce the true F1 output.
The combinational circuit used in this example is too simple for implementing with a PLA

******************************************************************************
PROGRAMMABLE ARRAY LOGIC (PAL)
The programmable array logic (PAL) is a programmable logic device with a fixed OR array and a programmable AND array. Because only the AND gates are programmable the PAL is easier to program, but is not as flexible as the PLA.
Figure 5 shows the logic configuration of a typical PAL.
It has four inputs and four outputs. Each input has a buffer inverter gate and each output is generated by a fixed OR gate. There are four sections in the unit, each being composed of a three wide AND-OR array.
Each AND gate has 10 programmable input connections. This is shown in the diagram by 10 vertical lines intersecting each horizontal line. The horizontal line symbolizes the multiple input configuration of the AND gate. One of the outputs is connected to a buffer inverter gate and then fed back into two inputs of the AND gates.

 When designing with a PAL, the Boolean functions must be simplified to fit into each section.
 Unlike the PLA, a product term cannot be shared among two or more OR gates. Therefore, each function can be simplified by itself without regard to common product terms.
 The output terminals are sometimes driven by three-state buffers or inverters.

PAL Example : Implement the following Boolean functions using a PAL that has four sections with three product terms each.

w(A, B, C, D) = Σ(2, 12, 13)
x(A, B, C, D) = Σ(7, 8, 9, 10, 11, 12, 13, 14, 15)
y(A, B, C, D) = Σ(0, 2, 3, 4, 5, 6, 7, 8, 10, 11, 15)

z(A, B, C, D) = Σ(1, 2, 8, 12, 13)

Simplifying the four functions as following Boolean functions:

w = ABC’ + A’B’CD’

x = A + BCD

w = A’B + CD + B’D’

w = ABC’ + A’B’CD’ + AC’D’ + A’B’C’D = w + AC’D’ + A’B’C’D 

PAL Table:

 z has four product terms, and we can replace by w with two product terms, this will reduce the number of terms for z from four to three.

 The table is divided into four sections with three product terms. The first two sections need only two product terms to implement the Boolean function. The last section for output z needs four product terms. Using the output from w, we can reduce the function to three terms.

 




Fuse map for example :


For each 1 or 0 in the table, we mark the corresponding intersection in the diagram with the symbol for an intact fuse. For each dash we mark he diagram with blown fuses in both the true and complement inputs. If the AND gate is not used, we leave all its input fuses intact.
Since the corresponding input receives both the true and complement of each input variable we have AA’=O and the output of the AND gate is always O.

********************************************************************************
difference between PROM,PLA &PAL:
Feature PROM (Programmable Read-Only Memory)PAL (Programmable Array Logic)PLA (Programmable Logic Array)
AND ArrayFixed (acts as a decoder)ProgrammableProgrammable
OR ArrayProgrammableFixedProgrammable
FlexibilityLeast flexible; can only implement functions in sum-of-products form with a full decoderMore flexible than PROM; can implement any sum-of-products functionMost flexible; can implement any sum-of-products function
ComplexitySimpleModerately complexMost complex
CostCheapestMore expensive than PROMMost expensive
Use CaseSimple combinational logic, address decodingCombinational logic with up to 8 terms per outputImplementing control units, complex combinational logic

*********************************
Random-Access Memory

 A memory unit stores binary information in groups of bits called words.

1 byte = 8 bits

1 word = 2 bytes

2 The communication between a memory and its environment is achieved through data input and output lines, address selection lines, and control lines that specify the direction of transfer.


Content of a memory:
 Each word in memory is assigned an identification number, called an address, starting from 0 up to 2k-1, where k is the number of address lines.
 The number of words in a memory with one of the letters K=210, M=220, or G=230.
64K = 216 2M = 221
4G = 232
Write and Read operations :
 Transferring a new word to be stored into memory:
1. Apply the binary address of the desired word to the address lines.
2. Apply the data bits that must be stored in memory to the data input lines.
3. Activate the write input.
 Transferring a stored word out of memory:
1. Apply the binary address of the desired word to the address lines.
2. Activate the read input.
 Commercial memory sometimes provide the two control inputs for reading and writing in a somewhat different configuration in table 7-1.



Types of memories:
 In random-access memory, the word locations may be thought of as being separated in space, with each word occupying one particular location.
 In sequential-access memory, the information stored in some medium is not immediately accessible, but is available only certain intervals of time. A magnetic disk or tape unit is of this type.  There are two basic types of RAM :  (i) Dynamic Ram  (ii) Static RAM
 Dynamic RAM : loses its stored information in a very short time (for milli sec.) even when power supply is on. D-RAM’s are cheaper & loweR


READ ONLY MEMORY
A ROM is essentially a memory device in which permanent binary information is stored. The binary information must be specified by the designer and is then embedded in the unit to form the required interconnection pattern. Once the pattern is established it stays within the unit even when power is turned off and on again.
A block diagram of ROM is shown in the Figure 1. It consists of k inputs and n outputs. The inputs provide the address for the memory and the outputs give the data bits of the stored word which is selected by the address. The number of words in a ROM is determined from the fact that k address input lines are needed to specify 2 k words.
ROM does not have data inputs because it does not have a write operation.
Consider for example a 32 x 8 ROM. The unit consists of 32 words of 8 bits each. There are five input lines that form the binary numbers from 0 through 31 for the address. The Figure 2 shows the internal logic construction of the ROM. The five inputs are decoded into 32 distinct outputs by means of a 5 x 32 decoder. Each output of the decoder represents a memory address. The 32 outputs of the decoder are connected to each of the eight OR gates.
The diagram shows the array logic convention used in complex circuits . Each OR gate must be considered as having 32 inputs. Each output of the decoder is connected to one of the inputs of each OR gate. Since each OR gate has 32 input connections and there are 8 OR gates, the ROM contains 32 x 8 = 256 internal connections.
In general, a 2k x n ROM will have an internal k x 2k decoder and n OR gates. Each OR gate has 2k inputs, which are connected to each of the outputs of the decoder.




Every 0 listed in the truth table specifies a no connection and every 1 listed specifies a path that is obtained by a connection. The four 0’s in the word are programmed by blowing the fuse links between output 3 of the decoder and the inputs of the OR gates associated with outputs A6 , A3, A2 and A0. The four 1’s in the word are marked in the diagram with a X to denote a connection in place of a dot used for permanent connection in logic diagrams.
When the input of the ROM is 00011, all the outputs of the decoder are 0 except for output 3, which is at logic 1. The signal equivalent to logic 1 at decoder output 3 propagates through the connections to the OR gate outputs of A7 , A5, A4 and A1.The other four outputs remain at 0. The result is that the stored word 10110010 is applied to the eight data outputs
Types of ROMs
ROM : Read only memory: Its non volatile memory, ie, the information stored in it, is not lost even if the power supply goes off. It’s used for the permanent storage of information. It also posses random access property. Information can not be written into a ROM by the users/programmers. In other words the contents of ROMs are decided by the manufactures. The following types of ROMs an listed below : (i) PROM : It’s programmable ROM. Its contents are decided by the user. The user can store permanent programs, data etc in a PROM. The data is fed into it using a PROM programs. 
(ii) EPROM : An EPROM is an erasable PROM. The stored data in EPROM’s can be erased by exposing it to UV light for about 20 min. It’s not easy to erase it because the EPROM IC has to be removed from the computer and exposed to UV light. The entire data is erased and not selected portions by the user. EPROM’s are cheap and reliable. 
(iii) EEPROM (Electrically Erasable PROM) : The chip can be erased & reprogrammed on the board easily byte by byte. It can be erased with in a few milliseconds. There is a limit on the number of times the EEPROM’s can be reprogrammed, i.e.; usually around 10,000 times.

 A combinational PLD is an integrated circuit with programmable gates divided into an AND array and an OR array to provide an AND-OR sum of product implementation.
 PROM: fixed AND array constructed as a decoder and programmable OR array.
 PAL: programmable AND array and fixed OR array.
 PLA: both the AND and OR arrays can be programmed.
 The required paths in a ROM may be programmed in four different ways.
1. Mask programming: fabrication process
2. Read-only memory or PROM: blown fuse /fuse intact
3. Erasable PROM or EPROM: placed under a special ultraviolet light for a given period of time will erase the pattern in ROM.
4. Electrically-erasable PROM(EEPROM): erased with an electrical signal instead of ultraviolet light.













Saturday, October 18, 2025

Digital electronics interview question

 

1. What are the basic postulates of Boolean Algebra?

The basic postulates are closure, identity, commutativity,

distributivity, complementarity, and associativity over the set {0,1}

with operations AND, OR, and NOT.

2. What is the difference between Boolean Algebra and ordinary

algebra?

Boolean algebra deals with binary variables (0 and 1) and logical

operations, whereas ordinary algebra involves numerical values and

arithmetic operations.

3. State De Morgan’s Theorems.

• (A·B)' = A' + B'

• (A + B)' = A' · B'

4. Why is Boolean simplification important in digital design?

It reduces the number of gates and connections in a circuit, lowering

power consumption, area, and increasing speed.

5. What is a Minterm?

A Minterm is a product (AND) term in which each variable appears

exactly once, either in true or complemented form, representing one

row of a truth table where the output is 1.

6. What is a maxterm?

A maxterm is a sum (OR) term where each variable appears once in

true or complemented form, representing one row of a truth table

where the output is 0.

7. How many Minterms exist for a 4-variable Boolean function?

There are 2⁴ = 16 Minterms.

Digital Electronics Series

Boolean Algebra Interview Questions


8. What is the dual of a Boolean expression?

The dual is formed by replacing AND with OR, OR with AND, 1 with

0, and 0 with 1, without changing variable complements.

9. What is the canonical form of a Boolean function?

It is the standard representation using either a sum of minterms (SOP)

or a product of maxterms (POS).

10. Convert F(A,B,C) = A'B + AC to canonical SOP.

F = A'B(C + C') + AC(B + B') = A'BC + A'BC' + ABC + ACB'

11. What is the complement of the Boolean function F = AB +

A'C?

F' = (AB + A'C)' = (AB)' · (A'C)' = (A' + B') · (A + C')

12. What is the absorption law in Boolean algebra?

A + AB = A and A(A + B) = A

13. Prove A + A'B = A + B using Boolean identities.

A + A'B = (A + B)(A + A') = (A + B)(1) = A + B

14. What is the consensus theorem?

AB + A'C + BC = AB + A'C (BC is redundant)

15. What is a self-dual Boolean function?

A function F is self-dual if F = F^D, where F^D is the dual of F with

complemented variables.

16. Simplify F = A'BC + AB'C + ABC' + ABC.

Factor and combine: F = BC(A' + A) + AB'C + ABC' = BC + AB'C +

ABC'

Further reduction depends on context or the K-map.

17. What is a don't care condition in Boolean functions?

These are input combinations that never occur or are irrelevant; they

can be used flexibly to simplify expressions.

18. How do you represent a Boolean function using a Karnaugh

Map (K-map)?

By placing 1s in the cells corresponding to Minterm indices, grouping

adjacent 1s in powers of 2 to simplify.

19. What is the principle of duality in Boolean algebra?

It states that every algebraic expression remains valid if we

interchange AND ↔ OR and 0 ↔ 1.

20. What is the idempotent law in Boolean algebra?

A + A = A and A · A = A

21. What are the properties of XOR in Boolean algebra?

A ⊕ 0 = A

A ⊕ A = 0

A ⊕ 1 = A'

(X ⊕ Y) ⊕ Z = X ⊕ (Y ⊕ Z)

22. What is the Boolean expression for a 2-to-1 multiplexer?

Y = S'·A + S·B

23. Implement F = A + A'B using only NAND gates.

Use De-Morgan’s law and convert:

F = (A + A'B)

= ((A)' · (A'B)')'

Now implement using NAND logic.

24. What is an essential prime implicant in K-map simplification?

A prime implicant that covers at least one minterm not covered by any

other group.

25. What is the difference between SOP and POS forms?

SOP is a sum of AND terms (Minterms), while POS is a product of

OR terms (Maxterms).

26. How is Boolean algebra applied in hazard elimination?

Simplified and logically equivalent expressions help remove

redundant paths, reducing static or dynamic hazards.

27. How do you implement the function F = A + B'C using only

NOR gates?

Use De Morgan’s law and transform logic using NOR equivalents.

F = A + B'C = ((A') · (B'') · (C'))'

28. Prove A + A'B = A + B using truth table.

Use input combinations:

• A=0, B=0 → A + A'B = 0+1·0 = 0

• A=0, B=1 → 0 + 1·1 = 1

• A=1, B=0 → 1 + 0·0 = 1

• A=1, B=1 → 1 + 0·1 = 1

Same as A+B output.

29. Is Boolean algebra a distributive lattice?

Yes, Boolean algebra is a complemented distributive lattice with

operations AND and OR.

30. How many Boolean functions are there of 3 variables?

For n variables, the number of functions = 2^(2ⁿ)

For 3 variables → 2⁸ = 256 functions


Q1: What is a Digital System?

A1: A digital system is a system that processes discrete or binary signals (0s and 1s)

rather than continuous analog signals.

Q2: What is meant by a Bit?

A2: A bit is the smallest unit of data in a digital system and represents a binary digit,

either 0 or 1.

Q3: Define Radix.

A3: Radix, also known as the base of a number system, refers to the total number of

unique symbols (including zero) used to represent numbers in that system.

For example, the radix of the binary system is 2, as it uses symbols 0 and 1.

Q4: Give an example of a digital system.

A4: A digital computer is a classic and widely used example of a digital system.

Q5: Define Nibble and Byte.

A5:

• A Nibble is a group of 4 bits.

• A Byte is a group of 8 bits.

Q6: What are the different number systems?

A6: The commonly used number systems in digital electronics are:

1. Decimal Number System (Base 10)

2. Binary Number System (Base 2)

3. Octal Number System (Base 8)

4. Hexadecimal Number System (Base 16)

Q7: What is Binary Logic?

A7: Binary logic uses binary variables that take only two values: 0 and 1. It involves

three fundamental logical operations:

• AND

• OR

• NOT

Variables are typically represented by symbols like A, B, C, x, y, z, etc.

Q8: What are the basic digital logic gates?

A8: The three fundamental digital logic gates are:

1. AND Gate

2. OR Gate

3. NOT Gate

Let me know if you want diagram support or want to extend this with universal gates

(NAND, NOR) or truth tables

Ques 9: How to represent a positive and negative sign in computers? Ans

9: Positive and negative sign in computers is represented as follows.

1. Positive (+) sign by 0

2. Negative (-) sign by 1

Ques 10: Define Boolean algebra & Boolean Expression.

Ans10: System of algebra that operates on Boolean variables. The binary nature of Boolean

algebra makes it useful for analysis, simplification and design of logic circuits

Ques 11: What are basic properties of Boolean algebra?

Ans 11: A system of algebra that operates on Boolean variables. The binary nature of

Boolean algebra makes it useful for analysis, simplification and design of logic circuits.

Ques 12: State the commutative property of Boolean algebra?

Ans 12: The commutative property states that the order in which the variables are OR &

makes no difference. The commutative property is

1. A+B=B+A

2. AB = BA

Ques 13: Define Cell.

Ans: 13: The smallest unit of a karnaugh map, corresponding to one rows of a truth table.

The input variables are the cells coordinates and the output variable is the cells contents.

Ques 14: What are the applications of octal number system?

Ans 14: The applications of octal number system are

1. It is used for entering the binary data and displaying certain information’s.

2. It is very important for the efficient use of microprocessors and other digitalcircuits

Ques 15: What is an essential prime implicant?

Ans 15 : The Essential Prime Implicant is a prime implicant in which one or more

mintermsare unique, it contains at least one minterm which is not contained in any other

primeimplicant.


1. Question 1. What Is Difference Between Latch And Flip-flop?

Answer :

The main difference between latch and FF is that latches are level sensitive while FF is edge

sensitive. They both require the use of clock signal and are used in sequential logic. For a

latch, the output tracks the input when the clock signal is high, so as long as the clock is logic

1, the output can change if the input also changes.

FF on the other hand, will store the input only when there is a rising/falling edge of the clock.

Latch is sensitive to glitches on enable pin, whereas flip-flop is immune to glitches. Latches

take fewer gates (also less power) to implement than flip-flops. Latches are faster than flipflops

2. Question 2. Given Only Two Xor Gates One Must Function As Buffer And Another As

Inverter?

Answer :

Tie one of xor gates input to 1 it will act as inverter.

Tie one of xor gates input to 0 it will act as buffer.

3. Question 3. Difference Between Mealy And Moore State Machine?

Answer :

A) Mealy and Moore models are the basic models of state machines. A state machine which

uses only Entry Actions, so that its output depends on the state, is called a Moore model. A

state machine which uses only Input Actions, so that the output depends on the state and also

on inputs, is called a Mealy model. The models selected will influence a design but there are

no general indications as to which model is better. Choice of a model depends on the

application, execution means (for instance, hardware systems are usually best realized as

Moore models) and personal preferences of a designer or programmer

B) Mealy machine has outputs that depend on the state and input (thus, the FSM has the

output written on edges) Moore machine has outputs that depend on state only (thus, the FSM

has the output written in the state itself.

Advantage and Disadvantage

• In Mealy as the output variable is a function both input and state, changes of state of the state

variables will be delayed with respect to changes of signal level in the input variables, there

are possibilities of glitches appearing in the output variables.

•Moore overcomes glitches as output dependent on only states and not the input signal level.

•All of the concepts can be applied to Moore-model state machines because any Moore state

machine can be implemented as a Mealy state machine, although the converse is not true.

•Moore machine: the outputs are properties of states themselves... which means that you get

the output after the machine reaches a particular state, or to get some output your machine has

to be taken to a state which provides you the output. The outputs are held until you go to

some other state Mealy machine:

•Mealy machines give you outputs instantly, that is immediately upon receiving input, but the

output is not held after that clock cycle.

4. Question 4. Difference Between One Hot And Binary Encoding?

Answer :

Common classifications used to describe the state encoding of an FSM are Binary (or highly

encoded) and One hot.

A binary-encoded FSM design only requires as many flip-flops as are needed to uniquely

encode the number of states in the state machine. The actual number of flip-flops required is

equal to the ceiling of the log-base-2 of the number of states in the FSM.A one hot FSM

design requires a flip-flop for each state in the design and only one flip-flop (the flip-flop

representing the current or "hot" state) is set at a time in a one hot FSM design.

For a state machine with 9- 16 states, a binary FSM only requires 4 flip-flops while a one hot

FSM requires a flip-flop for each state in the design FPGA vendors frequently recommend

using a one hot state encoding style because flip-flops are plentiful in an FPGA and the

combinational logic required to implement a one hot FSM design is typically smaller than

most binary encoding styles.

Since FPGA performance is typically related to the combinational logic size of the FPGA

design, one hot FSMs typically run faster than a binary encoded FSM with larger

combinational logic blocks

5. Question 5. How To Achieve 180 Degree Exact Phase Shift?

Answer :

Never tell using inverter

a) DCM an inbuilt resource in most of FPGA can be configured to get 180 degree phase shift.

b) BUFGDS that is differential signaling buffers which are also inbuilt resource of most of

FPGA can be used.

6. Question 6. What Is Significance Of Ras And Cas In Sdram?

Answer :

SDRAM receives its address command in two address words. It uses a multiplex scheme to

save input pins. The first address word is latched into the DRAM chip with the row address

strobe (RAS).

Following the RAS command is the column address strobe (CAS) for latching the second

address word. Shortly after the RAS and CAS strobes, the stored data is valid for reading.

7. Question 7. Tell Some Of Applications Of Buffer?

Answer :

a) They are used to introduce small delays.

b) They are used to eliminate cross talk caused due to inter electrode capacitance due to close

routing.

c) They are used to support high fan-out, e.g.: bufg

8. Question 8. Give Two Ways Of Converting A Two Input Nand Gate To An Inverter?

Answer :

a) Short the 2 inputs of the nand gate and apply the single input to it.

b) Connect the output to one of the input and the other to the input signal.

9. Question 9. Why Is Most Interrupts Active Low?

Answer :

This answers why most signals are active low if you consider the transistor level of a module,

active low means the capacitor in the output terminal gets charged or discharged based on low

to high and high to low transition respectively. When it goes from high to low it depends on

the pull down resistor that pulls it down and it is relatively easy for the output capacitance to

discharge rather than charging. Hence people prefer using active low signals.

10. Question 10. Design A Four-input Nand Gate Using Only Two-input Nand Gates.

Answer :

Basically, you can tie the inputs of a NAND gate together to get an inverter.

11. Question 11. What Will Happen If Contents Of Register Are Shifter Left, Right?

Answer :

It is well known that in left shift all bits will be shifted left and LSB will be appended with 0

and in right shift all bits will be shifted right and MSB will be appended with 0 this is a

straightforward answer What is expected is in a left shift value gets Multiplied by 2

e.g.: consider 0000_1110=14 a left shift will make it 0001_110=28, it the same fashion right

shift will Divide the value by 2.

12. Question 12. Given The Following Fifo And Rules, How Deep Does The Fifo Need To Be

To Prevent Underflow Or Overflow?

Answer :

RULES:

1) frequency(clk_A) = frequency(clk_B) / 4

2) period(en_B) = period(clk_A) * 100

3) duty cycle(en_B) = 25%

Assume clk_B = 100MHz (10ns)

From (1), clk_A = 25MHz (40ns)

From (2), period(en_B) = 40ns * 400 = 4000ns, but we only output for 1000ns,due to (3), so

3000ns of the enable we are doing no output work. Therefore, FIFO size = 3000ns/40ns = 75

entries

13. Question 13. Differences Between D-latch And D Flip-flop?

Answer :

D-latch is level sensitive where as flip-flop is edge sensitive. Flip-flops are made up of

latches.

14. Question 14. What Is A Multiplexer?

Answer :

Is a combinational circuit that selects binary information from one of many input lines and

directs it to a single output line.

(2n =>n). Where n is selection line.

15. Question 15. What Are Set Up Time & Hold Time Constraints? What Do They Signify?

Which One Is Critical For Estimating Maximum Clock Frequency Of A Circuit?

Answer :

Set up time is the amount of time the data should be stable before the application of the clock

signal, where as the hold time is the amount of time the data should be stable after the

application of the clock. Setup time signifies maximum delay constraints; hold time is for

minimum delay constraints. Setup time is critical for establishing the maximum clock

frequency.

16. Question 16. How Can You Convert An Sr Flip-flop To A Jk Flip-flop?

Answer :

By giving the feedback we can convert, i.e. !Q=>S and Q=>R.Hence the S and R inputs will

act as J and K respectively.

17. Question 17. How Can You Convert The Jk Flip-flop To A D Flip-flop?

Answer :

By connecting the J input to the K through the inverter.

18. Question 18. How Do You Detect If Two 8-bit Signals Are Same?

Answer :

XOR each bits of A with B (for e.g. A [0] xor B [0]) and so on. The o/p of 8 xor gates is then

given as i/p to an 8-i/p nor gate.

if o/p is 1 then A=B.

19. Question 19. Convert D-ff Into Divide By 2. (not Latch) What Is The Max Clock

Frequency The Circuit Can Handle, Given The Following Information?

Answer :

T_setup= 6nsT_hold = 2nS T_propagation = 10nS

Circuit: Connect Qbar to D and apply the clk at clk of DFF and take the O/P at Q. It gives

freq/2. Max. Freq of operation: 1/ (propagation delay+setup time) = 1/16ns = 62.5 MHz

20. Question 20. 7 Bit Ring Counter's Initial State Is 0100010. After How Many Clock

Cycles Will It Return To The Initial State?

Answer :

6 cycles

21. Question 21. Design All The Gates (not, And, Or, Nand, Nor, Xor, Xnor) Using 2:1

Multiplexer?

Answer :

Using 2:1 Mux, (2 inputs, 1 output and a select line)

a) NOT :Give the input at the select line and connect I0 to 1 & I1 to 0. So if A is 1, we will

get I1 that is 0 at the O/P.

b) AND: Give input A at the select line and 0 to I0 and B to I1. O/p is A & B

c) OR: Give input A at the select line and 1 to I1 and B to I0. O/p will be A | B

d) NAND: AND + NOT implementations together

e) NOR: OR + NOT implementations together

f) XOR: A at the select line B at I0 and ~B at I1. ~B can be obtained from (a)

g) XNOR: A at the select line B at I1 and ~B at I0

22. Question 22. Design A Circuit That Calculates The Square Of A Number?

Answer :

It should not use any multiplier circuits. It should use Multiplexers and other logic?

1^2=0+1=1

2^2=1+3=4

3^2=4+5=9

4^2=9+7=16

5^2=16+9=25

See a pattern yet? To get the next square, all you have to do is add the next odd number to the

previous square that you found. See how 1,3,5,7 and finally 9 are added. Wouldn’t this be a

possible solution to your question since it only will use a counter, multiplexer and a couple of

adders? It seems it would take n clock cycles to calculate square of n.

23. Question 23. N Number Of Xnor Gates Is Connected In Series Such That The N Inputs

(a0, A1, A2. .... ) Are Given In The Following Way: A0 & A1 To First Xnor Gate And A2

& O/p Of First Xnor To Second Xnor Gate And So On ..... Nth Xnor Gates Output Is

Final Output. How Does This Circuit Work? Explain In Detail?

Answer :

If N=Odd, the circuit acts as even parity detector, i.e. the output will 1 if there are even

number of 1's in the N input...This could also be called as odd parity generator since with this

additional 1 as output the total number of 1's will be ODD. If N=Even, just the opposite, it

will be Odd parity detector or Even Parity Generator.

24. Question 24. What Is Race-around Problem? How Can You Rectify It?

Answer :

The clock pulse that remains in the 1 state while both J and K are equal to 1 will cause the

output to complement again and repeat complementing until the pulse goes back to 0, this is

called the race around problem. To avoid this undesirable operation, the clock pulse must

have a time duration that is shorter than the propagation delay time of the F-F, this is

restrictive so the alternative is master-slave or edge-triggered construction.

25. Question 25. An Assembly Line Has 3 Fail Safe Sensors And One Emergency Shutdown

Switch. The Line Should Keep Moving Unless Any Of The Following Conditions Arise:

Answer :

(i) If the emergency switch is pressed

(ii) If the senor1 and sensor2 are activated at the same time.

(iii) If sensor 2 and sensor3 are activated at the same time.

(iv) If all the sensors are activated at the same time

suppose a combinational circuit for above case is to be implemented only with NAND Gates.

How many minimum number of 2 input NAND gates are required?

No of 2-input NAND Gates required = 6 you can try the whole implementation.

26. Question 26. How Will You Implement A Full Subtractor From A Full Adder?

Answer :

All the bits of subtrahend should be connected to the xor gate. Other input to the xor being

one. The input carry bit to the full adder should be made 1. Then the full adder works like a

full subtract.

27. Question 27. What Is Difference Between Setup And Hold Time. The Interviewer Was

Looking For One Specific Reason, And Its Really A Good Answer Too..the Hint Is Hold

Time Doesn't Depend On Clock, Why Is It So...?

Answer :

Setup violations are related to two edges of clock, i mean you can vary the clock frequency to

correct setup violation. But for hold time, you are only concerned with one edge and do not

basically depend on clock frequency.

28. Question 28. In A 3-bit Johnson's Counter What Are The Unused States?

Answer :

2(power n)-2n is the one used to find the unused states in Johnson counter.

So for a 3-bit counter it is 8-6=2.Unused states=2. the two unused states are 010 and 101.

29. Question 29. What Is Difference Between Ram And Fifo?

Answer :

FIFO does not have address lines

Ram is used for storage purpose where as FIFO is used for synchronization purpose i.e. when

two peripherals are working in different clock domains then we will go for FIFO.

30. Question 30. Consider Two Similar Processors, One With A Clock Skew Of 100ps And

Other With A Clock Skew Of 50ps. Which One Is Likely To Have More Power? Why?

Answer :

Clock skew of 50ps is more likely to have clock power. This is because it is likely that lowskew

processor has better designed clock tree with more powerful and number of buffers and

overheads to make skew better.

31. Question 31. Is It Possible To Reduce Clock Skew To Zero? Explain Your Answer?

Answer :

Even though there are clock layout strategies (H-tree) that can in theory reduce clock skew to

zero by having the same path length from each flip-flop from the pll, process variations in R

and C across the chip will cause clock skew as well as a pure H-Tree scheme is not practical

(consumes too much area).

32. Question 32. The Circle Can Rotate Clockwise And Back. Use Minimum Hardware To

Build A Circuit To Indicate The Direction Of Rotating?

Answer :

2 sensors are required to find out the direction of rotating. They are placed like at the drawing.

One of the m is connected to the data input of D flip-flop, and a second one - to the clock

input. If the circle rotates the way clock sensor sees the light first while D input (second

sensor) is zero - the output of the flip-flop equals zero, and if D input sensor "fires" first - the

output of the flip-flop becomes high.

33. Question 33. You Have Two Counters Counting Upto 16, Built From Negedge Dff , First

Circuit Is Synchronous And Second Is "ripple" (cascading), Which Circuit Has A Less

Propagation Delay? Why?

Answer :

The synchronous counter will have lesser delay as the input to each flop is readily available

before the clock edge. Whereas the cascade counter will take long time as the output of one

flop is used as clock to the other. So the delay will be propagating. For E.g.: 16 state counter

= 4 bit counter = 4 Flip flops Let 10ns be the delay of each flop The worst case delay of ripple

counter = 10 * 4 = 40ns The delay of synchronous counter = 10ns only.(Delay of 1 flop)

34. Question 34. Difference Between Synchronous And Asynchronous Reset?

Answer :

Synchronous reset logic will synthesize to smaller flip-flops, particularly if the reset is gated

with the logic generating the dinput. But in such a case, the combinational logic gate count

grows, so the overall gate count savings may not be that significant. The clock works as a

filter for small reset glitches; however, if these glitches occur near the active clock edge, the

Flip-flop could go metastable. In some designs, the reset must be generated by a set of

internal conditions. A synchronous reset is recommended for these types of designs because it

will filter the logic equation glitches between clocks.

Disadvantages of synchronous reset:

Problem with synchronous resets is that the synthesis tool cannot easily distinguish the reset

signal from any other data signal. Synchronous resets may need a pulse stretcher to guarantee

a reset pulse width wide enough to ensure reset is present during an active edge of the clock.

if you have a gated clock to save power, the clock may be disabled coincident with the

assertion of reset. Only an asynchronous reset will work in this situation, as the reset might be

removed prior to the resumption of the clock. Designs that are pushing the limit for data path

timing, cannot afford to have added gates and additional net delays in the data path due to

logic inserted to handle synchronous resets.

Asynchronous reset:

The biggest problem with asynchronous resets is the reset release, also called reset removal.

Using an asynchronous reset, the designer is guaranteed not to have the reset added to the data

path. Another advantage favoring asynchronous resets is that the circuit can be reset with or

without a clock present.

Disadvantages of asynchronous reset: ensure that the release of the reset can occur within one

clock period. if the release of the reset occurred on or near a clock edge such that the flipflops

went metastable.

35. Question 35. Implement The Following Circuits:

Answer :

(a) 3 input NAND gate using min no of 2 input NAND Gates

(b) 3 input NOR gate using min no of 2 input NOR Gates

(c) 3 input XNOR gate using min no of 2 input XNOR Gates

Assuming 3 inputs A,B,C?

3 input NAND Connect:

a) A and B to the first NAND gate

b) Output of first Nand gate is given to the two inputs of the second NAND gate (this

basically realizes the inverter functionality)4

c) Output of second NAND gate is given to the input of the third NAND gate, whose other

input is C ((A NAND B) NAND (A NAND B)) NAND C Thus, can be implemented using '3'

2-input NAND gates. I guess this is the minimum number of gates that need to be used.



1. Question 1. Explain About Setup Time And Hold Time, What Will Happen If There Is

Setup Time And Hold Tine Violation, How To Overcome This?

Answer :

Set up time is the amount of time before the clock edge that the input signal needs to be stable

to guarantee it is accepted properly on the clock edge.

Hold time is the amount of time after the clock edge that same input signal has to be held

before changing it to make sure it is sensed properly at the clock edge.

Whenever there are setup and hold time violations in any flipflop, it enters a state where its

output is unpredictable: this state is known as metastable state (quasi stable state); at the end

of metastable state, the flipflop settles down to either ‘1’ or ‘0’. This whole process is known

as metastability.

2. Question 2. What Is Skew, What Are Problems Associated With It And How To

Minimize It?

Answer :

In circuit design, clock skew is a phenomenon in synchronous circuits in which the clock

signal (sent from the clock circuit) arrives at different components at different times.

This is typically due to two causes. The first is a material flaw, which causes a signal to travel

faster or slower than expected. The second is distance: if the signal has to travel the entire

length of a circuit, it will likely (depending on the circuit’s size) arrive at different parts of the

circuit at different times. Clock skew can cause harm in two ways. Suppose that a logic path

travels through combinational logic from a source flipflop to a destination flipflop. If the

destination flipflop receives the clock tick later than the source flipflop, and if the logic path

delay is short enough, then the data signal might arrive at the destination flipflop before the

clock tick, destroying there the previous data that should have been clocked through. This is

called a hold violation because the previous data is not held long enough at the destination

flipflop to be properly clocked through. If the destination flipflop receives the clock tick

earlier than the source flipflop, then the data signal has that much less time to reach the

destination flipflop before the next clock tick. If it fails to do so, a setup violation occurs,

socalled because the new data was not set up and stable before the next clock tick arrived. A

hold violation is more serious than a setup violation because it cannot be fixed by increasing

the clock period.

Clock skew, if done right, can also benefit a circuit. It can be intentionally introduced to

decrease the clock period at which the circuit will operate correctly, and/or to increase the

setup or hold safety margins. The optimal set of clock delays is determined by a linear

program, in which a setup and a hold constraint appears for each logic path. In this linear

program, zero clock skew is merely a feasible point.

Clock skew can be minimized by proper routing of clock signal (clock distribution tree) or

putting variable delay buffer so that all clock inputs arrive at the same time.

3. Question 3. What Is Slack?

Answer :

‘Slack’ is the amount of time you have that is measured from when an event ‘actually

happens’ and when it ‘must happen’.. The term ‘actually happens’ can also be taken as being

a predicted time for when the event will ‘actually happen’.

When something ‘must happen’ can also be called a ‘deadline’ so another definition of slack

would be the time from when something ‘actually happens’ (call this Tact) until the deadline

(call this Tdead).

Slack = Tdead – Tact.

Negative slack implies that the ‘actually happen’ time is later than the ‘deadline’ time…in

other words it’s too late and a timing violation….you have a timing problem that needs some

attention.

4. Question 4. What Is Glitch? What Causes It (explain With Waveform)? How To

Overcome It?

Answer :

The following figure shows a synchronous alternative to the gated clock using a data path.

The flipflop is clocked at every clock cycle and the data path is controlled by an enable.

When the enable is Low, the multiplexer feeds the output of the register back on itself. When

the enable is High, new data is fed to the flipflop and the register changes its state.

Digital electronics interview question

https://ecelegend.blogspot.com/2025/10/digital-electronics-interview-question.html

Answer :

o Tie one of xor gates input to 1 it will act as inverter.

o Tie one of xor gates input to 0 it will act as buffer.

6. Question 6. What Is Difference Between Latch And Flipflop?

Answer :

The main difference between latch and FF is that latches are level sensitive while FF are edge

sensitive. They both require the use of clock signal and are used in sequential logic. For a

latch, the output tracks the input when the clock signal is high, so as long as the clock is logic

1, the output can change if the input also changes. FF on the other hand, will store the input

only when there is a rising/falling edge of the clock.

7. Question 7. Difference Between Heap And Stack?

Answer :

The Stack is more or less responsible for keeping track of what’s executing in our code (or

what’s been “called”). The Heap is more or less responsible for keeping track of our objects

(our data, well… most of it – we’ll get to that later.).

Think of the Stack as a series of boxes stacked one on top of the next. We keep track of

what’s going on in our application by stacking another box on top every time we call a

method (called a Frame). We can only use what’s in the top box on the stack. When we’re

done with the top box (the method is done executing) we throw it away and proceed to use the

stuff in the previous box on the top of the stack. The Heap is similar except that its purpose is

to hold information (not keep track of execution most of the time) so anything in our Heap

can be accessed at any time. With the Heap, there are no constraints as to what can be

accessed like in the stack. The Heap is like the heap of clean laundry on our bed that we have

not taken the time to put away yet – we can grab what we need quickly. The Stack is like the

stack of shoe boxes in the closet where we have to take off the top one to get to the one

underneath it.

8. Question 8. Difference Between Mealy And Moore State Machine?

Answer :

o Mealy and Moore models are the basic models of state machines. A state machine

which uses only Entry Actions, so that its output depends on the state, is called a

Moore model. A state machine which uses only Input Actions, so that the output

depends on the state and also on inputs, is called a Mealy model. The models

selected will influence a design but there are no general indications as to which

model is better. Choice of a model depends on the application, execution means

(for instance, hardware systems are usually best realized as Moore models) and

personal preferences of a designer or programmer

o Mealy machine has outputs that depend on the state and input (thus, the FSM has

the output written on edges) Moore machine has outputs that depend on state only

(thus, the FSM has the output written in the state itself.

Adv and Disadv

In Mealy as the output variable is a function both input and state, changes of state of the state

variables will be delayed with respect to changes of signal level in the input variables, there

are possibilities of glitches appearing in the output variables. Moore overcomes glitches as

output dependent on only states and not the input signal level.

All of the concepts can be applied to Mooremodel state machines because any Moore state

machine can be implemented as a Mealy state machine, although the converse is not true.

Moore machine: the outputs are properties of states themselves…

which means that you get the output after the machine reaches a particular state, or to get

some output your machine has to be taken to a state which provides you the output.The

outputs are held until you go to some other state Mealy machine:

Mealy machines give you outputs instantly, that is immediately upon receiving input, but the

output is not held after that clock cycle.

9. Question 9. Difference Between Onehot And Binary Encoding?

Answer :

Common classifications used to describe the state encoding of an FSM are Binary (or highly

encoded) and One hot.

A binaryencoded FSM design only requires as many flipflops as are needed to uniquely

encode the number of states in the state machine. The actual number of flipflops required is

equal to the ceiling of the logbase2 of the number of states in the FSM.

A onehot FSM design requires a flipflop for each state in the design and only one flipflop (the

flipflop representing the current or “hot” state) is set at a time in a one hot FSM design. For a

state machine with 916 states, a binary FSM only requires 4 flipflops while a onehot FSM

requires a flipflop for each state in the design FPGA vendors frequently recommend using a

onehot state encoding style because flipflops are plentiful in an FPGA and the combinational

logic required to implement a onehot FSM design is typically smaller than most binary

encoding styles. Since FPGA performance is typically related to the combinational logic size

of the FPGA design, onehot FSMs typically run faster than a binary encoded FSM with larger

combinational logic blocks

10. Question 10. How To Achieve 180 Degree Exact Phase Shift?

Answer :

Never tell using inverter

a) dcm’s an inbuilt resource in most of fpga can be configured to get 180 degree phase shift.

b) Bufgds that is differential signaling buffers which are also inbuilt resource of most of

FPGA can be used.

11. Question 11. What Is Significance Of Ras And Cas In Sdram?

Answer :

SDRAM receives its address command in two address words.

It uses a multiplex scheme to save input pins. The first address word is latched into the

DRAM chip with the row address strobe (RAS).

Following the RAS command is the column address strobe (CAS) for latching the second

address word.

Shortly after the RAS and CAS strobes, the stored data is valid for reading.

12. Question 12. Tell Some Of Applications Of Buffer?

Answer :

o They are used to introduce small delays

o They are used to eliminate cross talk caused due to inter electrode capacitance due

to close routing.

o They are used to support high fanout,eg:bufg

13. Question 13. Implement An And Gate Using Mux?

Answer :

This is the basic question that many interviewers ask. for and gate, give one input as select

line,incase if u r giving b as select line, connect one input to logic ‘0’ and other input to a.

14. Question 14. What Will Happen If Contents Of Register Are Shifter Left, Right?

Answer :

It is well known that in left shift all bits will be shifted left and LSB will be appended with 0

and in right shift all bits will be shifted right and MSB will be appended with 0 this is a

straightforward answer What is expected is in a left shift value gets Multiplied by 2

eg:consider 0000_1110=14 a left shift will make it 0001_110=28, it the same fashion right

shift will Divide the value by 2.

15. Question 15. What Is A Multiplexer?

Answer :

A multiplexer is a combinational circuit which selects one of many input signals and directs

to the only output.

16. Question 16. What Is A Ring Counter?

Answer :

A ring counter is a type of counter composed of a circular shift register. The output of the last

shift register is fed to the input of the first register. For example, in a 4-register counter, with

initial register values of 1100, the repeating pattern is: 1100, 0110, 0011, 1001, 1100, so on.

17. Question 17. Compare And Contrast Synchronous And Asynchronous Reset?

Answer :

Synchronous reset logic will synthesize to smaller flip-flops, particularly if the reset is gated

with the logic generating the d-input. But in such a case, the combinational logic gate count

grows, so the overall gate count savings may not be that significant. The clock works as a

filter for small reset glitches; however, if these glitches occur near the active clock edge, the

Flip-flop could go metastable. In some designs, the reset must be generated by a set of

internal conditions. A synchronous reset is recommended for these types of designs because it

will filter the logic equation glitches between clock.

Problem with synchronous resets is that the synthesis tool cannot easily distinguish the reset

signal from any other data signal. Synchronous resets may need a pulse stretcher to guarantee

a reset pulse width wide enough to ensure reset is present during an active edge of the clock,

if you have a gated clock to save power, the clock may be disabled coincident with the

assertion of reset. Only an asynchronous reset will work in this situation, as the reset might be

removed prior to the resumption of the clock. Designs that are pushing the limit for data path

timing, can not afford to have added gates and additional net delays in the data path due to

logic inserted to handle synchronous resets.

Asynchronous reset: The major problem with asynchronous resets is the reset release, also

called reset removal. Using an asynchronous reset, the designer is guaranteed not to have the

reset added to the data path. Another advantage favoring asynchronous resets is that the

circuit can be reset with or without a clock present. Ensure that the release of the reset can

occur within one clock period else if the release of the reset occurred on or near a clock edge

then flip-flops may go into metastable state.

18. Question 18. What Is A Johnson Counter?

Answer :

Johnson counter connects the complement of the output of the last shift register to its input

and circulates a stream of ones followed by zeros around the ring. For example, in a 4-register

counter, the repeating pattern is: 0000, 1000, 1100, 1110, 1111, 0111, 0011, 0001, so on.

19. Question 19. What Are The Differences Between A Flip-flop And A Latch?

Answer :

o Flip-flops are edge-sensitive devices where as latches are level sensitive devices.

o Flip-flops are immune to glitches where are latches are sensitive to glitches.

o Latches require less number of gates (and hence less power) than flip-flops.

o Latches are faster than flip-flops.

20. Question 20. What Is The Difference Between Mealy And Moore Fsm?

Answer :

Mealy FSM uses only input actions, i.e. output depends on input and state. The use of a

Mealy FSM leads often to a reduction of the number of states.

Moore FSM uses only entry actions, i.e. output depends only on the state. The advantage of

the Moore model is a simplification of the behavior.

21. Question 21. What Are Various Types Of State Encoding Techniques? Explain Them?

Answer :

One-Hot encoding: Each state is represented by a bit flip-flop). If there are four states then it

requires four bits (four flip-flops) to represent the current state. The valid state values are

1000, 0100, 0010, and 0001. If the value is 0100, then it means second state is the current

state.

One-Cold encoding: Same as one-hot encoding except that '0' is the valid value. If there are

four states then it requires four bits (four flip-flops) to represent the current state. The valid

state values are 0111, 1011, 1101, and 1110.

Binary encoding: Each state is represented by a binary code. A FSM having '2 power N'

states requires only N flip-flops.

Gray encoding: Each state is represented by a Gray code. A FSM having '2 power N' states

requires only N flip-flops.

22. Question 22. Define Clock Skew , Negative Clock Skew, Positive Clock Skew?

Answer :

Clock skew is a phenomenon in synchronous circuits in which the clock signal (sent from the

clock circuit) arrives at different components at different times. This can be caused by many

different things, such as wire-interconnect length, temperature variations, variation in

intermediate devices, capacitive coupling, material imperfections, and differences in input

capacitance on the clock inputs of devices using the clock.

There are two types of clock skew: negative skew and positive skew. Positive skew occurs

when the clock reaches the receiving register later than it reaches the register sending data to

the receiving register. Negative skew is the opposite: the receiving register gets the clock

earlier than the sending register.

23. Question 23. Define Metastability?

Answer :

If there are setup and hold time violations in any sequential circuit, it enters a state where its

output is unpredictable, this state is known as metastable state or quasi stable state, at the end

of metastable state, the flip-flop settles down to either logic high or logic low. This whole

process is known as metastability.

24. Question 24. What Are Set Up Time And Hold Time Constraints?

Answer :

Set up time is the amount of time before the clock edge that the input signal needs to be stable

to guarantee it is accepted properly on the clock edge.

Hold time is the amount of time after the clock edge that same input signal has to be held

before changing it to make sure it is sensed properly at the clock edge.

Whenever there are setup and hold time violations in any flip-flop, it enters a state where its

output is unpredictable, which is known as as metastable state or quasi stable state. At the end

of metastable state, the flip-flop settles down to either logic high or logic low. This whole

process is known as metastability.

25. Question 25. Expand The Following: Pla, Pal, Cpld, Fpga?

Answer :

PLA - Programmable Logic Array

PAL - Programmable Array Logic

CPLD - Complex Programmable Logic Device

FPGA - Field-Programmable Gate Array

26. Question 26. What Are Pla And Pal? Give The Differences Between Them?

Answer :

Programmable Logic Array is a programmable device used to implement combinational logic

circuits. The PLA has a set of programmable AND planes, which link to a set of

programmable OR planes, which can then be conditionally complemented to produce an

output.

PAL is programmable array logic, like PLA, it also has a wide, programmable AND plane.

Unlike a PLA, the OR plane is fixed, limiting the number of terms that can be ORed together.

Due to fixed OR plane PAL allows extra space, which is used for other basic logic devices,

such as multiplexers, exclusive-ORs, and latches. Most importantly, clocked elements,

typically flip-flops, could be included in PALs. PALs are also extremely fast.

27. Question 27. What Is Lut?

Answer :

LUT - Look-Up Table. An n-bit look-up table can be implemented with a multiplexer whose

select lines are the inputs of the LUT and whose inputs are constants. An n-bit LUT can

encode any n-input Boolean function by modeling such functions as truth tables. This is an

efficient way of encoding Boolean logic functions, and LUTs with 4-6 bits of input are in fact

the key component of modern FPGAs.

28. Question 28. What Is The Significance Of Fpgas In Modern Day Electronics?

(applications Of Fpga.)

Answer :

o ASIC prototyping: Due to high cost of ASIC chips, the logic of the application is

first verified by dumping HDL code in a FPGA. This helps for faster and cheaper

testing. Once the logic is verified then they are made into ASICs.

o Very useful in applications that can make use of the massive parallelism offered by

their architecture. Example: code breaking, in particular brute-force attack, of

cryptographic algorithms.

o FPGAs are sued for computational kernels such as FFT or Convolution instead of a

microprocessor.

o Applications include digital signal processing, software-defined radio, aerospace

and defense systems, medical imaging, computer vision, speech recognition,

cryptography, bio-informatics, computer hardware emulation and a growing range

of other areas.

29. Question 29. Arrange The Following In The Increasing Order Of Their Complexity:

Fpga,pla,cpld,pal?

Answer :

Increasing order of complexity: PLA, PAL, CPLD, FPGA.


try this

1. What is meant by D-FF?

2. What is the basic difference between Latches and Flip flops?

3. What is a multiplexer?

4. How can you convert an SR Flip-flop to a JK Flip-flop?

5. How can you convert a JK Flip-flop to a D Flip-flop?

6. What is Race-around problem? How can you rectify it?

7. Which semiconductor device is used as a voltage regulator and why?

8. What do you mean by an ideal voltage source?

9. What do you mean by zener breakdown and avalanche breakdown?

10. What are the different types of filters?



Question1. What is difference between latch and flip-flop?

Answer: The main difference between latch and FF is that latches are level sensitive while

FF is edge sensitive. They both require the use of clock signal and are used in sequential

logic. For a latch, the output tracks the input when the clock signal is high, so as long as the

clock is logic 1, the output can change if the input also changes.

FF on the other hand, will store the input only when there is a rising/falling edge of the

clock. Latch is sensitive to glitches on enable pin, whereas flip-flop is immune to glitches.

Latches take fewer gates (also less power) to implement than flip-flops. Latches are faster

than flip-flops.

Question2. Given only two xor gates one must function as buffer and another as

inverter?

Answer: Tie one of xor gates input to 1 it will act as inverter. Tie one of xor gates input to 0 it

will act as buffer.

Question3. How to achieve 180 degree exact phase shift?

Answer:

1. a) DCM an inbuilt resource in most of FPGA can be configured to get 180 degree phase

shift.

2. b) BUFGDS that is differential signaling buffers which are also inbuilt resource of most of

FPGA can be used. Digital Electronics Solved Questions

Question4. What is Electronic?

Answer: The study and use of electrical devices that operate by controlling the flow of

electrons or other electrically charged particles.

Question5. What is communication?

Answer: Communication means transferring a signal from the transmitter which passes

through a medium then the output is obtained at the receiver. (or)communication says as

transferring of message from one place to another place called communication.

Question6. What is sampling?

Answer: The process of obtaining a set of samples from a continuous function of time x(t) is

referred to as sampling.

Question7. State sampling theorem.

Answer: It states that, while taking the samples of a continuous signal, it has to be taken

care that the sampling rate is equal to or greater than twice the cut off frequency and the

minimum sampling rate is known as the Nyquist rate.

Question8. What is cut-off frequency?

Answer: The frequency at which the response is -3dB with respect to the maximum

response.

Question9. What is pass band?

Answer: Passband is the range of frequencies or wavelengths that can pass through a filter

without being attenuated.

Question10. What is stop band?

Answer: A stopband is a band of frequencies, between specified limits, in which a circuit,

such as a filter or telephone circuit, does not let signals through, or the attenuation is above

the required stopband attenuation level

MID-2 IMPORTANT QUESTIONS UNIT-3,4 & 5

UNIT-3 COMBINATIONAL CKTS: What is encoder? Design octal to binary encoder. Explain the priority encoder with a neat logic diagram. Realize ...