Professional Documents
Culture Documents
Unit - 1: Number Systems: Number System Base (B) Digits
Unit - 1: Number Systems: Number System Base (B) Digits
1. A number system with base „b‟ will have „b‟ different digits from 0 to (b-1)
2.
Number System Base (b) Digits
Binary 2 0,1
Octal 8 0, 1, 2, 3, 4, 5, 6, 7
Decimal 10 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
Hexadecimal 16 0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
A, B, C, D, E, F.
3.
Decimal Hexadecimal Binary
0 0 0000
1 1 0001
2 2 0010
3 3 0011
4 4 0100
5 5 0101
6 6 0110
7 7 0111
8 8 1000
9 9 1001
10 A 1010
11 B 1011
12 C 1100
13 D 1101
14 E 1110
15 F 1111
4. 4 bits = 1 nibble
8 bits = 1 Byte
5. Binary coded decimal code (BCD)
(i) In 4 bit binary formats
Possible representation = 24 = 16
Valid BCD codes = 10
Invalid BCD codes = 6
(ii) In 8 bit binary formats possible representation = 28
Valid BCD codes = 100
Invalid BCD codes = 156
6. Largest number that can be represented by using N bits = (2N − 1)10
I/P O/P
1. NOT gate
A Y=A
0 1
1 0
I/P O/P
2. AND gate A B Y = AB
0 0 0
0 1 0
1 0 0
1 1 1
4. NAND gate
I/P O/P
A B Y = AB
0 0 1
0 1 1
1 0 1
1 1 0
0 0 0
0 1 1
1 0 1
1 1 0
0 0 1
0 1 0
1 0 0
1 1 1
8.
No of NAND No of NOR gate
Logic Gates
gate required required
NOT 1 1
AND 2 3
OR 3 2
EX-OR 4 5
EX-NOR 5 4
1) Commutative law: 𝐴 + 𝐵 = 𝐵 + 𝐴
𝐴 .𝐵 = 𝐵 .𝐴
2) Associative law: 𝐴 + (𝐵 + 𝐶) = (𝐴 + 𝐵) + 𝐶 = 𝐴 + 𝐵 + 𝐶
𝐴. (𝐵 . 𝐶) = (𝐴 . 𝐵)𝐶 = 𝐴𝐵𝐶
3) Distributive law: 𝐴 (𝐵 + 𝐶) = 𝐴𝐵 + 𝐴𝐶
(𝐴 + 𝐵) (𝐶 + 𝐷) = 𝐴𝐶 + 𝐴𝐷 + 𝐵𝐶 + 𝐵𝐷
4) Boolean algebraic theorems
(i) 𝐴 . 𝐴 = 𝐴; 𝐴 .0 = 0
𝐴 .1 = 𝐴; 𝐴 . 𝐴 = 0
(ii) A = A
(iii) 𝐴 + 𝐴 = 𝐴; 𝐴 + 0 = 𝐴
𝐴 + 1 = 1; 𝐴 + 𝐴 = 1
(iv) Demorgan’s theorem,
1) 𝐴 . 𝐵 . 𝐶 = 𝐴 + 𝐵 + 𝐶 2) 𝐴 + 𝐵 + 𝐶 = 𝐴 . 𝐵 . 𝐶
(v) Transposition theorem
0 (𝐴 + 𝐵) (𝐴 + 𝐶) = 𝐴 + 𝐵𝐶
(vi) Distribution theorem
𝐴 + 𝐵𝐶 = (𝐴 + 𝐵) (𝐴 + 𝐶)
(vii) Consensus Theorem
𝐴𝐵 + 𝐴𝐶 + 𝐵𝐶 = 𝐴𝐵 + 𝐴𝐶
Other Theorems:
1) (𝐴 + 𝐵) . (𝐴 + 𝐵 ) = 𝐴 5) (𝐴 + 𝐵) (𝐴 + 𝐶) = 𝐴𝐶 + 𝐴𝐵
2) 𝐴 + 𝐵 + 𝐶 = 𝐴. 𝐵 . 𝐶 6) 𝐴𝐵 + 𝐴𝐶 + 𝐵𝐶 = 𝐴𝐵 + 𝐴𝐶
3) 𝐴𝐵 + 𝐴𝐶 = (𝐴 + 𝐶) (𝐴 + 𝐵) 7) (𝐴 + 𝐵) (𝐴 + 𝐶) (𝐵 + 𝐶) = (𝐴 + 𝐵) (𝐴 + 𝐶)
4) 𝐴 . 𝐵 . 𝐶 = 𝐴 + 𝐵 + 𝐶
5) Duality Theorem:-
(i) Change OR Sign to AND sign
(ii) Complement “0” to “1”
(iii) Keep literals as it
n
For N variables, maximum possible self-dual function = 2(2 /2 )
With N variables, maximum possible distinct logic functions = 22n
6) AND – OR logic ≡ NAND – NAND logic in SOP
OR – AND logic ≡ NOR – NOR logic in POS
7)
Dual Complement
1) AND ↔ OR 1) AND ↔ OR
2) 1 ↔ 0 2) 1 ↔ 0
3) Keep variable as it as 3) Complement each variable
8)
With „n‟ variable max possible logical expressions = 22n
n −1
With „n‟ variable max possible self dual expressions = 22
9) Digital Number Representation:-
(i) Unsigned magnitude representation = 0 to (2n - 1)
(ii) Signed magnitude representation = - (2n−1 - 1) to + (2n−1 - 1)
(iii) Range of 1‟s complement number = - (2n−1 - 1) to + (2n−1 - 1)
(iv) Range of 2‟s complement number = -2n−1 to + (2n−1 – 1)
2.
Type of No of gates
circuit required
NAND NOR
Half adder 5 5
Half
subtractor 5 5
Full adder 9 9
Full subtractor 9 9
3. Full adder can be implemented with = Two half adder + one OR gate
4. Parallel adder [Ripple carry adder (or) Binary adder]
n FA (or) (n – 1) FA & one HA FA → Full adder
(or) HA → Half adder
(2n -1) HA & (n – 1) OR
5. Delay time (𝐓𝐝𝐞𝐥𝐚𝐲 ):
Tdelay = (n – 1) t cpd + max (t spd , t cpd )
Where t cpd → Carry propagation delay
t spd → Sum propagation delay
6. Multiplexer:
Y0 = (ABI0 + A B I1 + A BI2 + A B I3 ) E
m ≤ 2n (or) log 2 m ≤ n
7. 2 : 1 multiplexer applications:
Multiplexer Logical Expression
Y0 = A
(NOT)
Y0 = A B + A
=A+B
(OR)
Y0 = A.0 + AB
Y0 = AB
(AND)
Y0 = AB + A.O
Y0 = A + B
(NOR)
Y0 = A.1 + AB
=A+B
Y0 = AB(NAND)
Y0 = A⨁B
(EX – OR)
Y0 = A⊙B
(EX – NOR)
Required Number
Given Mux Needed Mux
of Mux
2:1 4:1 3
4:1 16 : 1 4+1=5
4:1 64 : 1 16 + 4 + 1 = 21
8:1 64 : 1 8+1=9
8:1 256 : 1 32 + 4 + 1 = 37
D0 = SA ; D1 = SA
1 : 4 Demux
D0 = S1 S0 A
D1 = S1 S0 A
D2 = S1 S0 A
D3 = S1 S0 A
Given Needed
Required number of mux
Demux Demux
1:2 1:4 1+2=3
1:2 1:8 1+2+4=7
1:2 1 : 16 1 + 2 + 4 + 8 = 15
1:2 1 : 64 1 + 2 + 4 + 8 + 16 + 32 = 63
1:4 1 : 16 1+4=5
11. 2 ×4 Decoder :
E A B 𝐃𝟎 𝐃𝟏 𝐃𝟐 𝐃𝟑
1 X X 1 1 1 1
0 0 0 0 1 1 1
0 0 1 1 0 1 1
0 1 0 1 1 0 1
0 1 1 1 1 1 0
Higher order decoder using lower order decoder:
Required
Needed
Given decoder number of
decoder
decoder
2:4 4 : 16 1+4=5
2:4 3:8 2 + Not gate
4 : 16 8 : 256 1 + 16 = 17
A B X Y Z
0 0 0 1 0
0 1 1 0 0
1 0 0 0 1
1 1 0 1 0
o/p Expression AB A⊙B AB
3) D Flip Flop
CLK D O/P
0 X Previous
1 0 0
1 1 1
2) Characteristic Table
JK Flip Flop SR Flip Flop T Flip Flop
3) Excitation Table
JK FF SR FF
𝐐𝐧 𝐐𝐧+𝟏 S R
𝐐𝐧 𝐐𝐧+𝟏 J K
0 0 0 X
0 0 0 X
0 1 1 0
0 1 1 X
1 0 0 1
1 0 X 1
1 1 X 0
1 1 X 0
D FF T - FF
𝐐𝐧 𝐐𝐧+𝟏 𝐃 𝐐𝐧 𝐐𝐧+𝟏 T
0 0 0 0 0 0
0 1 1 0 1 1
1 0 0 1 0 1
1 1 1 1 1 0
4) Race-around condition:
(i) J = K = 1
(ii) 𝑡𝑝𝑑 𝐹𝐹 <𝑡𝑝𝑤
(iii) Flip – flop is level triggered
Modulus number =
𝑓𝑖
Output freq. = 𝑥.𝑦
7) Up/down counter
Clock
Triggering Counter
Connection
-ve edge Q Up counter
+ve edge 𝑄 Up counter
-ve edge 𝑄 Down counter
+ve edge Q Down counter
8) Synchronous Counters:
(i) Ring counter: (non self starting counter)
Modulus number = n
f
fo = ni
max count = 2n−1
Tdelay = t pd
(ii) Johnson Counter: (Twisted Ring Counter)
Modulus number = 2n
f
fo = 2𝑛i
max count = 2n − 1
(iii) Synchronous series carry counter (serial counter)
Modulus number = 2n
f
fo = 2ni
max count = 2n -1
Tdelay = t pd (FF ) + (n - 2) t pd
(iv) Parallel counter
Modulus number = 2n
f
fo = 2ni
max count = 2n -1
Tdelay = t pd ff + t pd
Where t pd FF ⇒ propagation delay of flip flop
t pd ⇒propagation delay of gate
Shift Registers
(i) I/P O/P Total
Serial in serial out (SISO) n n-1 2n-1
Serial in parallel out (SIPO) n 0 n
Parallel in serial out (PISO) 1 n-1 n
Parallel in parallel out (PIPO) 1 0 1
where n = no of F.F‟s
(ii) Interms of speed:
PIPO > PISO > SIPO > SISO
(v) T1 = 2n TC
𝐷𝑒−𝑖𝑛𝑡𝑒𝑔𝑟𝑎𝑡𝑖𝑜𝑛 𝑡𝑖𝑚𝑒
(vi) Va = × VR
𝐼𝑛𝑡𝑒𝑔𝑟𝑎𝑡𝑖𝑜𝑛 𝑡𝑖𝑚𝑒