Logic Families
Logic Families
GTU # 3130704
Unit-1
Fundamentals of
Digital systems and
Logic families
✓ Outline
  Looping
      • Number Systems
            o   Binary, Octal, Decimal, Hexa-decimal, Binary arithmetic operations
      • Binary Codes
            o   Basic codes, Error detecting and correcting codes
      • Boolean Algebra
      • Logic Gates
            o   AND, OR, NOT, NAND, NOR, EX-OR, EX-NOR
      • Logic Family Terminology
            o   TTL, Schottky TTL, CMOS logic, Tri-state logic
Number System
Section - 1
Common Number Systems
Decimal Octal
Binary Hexadecimal
Example
1 x 25 + 0 x 24 + 1 x 23 + 0 x 22 + 1 x 21 + 1 x 20                       1 x 21 + 1 x 20 + 1 x 2-1 + 1 x 2-2
  32 +     0     + 8      +    0    +     2    +    1                        2 +      1     + 0.5 + 0.25
     7 x 82     +       2 x 81       +   4 x 80                        4 x 81 + 3 x 80 + 2 x 8-1 + 5 x 8-2
      448       +        16          +     4                             32 +        3        + 0.25 + 0.0781
1 3 2 7
 10110101112 =132.78
Hexa-Decimal to Binary
 Technique
     Convert each hexadecimal digit to a 4-bit equivalent binary representation
 Example                                          Hexa-Decimal        Binary      Hexa-Decimal   Binary
 10AF16 = ?2                                           0               0000            8          1000
                                                       1               0001            9          1001
                   1    0   A F
                                                       2               0010            A          1010
                                                       3               0011            B          1011
          0001 0000         1010 1111                  4               0100            C          1100
                                                       5               0101            D          1101
 10AF16 = 10000101011112
                                                       6               0110            E          1110
                                                       7               0111            F          1111
Binary to Hexa-Decimal
 Technique
     From given fractional point, group bits in fours to right and group bits in fours to left
     If, left with less than 4 bits at the end then stuff 0s to make it group of four
     Convert to hexadecimal digits
 Example
 101101.01112 = ?16
2 D 7
 10110101112 = 2D.716
Octal to Hexa-Decimal
 Technique
     Convert Octal to Binary
     From given fractional point, group bits in fours to right and group bits in fours to left
     Convert Binary to Hexa-Decimal
 Example
 10768 = ?16
                                       1         0          7         6
                                2                     3                    E
 10768 = 23E16
Hexa-Decimal to Octal
 Technique
     Convert Hexa-Decimal to Binary
     From given fractional point, group bits in threes to right and group bits in threes to left
     Convert Binary to Octal
 Example
 1F0C16 = ?8
                                          1          F         0          C
                     0       1                 7          4                    1     4
 1F0C16 = 174148
Binary Addition & Subtraction
    Rules for binary addition                           Rules for binary subtraction
                                0+0=0                                                  0–0=0
                                0+1=1                                                  1–1=0
                                1+0=1                                                  1–0=1
                                1 + 1 = 10 i.e. 0                                      0 – 1 = 1, with
                                with a carry of 1                                      a borrow 1
      1 1 1 1         1 1
                                                        0 1 10 1  1 10
      1 1 0 1 . 1 0 1                                   1 0 1 0 . 0 1 10
+ 0 1 1 1 . 0 1 1 - 0 1 1 1 . 1 1 1
1     0 1 0 1 . 0 0 0                                   0 0 1 0 . 0 1 1
Binary Multiplication & Division
 Multiplication                    Division
                  10111                110 1 0 1 1 0 1 0 1 1 1 . 1
           x                               000
                  10011
                                           1 0 11
                  1 0 1 1 1                  110
                                             1010
               1 0 1 1 1                       110
           0 0 0 0 0                           1001
         0 0 0 0 0                               110
                                                   11 0
       1 0 1 1 1                                   110
       1 1 0 1 1 0 1 0 1                            000
Signed Binary Numbers
 Two ways of representing signed numbers:
     1) Sign-magnitude form, 2) Complement form.
 Most of computers use complement form for negative number notation.
 1’s complement and 2’s complement are two different methods in this type.
1’s Complement
 1’s complement of a binary number is obtained by subtracting each digit of that binary
 number from 1.
 Example
1 1 1 1 1 1 1 . 1 1
- 1 1 0 1 - 1 0 1 . 0 1
                   0    0   1   0                      0   1   0   .   1   0
            (1’s complement of 1101)                (1’s complement of 101.01)
