See Last Minute Notes on all subjects here.

We will discuss the important key points useful for GATE exams in summarized form. For details you may refer this.

**Note:**NAND and NOR gates are called UNIVERSAL GATES because all other gates can be constructed from any of them.

**K-map example of 3 variables: **: F(A,B,C)=π(0,3,6,7)

From **red** group we find terms

A B C’

Taking complement of these two

A’ B’ C

Now sum up them

**(A’ + B’ + C)**

From **green** group we find terms

B C

Taking complement of these two terms

B’ C’

Now sum up them

**(B’+C’)**

From **brown** group we find terms

A’ B’ C’

Taking complement of these two

A B C

Now sum up them

**(A + B + C)**

We will take product of these three terms :Final expression **(A’ + B’ + C) (B’ + C’) (A + B + C)**

**Number of NAND or NOR gate required to implement other GATE**:

**Combinational circuits: **In combinational circuits, output depends on present input only; it does not require any feedback and memory.

**Multiplexer** : It selects the input from one of many input lines and sends it single output line. The input line chosen from output is based upon set of selection lines.For 2^{n} input lines, there will be n select lines and 1 output lines.

**Note: ** No. of mux required to implement n x 1 mux using m x 1 mux is ceil(n-1 / m-1)A⊕B.

No. of mux required to implement 16 x 1 mux using 4 x 1 mux is ceil(15/3)=5.

**Demultiplexer: ** It selects the input from one input line and sends it to one out of many output lines. The output line chosen is based upon set of selection lines. For 1 input lines, there will be n select lines and 2^{n} output lines.

**Note: ** No. of mux required to implement 1 x n mux using 1 x m mux is ceil(n-1 / m-1)A⊕B.

No. of mux required to implement 1 x 16 mux using 1 x 4 mux is ceil(15/3)=5.

**Encoder**: For 2^{n} input lines, it has n output. It can be used to convert octal or hexadecimal to binary data.

**Decoder**: For n input lines, it has either 2^{n} outputs or less then that. It can be used to convert binary data to other codes like octal or hexadecimal.

**Code Converter: **Code converters are used to convert one type of code to others.

**BCD to Excess-3**: It will add 0011(value 3) to binary code.

**Function:**

4 bit Input(ABCD) with A as MSB and 4 bit output(WXYZ) with W as MSB, O/P is

Z=D’

Y=CD + C’D’

X=B’D + B’C + BC’D’

W=A + BC + BD**Binary to Gray Converter**

**Function:**

4 bit Input(B_{3}B_{2}B_{1}B_{0}) with B_{3}as MSB and 4 bit output(G_{3}G_{2}G_{1}G_{0}) with G_{3}as MSB, O/P is

G_{3}=B_{3}

G_{2}=B_{3}⊕ B_{2}

G_{1}=B_{2}⊕ B_{1}

G_{0}=B_{1}⊕ B_{0}**Gray to Binary Converter**

**Function:**

4 bit Input(G_{3}G_{2}G_{1}G_{0}) with G_{3}as MSB and 4 bit output(B_{3}B_{2}B_{1}B_{0}) with B_{3}as MSB, O/P is

B_{3}=G_{3}

B_{2}=B_{3}⊕G_{2}

B_{1}=B_{2}⊕G_{1}

B_{0}=B_{1}⊕G_{0}

**Flip-Flops**: Flip-Flop are sequential circuits where O/P depends on present input as well as previous output.

**S-R Flip-Flops: **

**Characteristics equation: Q _{n} = S + R̄ Q_{n} **

**J-K Flip-Flops: **

**Characteristics equation: Q _{n} = J Q̄_{n} + R̄ Q_{n} **

**D Flip-Flops: **

**Characteristics equation: Q _{n+1} = D **

**T Flip-Flops: **

**Characteristics equation: Q _{n+1} = T Q̄_{n} + T̄ Q_{n} **

**Counters** is a device which stores (and sometimes displays) the number of times a particular event or process has occurred, often in relationship to a clock signal.

**Counters are basically divided into two types:**

**Asynchronous counter: **In asynchronous counter we don’t use universal clock, only first flip flop is driven by main clock and the clock input of rest of the following counters is driven by output of previous flip flops.

**Synchronous counter: **Unlike the asynchronous counter, synchronous counter has one global clock which drives each flip flop so output changes in parallel. The one advantage of synchronous counter over asynchronous counter is, it can operate on higher frequency than asynchronous counter as it does not have cumulative delay because of same clock is given to each flip flop.

**Important point: **Number of flip flops used in counter are always greater than equal to (log_{2} n) where n=number of states in counter.

This article has been contributed by Sonal Tuteja.

Please write comments if you find anything incorrect, or you want to share more information about the topic discussed above

Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the **DSA Self Paced Course** at a student-friendly price and become industry ready.

## Recommended Posts:

- Half Subtractor in Digital Logic
- Digital Electronics and Computer Organisation
- Half Adder in Digital Logic
- Counters in Digital Logic
- Synchronous Sequential Circuits in Digital Logic
- Multiplexers in Digital Logic
- Full Adder in Digital Logic
- Full Subtractor in Digital Logic
- Binary Decoder in Digital Logic
- Encoder in Digital Logic
- Functional Completeness in Digital Logic
- Ripple Counter in Digital Logic
- BCD Adder in Digital Logic
- Magnitude Comparator in Digital Logic
- Shift Registers in Digital Logic
- Analog to Digital Conversion
- Block Coding in Digital Electronics
- What is Scrambling in Digital Electronics ?
- Digital to Analog Conversion
- Consensus Theorem in Digital Logic