Digital Short Notes
Digital Short Notes
Follow me @uncademy/bvreddy
for the full length course
93980 21419
A∗ 𝑨 = 𝑨 Distribution Law
A+A=A D- Morgan’s Law Transposition theorem ( T- 1)
(Mingle wala) ഥ+𝑩 ഥ
𝑨𝑩 = 𝑨 (A+B)(A+C)= A+BC
ഥ=0
A∗ 𝑨 A(B+C)=AB+AC ഥ𝑩
ഥ
ഥ= 1
A+𝑨 𝑨+𝑩=𝑨
A+BC= (A+B)(A+C)
BVREDDY
BVREDDY
NAND GATE NOR- GATE
𝒀 = 𝑨𝑩 𝒀=𝑨+𝑩
• Output is ‘1’ if any one input is ‘0’ • Output is ‘0’ if any one of the input is ‘1’
• 𝒀 = 𝑨𝑩 = ∑ 𝟎, 𝟏, 𝟐 = ∏(𝟑) • 𝒀 = 𝑨 + 𝑩 =∑ 𝟎 = ∏(𝟏, 𝟐, 𝟑)
• Enable input --1 • Enable input --0
• Disable input– 0 BVREDDY • Disable input– 1
• Commutative law ---> Obeys • Commutative law ---> Obeys
• Associative law ----> not Obeys • Associative law ----> not Obeys
A 𝐀𝐁 A 𝐀+𝐁
A A+ B A A.B
B B 𝐀𝐁 B B
A+ B BVREDDY
RS
RS
A B A B
A B VS A
VS
B Y=𝑨 + 𝑩
Y =𝐀𝐁
A A
A
AB
B A+B
B B
BVREDDY BVREDDY
EX-OR GATE BVREDDY A
A A B
ҧ =A+B
➢ A ⊕ 𝐴B
➢ AB ⊕ BC = B(A ⊕ C) Y = A⊕B
A
B
Use the Code: BVREDDY, to get
maximum discount , BVREDDY
complete notes ,DDPs and Short Notes
A A A B
EX-NOR GATE BVREDDY
Y = A⊙B
➢ Output is ‘1’ for even number of ‘1’s in the input VS
A B Y = A⊙B
➢ Y = A ⊙ B = ∑ 0,3 = Π(1,2) VS
B B
➢ Commutative law ⟹ Obeys
➢ Associative law ⟹ Obeys
➢ A⊙0=A
➢ A⊙1=A BVREDDY
➢ A⊙A=1 A Y = A⊙B
A
Y = A⊙B
➢ A⊙A=0 B B
A , n is odd
➢ A ⊙ A ⊙ A ⊙………...n times = ቊ
1, n is even
➢ A⊙B=A⊕B
➢ A⊕B=A⊙B BVREDDY
EX-OR GATE EX-NOR GATE
➢ A⊕B=A⊙B
➢ A⊕B =A⊕B A B Output is ‘1’ for odd Output is ‘1’ for even
➢ A ⊙ B ⊙ C= ∑ 0,3,5,6 number of ‘1’s in the input number of ‘1’s in the input
➢ A ⊕ B ⊕ C = ∑ 1,2,4,7
➢ (A ⊙ B) ⊙ C= ∑ 1,2,4,7
➢ (A ⊙ C) ⊙ B= ∑ 1,2,4,7 Odd number of 1’s Even number of 1’s
➢ A ⊕ B ⊕ C = A ⊙ B ⊙ C = (A ⊙ C) ⊙ B detector detector
➢ A⊙B= A⊕B= A⊕B=A⊙B Inequality detector Equality detector
BVREDDY
➢ A⊕B=A⊙B=A⊙B=A⊕B
Anti-coincident gate Coincident gate
➢ A ⊕ B ⊕ C = A⊙ B ⊙ C = [A ⊕ B] ⊙ C = A ⊙ [B ⊕ C]
➢ For a n- variable Boolean expression , the maximum number of literals = n
No. of NAND No . of NOR
GATES GATES ➢ For a n- variable K- Map if group is done by considering 2m number of cells , then the
resulting term from that group contains ( n- m ) number of literals .
NOT 1 1
➢ 8 𝑐𝑒𝑙𝑙𝑠 − 23 cells → Octet --> 3 variables eliminated
AND 2 3 ➢ 4 𝑐𝑒𝑙𝑙𝑠 − 22 cells → Quad ---> 2 variables eliminated
OR 3 2 ➢ 2 𝑐𝑒𝑙𝑙𝑠 − 21 cells → Pair ---> 1 variables eliminated
EX-OR 4 5
➢ Minimal expression may not be unique .
EX-NOR 5 4
➢ The minimal expression = ( All EPI’s ) + ( Optional PI’s ) Use the Code :
NAND 1 4 ➢ If all PI’s are EPI’s , then the minimal expression is unique BVREDDY
NOR 4 1 ➢ The sufficient condition for a K-map to have unique solution is
number of PI’s = number of EPI’s
K- Map Minterm mode Maxterm mode
CD
Implicant : Each minterm in canonical SOP expression is known as AB CD CD CD CD CD
C+D C+D C+D C+D
AB
Implicant . AB ABCD A BC D A BC D A BC D
A+B +C+D A+B +C+D
0 1 3 2 A+B A+B +C+D A+B +C+D
Prime Implicant is a product term , obtained by combining maximum 0 1 3 2
ABCD ABCD ABCD ABCD
possible cells in the K- Map. While doing so make sure that a smaller AB A+B +C+D A+B +C+D A+B +C+D A+B +C+D
4 5 7 6 A+B
group is not completely inside a bigger group . 4 5 7 6
ABCD ABCD ABCD ABCD
Essential Prime Implicant : A prime Implicant is an EPI , if and only if it AB
12 13 15 14 A+B
A+B +C+D A+B +C+D A+B +C+D A+B +C+D
contains at least one minterm which is not covered by multiple groups 12 13 15 14
ABCD ABCD ABCD ABCD
All EPI’s are PI’s , but vice versa not true AB
8 9 11 10 A+B
A+B +C+D A+B +C+D A+B +C+D A+B +C+D
8 9 11 10
EPI ≤ PI
Worst case delay for Sum = Max( xor ,and)+ (𝑡𝑝𝑑 )𝑎𝑛𝑑 + (𝑡𝑝𝑑 )𝑜𝑟 + (𝑡𝑝𝑑 )𝑥𝑜𝑟 BVREDDY
Multiplexer (MUX) Demultiplexer Decoder Decoder is a special case of
➢ Data selector BVREDDY ➢ One input to many output Decoder is a multi input ,multi Demultiplexer , in which the
➢ Many to one ➢ Data distributor output logic circuit which coverts select lines or Demultiplexer
➢ Universal logic gate
➢ One to many circuit coded input into coded output , are treated as input's to the
➢ Parallel to serial converter
𝟐𝒏 × 1 1 × 2𝑛 where the input and output codes decoder and input of
2𝑛 ----------> number of data inputs n---------> number of select lines are different Demultiplexer is treated as
n -----------> number of select inputs 2𝑛 --------> number of output lines n × 𝟐𝒏 Enable input of the Decoder
1 ------------> number of outputs 1 ----------> number of inputs n -------------> number of inputs Inputs Enable
𝒏
BVREDDY 𝟐 -------------> number of outputs Select lines Inputs
Logic Gate Number of Encoder
MUX All 2 variable functions
Encoder is a combinational circuit , which is 1. By using one 4 × 1 Mux
required used to convert Some but not All 3 variable functions
BVREDDY
BUFFER 1 1. Octal to binary ( 8 × 3 encoder ) All 2 variable functions
NOT 1 2. Decimal to Binary ( 10× 4 encoder ) 2. By using one 4 × 1 Mux + NOT
3. Hexadecimal to Binary ( 16 × 4 encoder ) Gate All 3 variable functions
AND 1
2𝑛 𝑋 𝑛 All 3 variable functions
OR 1 n -------------> number of outputs 3. By using one 8 × 1 Mux
2𝑛 -------------> number of inputs Some but not All 4 variable
NAND 2
➢ For an Encoder at a time only one among functions
NOR 2 the all inputs is high , reaming all inputs All 3 variable functions
should be zero 4. By using one 8 × 1 Mux +
EX-OR 2 All 4 variable functions
➢ If multiple inputs are simultaneously NOT Gate
EX-NOR 2 high, then the output is not valid, to avoid One 𝟐𝒏 × 1 MUX
HA 3 this restriction we will go for priority 5. n- variable function
encoder.
HS 2 One 𝟐𝒏−𝟏 × 1 MUX + one NOT Gate
BVREDDY
Sequential Circuits For SR NAND latch , if the input sequence is BVREDDY
00 ---------> 11 , then the following cases arises
The logic circuit whose outputs at any instant of time
➢ If the delay of both gates are same then we don’t have any stable output
depends on the present inputs as well as on the past outputs , the output is oscillatory , this condition is known as critical race
are called sequential circuits, in sequential circuits ,the output ➢ However if the delay of both gates are not equal then there exist a
signals are fed back to the input side . BVREDDY
stable output , but it depends on the individual delay of the gates
➢ Out put of combinational circuit depends on input combinations .
For SR NOR latch , if the input sequence is
➢ Output of sequential circuits depends on input sequence.
11 ---------> 00 , then the following cases arises
➢ For unequal delay of gates also the operation is valid
➢ If the delay of both gates are same then we don’t have any stable output
NAND LATCH
A NOR LATCH , the output is oscillatory , this condition is known as critical race .
x X ➢ However if the delay of both gates are not equal then there exist a
A
stable output , but it depends on the individual delay of the gates .
B y Y
B FLIP FLOP
In a latch the output changes immediately in response to external input , so
A B X Y A B X Y to have an additional control , we are introducing a signal called “ CLOCK
0 0 1 1 “ , whose purpose is same as Enable pin of Decoder.
0 0 1 1
Latch +Clock = Flip Flop
0 1 0 1 0 1 1 0 Latches are universally not unique and hence their truth tables are not
1 0 1 0 1 0 0 1 unique .
Flip Flops are universally unique , and their truth tables are unique .
1 1 Memory 1 1 Memory
BVREDDY
1 0 0 0 0 1 0 0 0 0
BVREDDY
1 0 0 1 1 1 0 0 1 1
BVREDDY
CLK J K Q+ State 1 0 1 0 0
1 0 1 0 0
CLK S R Q+ State 0 × × Q 1 0 1 1 0
Memory
1 0 1 1 0
0 × × Q
Memory 1 0 0 Q 1 1 0 0 1
1 1 0 0 1 Memory
1 0 0 Q 1 0 1 0 1 1 0 1 1
Memory Reset
1 1 0 1 1
1 0 1 0 1 1 0 1 1 1 1 0 1
Reset Set
1 1 1 0 ×
1 1 0 1 1 1 1 ഥ
𝑸 1 1 1 1 0
Set Toggle
1 1 1 1 ×
1 1 1 ×
Invalid
Q Q+ J K BVREDDY
Q Q+ S R S=0 R=X J=0K=0 J=X K=0
S=X R=0 0 0 0 X J=1 K=X
S=1 R=0
0 0 0 X
0 1 1 X
Q=0 Q=1
0 1 1 0 Q=0 Q=1
1 0 X 1
1 0 0 1 J=X K=1
1 1 X 0 S=0 R=1 1 1 X 0
D Flip Flop T Flip Flop
D J Q
CLK D Q Q+ D J Q CLK T Q Q+
JK
Flip Flop 0 X Q Q CLK
JK 0 X Q Q
Flip Flop
K Q
1 0 0 0 K Q 1 0 0 0
BVREDDY
Q+ = D Q+ = T ⊕ Q
1 0 1 0 1 0 1 1
CLK D Q+ 1 1 0 1 CLK T Q+ 1 1 0 1
0 X Hold 0 X Hold
1 0 0 1 1 1 1 1 0 Q
1 1 1 0
1 1 1 1 1 Toggle
BVREDDY
D=0
Q Q+ D Q Q+ T T=0 T=0
D=1 T=1
D=1
0 0 0 0 0 0
Q=0 Q=1 Q=0 Q=1
0 1 1 D=0 0 1 1
T=1
1 0 0 1 0 1
BVREDDY
Use the Code :
1 1 1 1 1 0
BVREDDY
Race Around Condition BVREDDY
Master – Slave Flip Flop BVREDDY
The output of the FF changes to 0 →1 →0 …. Continuously
at the starting of the next clock the output is uncertain , which
JM = 1 S QM JS QS
is called as Race Around Condition (RAC )
M S
RAC occurs in any FF if the following conditions satisfies KM = 1 R QM KS QS
1. If the FFs are operated in level triggering
2. if (tpd ) < (Tclk )on ,
3. If the FFs are operated in Toggle mode CLK
If the above 3 conditions satisfies simultaneously then there is 1. In case of Master Slave configuration , Master is applied with input clock and
a continuous race in the output of the FF between 0 and 1 to Slave is applied with inverted clock , so out of two FFs at a time only one of
reach the next state , who will be the winner of the race in not the FF respond and other will not respond . As a result, Many times toggling in
certain , that depends on tpd and ( Tclk ) on . a single clock cycle has been converted to one time toggle , hence RAC is
Remedy avoided .
1. ( Tclk )on < (tpd ) < T BVREDDY 2. In Master Slave configuration , command signal is generated by master FF
2. By using Edge triggered FF and the response of the command signal is given by slave FF
3. By using Master Slave FF 3. Master slave FF can store 1 – bit of data
JK to SR C
SR to JK D to SR T to SR O F
J=S S = J𝐐 N L
K=R D = S+𝐑𝐐 T = S𝐐+RQ
R = KQ V I
JK to D SR to D D to JK T to JK
E
R
of P
J=D S=D S BVREDDY
D = J𝐐+𝐊Q T = J𝐐+KQ
K=𝐃 A F
R=𝐃 T L
JK to T SR to T D to T T to D I
J=T O
S = T𝐐 D = T⊕ 𝐐 T = D⊕ 𝐐 O
K=T N P
R = TQ
Toggle Modes BVREDDY
1
𝑓𝐶𝐿𝐾 ≤
𝑡𝑝𝑑 Use the Code :
BVREDDY
Ring counter Johnson ring counter
Mealy Modal
0/0
1. Mod No = n BVREDDY 1. Mod No = 2n
NS , O/P
2. Number of used states= n 2. Number of used states= 2n Present a 1/0
X =0 X= 1 1/1
state
Number of unused states = 2𝑛 − 𝑛 Number of unused states =22𝑛 − 𝑛
0/0 0/1
d b
3.Time period of each FF = n(𝑇𝐶𝐿𝐾 ) 3.Time period of each FF = 2n(𝑇𝐶𝐿𝐾 ) a a ,0 b,0
0/0 c 1/0
4. Frequency of each FF =
𝑓𝑐𝑙𝑘
4. Frequency of each FF =
𝑓𝑐𝑙𝑘 b b, 1 c,0
𝑛 2𝑛
1/0
5. Suffer from lock out problem 5. Suffer from lock out problem c d, 0 c,0