1 1 1 1 1 1 1 . 1 1
- 1 1 0 0 - 1 0 1 . 0 1
0 0 1 1 0 1 0 . 1 0
+ 1 + 1
                   0   1    0    0                    0    1    0   .   1    1
            (2’s complement of 1100)             (2’s complement of 101.01)
 Shortcut: Starting from right side, all bits are same till first 1 occurs and
           then invert rest of the bits
Representation of negative number in 2’s complement form
 Express -65.5 in 12 bit 2’s complement form.
                  2    65     1                         0.5 x 2 = 1.0
                  2    32     0            So, result in 12-bit binary is as follows:
                  2    16     0                    65.510 = 01000001.10002
                  2     8     0            For negative number, we have to
                  2     4     0            convert this into 2’s complement form
                  2     2     0                    -65.510 = 10111110.10002
                  2     1     1
                        0
Accuracy in Binary Number Conversion
Accuracy in Binary Number Conversion
9’s Complement
 9’s complement of a decimal number is obtained by subtracting each digit of that decimal
 number from 9.
 Example
9 9 9 9 9 9 9 . 9 9
- 3 4 6 5 - 7 8 2 . 5 4
                   6   5   3   4                 2   1   7   .   4   5
             (9’s complement of 3465)        (9’s complement of 782.54)
10’s Complement
 10’s complement of a decimal number is obtained by adding 1 to its 9’s complement.
 Example
9 9 9 9 9 9 9 . 9 9
- 3 4 6 5 - 7 8 2 . 5 4
6 5 3 4 2 1 7 . 4 5
+ 1 + 1
                  6   5   3    5                 2   1   7   .   4   6
            (10’s complement of 3465)        (10’s complement of 782.54)
Subtraction using 9’s complement & 10’s complement
 Using 9’s complement
    Obtain 9’s complement of subtrahend
    Add the result to minuend and call it intermediate result
    If carry is generated then answer is positive and add the carry to Least Significant Digit (LSD)
    If there is no carry then answer is negative and take 9’s complement of intermediate result and place
    negative sign to the result.
              7     4   5   .   8   1                        7   4   5   .   8   1
                                        9’s complement
         -    4     3   6   .   6   2                    +   5   6   3   .   3   7
              3     0   9   .   1   9                    1   3   0   9   .   1   8
                                                                             +   1
                                                             3   0   9   .   1   9
Subtraction using 9’s complement (Examples)
 Example - 2
 436.62 - 745.81
              4    3   6    .   6   2                          4   3   6   .   6   2
                                        9’s complement
          -   7    4   5    .   8   1                      +   2   5   4   .   1   8
          -   3    0   9    .   1   9                          6   9   0   .   8   0
                                          9’s complement
- 3 0 9 . 1 9
              7    4   5   .   8   1                          7      4   5   .   8   1
                                       10’s complement
          -   4    3   6   .   6   2                     +    5      6   3   .   3   8
3 0 9 . 1 9 1 3 0 9 . 1 9
                 4    3   6    .   6   2                         4   3   6   .   6   2
                                           10’s complement
          -      7    4   5    .   8   1                     +   2   5   4   .   1   9
          -      3    0   9    .   1   9                         6   9   0   .   8   1
                                              10’s complement
- 3 0 9 . 1 9
                   6 8.7 5                      0 1 0 0 0 1 0 0. 1 1 0 0
                             1’s complement
                 - 2 7.50                     + 1 1 1 0 0 1 0 0. 0 1 1 1
                 + 4 1.25                     1 0 0 1 0 1 0 0 1. 0 0 1 1
                                                                     +1
                                                0 0 1 0 1 0 0 1. 0 1 0 0
Subtraction using 1’s complement (Examples)
 Example - 2
 43.25 - 89.75
                     4 3.2 5                        0 0 1 0 1 0 1 1. 0 1 0 0
                                1’s complement
                  - 8 9.75                        + 1 0 1 0 0 1 1 0. 0 0 1 1
                  - 4 6.50                          1 1 0 1 0 0 0 1. 0 1 1 1
                                 1’s complement
0 0 1 0 1 1 1 0. 1 0 0 0
                   6 8.7 5                        0 1 0 0 0 1 0 0. 1 1 0 0
                               2’s complement
                 - 2 7.50                       + 1 1 1 0 0 1 0 0. 1 0 0 0
+ 4 1.25 1 0 0 1 0 1 0 0 1. 0 1 0 0
                   4 3.2 5                          0 0 1 0 1 0 1 1. 0 1 0 0
                              2’s complement
                 - 8 9.75                       + 1 0 1 0 0 1 1 0. 0 1 0 0
                 - 4 6.50                           1 1 0 1 0 0 0 1. 1 0 0 0
                               2’s complement
0 0 1 0 1 1 1 0. 1 0 0 0
Decimal 1 4
                                                                  1    1   1
                  2   5                       0   0    1    0     0    1   0    1
+ 1 3 + 0 0 0 1 0 0 1 1
3 8 0 0 1 1 1 0 0 0
                             +1       +1      +1      +1
                            0001     0010    0001    0110   .0100   Corrected sum
BCD Subtraction
 Example - 1
3 8 0 0 1 1 1 0 0 0
- 1 5 - 0 0 0 1 0 1 0 1
2 3 0 0 1 0 0 0 1 1
Rule: If one 4-bit group needs to take borrow from neighbor, then subtract
     0110 from the group which is receiving borrow.
BCD Subtraction
 Example - 2
Decimal 1 4
Binary 1 0 0 1
                    Gray           1           1           0             1
Gray to Binary Conversion
 Conversion of n-bit Gray Code (G) to Binary Number (B) is as
 follows:
                  Binary        1             0    0            1
Error-Detecting Codes
 Noise can alter or distort the data in transmission.
 The 1s may get changed to 0s and 0s to 1s.
 Because digital systems must be accurate to the digit, errors can pose a serious problem.
 Single bit error should be detect & correct by different schemes.
 Parity, Check Sums and Block Parity are few examples of error detecting code.
Parity
 Parity bit is the simplest technique.
 There are two types of parity – Odd parity and Even parity.
 For odd parity, the parity is set to a 0 or a 1 at the transmitter such that the total number of
 1 bits in the word including the parity bit is an odd number.
 For even parity, the parity is set to a 0 or a 1 at the transmitter such that the total number of
 1 bits in the word including the parity bit is an even number.
 For example, 0110 binary number has “1” as Odd parity and “0” as Even parity.
 Detect a single-bit error but can not detect two or more errors within the same word.
 In any practical system, there is always a finite probability of the occurrence of single error.
 E.g. In an even-parity scheme, code 10111001 is erroneous because number of 1s is odd(5),
 while code 11110110 is error free because number of 1s is even(6).
Check Sums
 Simple parity can not detect two errors within the same word.
 Added to the sum of the previously transmitted words
 At the transmission, the check sum up to that time is sent to the receiver.
 The receiver can check its sum with the transmitted sum.
 If the two sums are the same, then no errors were detected at the receiver end.
 If there is an error, the receiving location can ask for retransmission of the entire data.
 This type of transmission is used in teleprocessing system.
Block Parity
                  Parity Column
Error Correcting Code
 7-bit Hamming Code is widely used error             How to detect error?
 correcting code, containing 4 bits of data          Example: Received data = 1001001
 and 3 bits of even parity.
                                                      P1 P2 D 3 P4 D 5 D 6 D 7 = 1 0 0 1 0 0 1
 Pattern: P1 P2 D3 P4 D5 D6 D7
                                                      P1 D3 D5 D7 = 1 0 0 1 (No Error)
 Group - 1: P1D3D5D7
                                                      P2 D3 D6 D7 = 0 0 0 1 (Error)
 Group - 2: P2D3D6D7
                                                      P4 D5 D6 D7 = 1 0 0 1 (No Error)
 Group - 3: P4D5D6D7
                                                     The error word is 0 1 0 = 210.
 Example: Data = 1101
                                                     Complement the 2nd bit (from left).
  P 1 P 2 D 3 P 4 D 5 D 6 D7 = P 1 P 2 1 P 4 1 0 1
                                                     Correct code is 1 1 0 1 0 0 1
  P 1 D3 D5 D7 = 1 1 1 1
  P 2 D3 D6 D7 = 0 1 0 1
  P 4 D5 D6 D7 = 0 1 0 1
 7-bit Hamming Code is 1 0 1 0 1 0 1
Boolean Algebra
Section - 3
Boolean Algebra Laws
Boolean Algebra Laws
                 A        B        C      A+B+C
                 0        0        0        0               1         1   1    1   1
                 0        0        1            1           0         1   1    0   0
                 0        1        0            1           0         1   0    1   0
                 0        1        1            1           0         1   0    0   0
                 1        0        0            1           0         0   1    1   0
                 1        0        1            1           0         0   1    0   0
                 1        1        0            1           0         0   0    1   0
                  1       1        1            1           0         0   0    0   0
From truth table, it is clearly visible that L.H.S. = R.H.S. Hence, the
                                                           complement of a
sum of variables is equal to the product of their individual complements.
                                 L.H.S.                                       R.H.S.
                 A        B        C      AB
                 0        0        0      C           1        1          1     1      1
                 0        0        1       0          1        1          1     0      1
                 0        1        0       0          1        1          0     1      1
                 0        1        1       0          1        1          0     0      1
                 1        0        0       0          1        0          1     1      1
                 1        0        1       0          1        0          1     0      1
                 1        1        0       0          1        0          0     1      1
                  1       1        1        0         0        0          0     0      0
                                            1
From truth table, it is clearly visible that L.H.S. = R.H.S. Hence, the
                                                           complement of a
product of variables is equal to the sum of their individual complements.
Reducing Boolean Expression (Example – 1)
                                            (Distributive law)
                                            (Distributive law)
                                                    (A.A = A)
                                                  (1 + A = 1)
Reducing Boolean Expression (Example – 2)
                                            (De-Morgan’s law)
                                            (De-Morgan’s law)
                                             (Distributive law)
                                             (Distributive law)
                                                     (A.A’ = 0)
                                             (Distributive law)
                                                     (A.A’ = 0)
Logic Gates
Section - 4
Logic Gates
 Most basic logical unit of the digital system is gate circuit.
 Types of gate circuits are as follows
 1.   AND Gate
 2.   OR Gate
 3.   NOT Gate (Inverter)
 4.   NOR Gate
 5.   NAND Gate
 6.   XOR Gate
 7.   XNOR Gate
1. AND Gate
 AND Gate has an output which is normally at logic level “0” and only goes “HIGH” to a logic
 level “1” when ALL of its inputs are at logic level “1”
     A                      C                            A            C
                                                         0            1
                                                         1            0
4. NOR Gate
 NOR Gate is an OR gate followed by an inverter.
 NOR Gate has an output which is normally at logic level “1” and only goes “LOW” to a logic
 level “0” when one or more of its inputs are at logic level “1”.
  A                               A        B         C
                  C
  B                               0        0         1
                                  0        1         1
                                  1        0         1
                                  1        1         0
6. Exclusive-OR (X-OR) Gate
? X-OR gate that has 1 state when one and only one of its two inputs assumes a logic 1 state
  and has 0 state when all of its input are same.
? Also known as anti-coincidence gate or inequality detector.
  A                                A        B        C
                 C
  B                                0        0        0
                                   0        1        1
                                   1        0        1
                                   1        1        0
7. Exclusive-NOR (X-NOR) Gate
 X-NOR gate that has 1 state when all of its input are same and has 0 state when one of its
 input has 0 state and other input is 1 state.
 Also known as coincidence gate or equality detector.
                                                         (AB)’        ((AB)’)’ =
 A                    A’                   A                          AB
                                           B
     NOT using NAND                                  AND using NAND
                              A’
                      A
                                               (A’B’)’ = (A+B)
                      B
                              B’
                           OR using NAND
NOR as Universal Gate
                                                     (A+B)’     ((A+B)’)’ = A+B
                                          A
 A                   A’
                                          B
     NOT using NOR                               OR using NOR
                              A’
                      A
                                              (A’+B’)’ = AB
                      B
                              B’
                          AND using NOR
Logic Families
Section - 5
Digital IC Specification
 Threshold voltage
     It is defined as that voltage at the input of a gate which causes a change in the state of the output from
     one logic level to the other.
 Propagation Delay
     A pulse through a gate takes a certain amount of time to propagate from input to output. This interval of
     time is known as the propagation delay of gate.
 Power dissipation
     The power dissipation, PD, of a logic gate is the power required by the gate to operate with 50% duty cycle
     at a specified frequency and is expressed in milliwatts.
 Fan-in
     The fan-in of a logic gate is defined as the number of inputs that the gate is designed to handle.
 Fan-out
     The fan-out (also called the loading factor) of a logic gate is defined as the maximum number of standard
     loads that the output of the gate can drive without impairing its normal operation.
Digital IC Specification
 Voltage & Current parameters
     VIH(min), VOH(min), VIL(max), VOL(max), IIH, IOH, IIL, IOL
 Noise Margin
     The noise immunity of a logic circuit refers to the circuit’s ability to tolerate noise voltages at its inputs.
     A quantitative measure of noise immunity is called noise margin.
 Operating Temperatures
     The IC gates and other circuits are temperature sensitive being semiconductor devices.
     However, they are designed to operate satisfactorily over a specified range of temperature.
 Speed power products
     A common means for measuring and comparing the overall performance of an IC family is the speed
     power product, which is obtained by multiplying the gate propagation delay by the gate power
     dissipation.
TTL v/s CMOS v/s ECL