Lecture Digital logic design - Lecture 6: More logic functions: NAND, NOR, XOR and XNOR

34 59 0
Lecture Digital logic design - Lecture 6: More logic functions: NAND, NOR, XOR and XNOR

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

The main contents of the chapter consist of the following: More 2-input logic gates (NAND, NOR, XOR); extensions to 3-input gates; converting between sum-of-products and NANDs; converting between sum-of-products and NORs; positive and negative logic.

Lecture More Logic Functions: NAND, NOR, XOR and XNOR Overvie w ° More 2-input logic gates (NAND, NOR, XOR) ° Extensions to 3-input gates ° Converting between sum-of-products and NANDs • SOP to NANDs • NANDs to SOP ° Converting between sum-of-products and NORs • SOP to NORs • NORs to SOP ° Positive and negative logic • We use primarily positive logic in this course Logic functions of N variables ° Each truth table represents one possible function (e.g AND, OR) ° If there are N inputs, there are 22 N ° For example, is N is then there are 16 possible truth tables ° So far, we have defined of these functions • 14 more are possible ° Why consider new functions? • Cheaper hardware, more flexibility x 0 1 y 1 G 0 Logic functions of variables Truth table - Wikipedia, The NA ND A Y Gat B e ° This is a NAND gate It is a combination of an AND gate followed by an inverter Its truth table shows this… ° NAND gates have several interesting properties… • NAND(a,a)=(aa)’ = a’ = NOT(a) • NAND’(a,b)=(ab)’’ = ab = AND(a,b) • NAND(a’,b’)=(a’b’)’ = a+b = OR(a,b) A B Y 0 1 1 1 The NA °ND These three properties show that a NAND gate with both Gat of its inputs driven by the same signal is equivalent to a e NOT gate ° A NAND gate whose output is complemented is equivalent to an AND gate, and a NAND gate with complemented inputs acts as an OR gate ° Therefore, we can use a NAND gate to implement all three of the elementary operators (AND,OR,NOT) ° Therefore, ANY switching function can be constructed using only NAND gates Such a gate is said to be primitive or functionally complete NA ND Gat es A into Oth er NOT Gate Gat es (what are these circuits?) Y A B Y AND Gate A Y B OR Gate Cascaded NAND Gates 3-input NAND gate NAND Gate and Laws The NO R Gat e A B Y ° This is a NOR gate It is a combination of an OR gate followed by an inverter It’s truth table shows this… ° NOR gates also have several A B Y 0 • NOR(a,a)=(a+a)’ = a’ = NOT(a) • NOR’(a,b)=(a+b)’’ = a+b = OR(a,b) 1 0 • NOR(a’,b’)=(a’+b’)’ = ab = AND(a,b) 1 interesting properties… Exa mpl °eDetermine the output expression for the below circuit and simplify it using DeMorgan’s Theorem Combinational Logic Using Universal Gates X = ( (AB)’(CD)’ )’ = ( (A’ + B’) (C’ + D’) )’ = (A’ + B’)’ + (C’ + D’)’ = A’’ B’’ + C’’ D’’ = AB + CD Universality of NAND and NOR gates Uni ver salit y of NO R gat e ° Equivalent representations of the AND, OR, and NOT gates Exa mpl e Inte rpre tati on of the two NA ND gat e sym ° Determine the output expression for circuit via bol DeMorgan’s Theorem s Inte rpre tati on of the two OR gat e sym bol ° Determine the output expression for circuit via s DeMorgan’s Theorem Alternate Logic-Gate Representations Standard and alternate symbols for various logic gates and inverter Invert each input and output of the standard symbol, This is done by adding bubbles(small circles) on input and output lines that not have bubbles and by removing bubbles that are already there Change the operation symbol from AND to OR, or from OR to AND.(In the special case of the INVERTER, the operation symbol is not changed) Positive Logic and Negative Logic We will be emphasizing primarily on positive logic in this course Axioms and Graphical representation of DeMorgan's Law 10A) X Y Y X 10B) X 11A) X YZ 11B) X 12A) XY 12B) X Y W 13A) X XY X Y 13B) X XY X Y 13C) X XY X Y 13D) X XY X Y 14A) XY 14B) X Y Y X XY Z Y Z Z X Y Commutative Law X Y XY Z Y X Y Z Associative Law XZ XW XZ YW Consensus Theorem YZ Distributiv e Law NOR Gate and Laws NAND Gate and Laws Summary ° Basic logic functions can be made from NAND, and NOR functions ° The behavior of digital circuits can be represented with waveforms, truth tables, or symbols ° Primitive gates can be combined to form larger circuits ° Boolean algebra defines how binary variables with NAND, NOR can be combined ° DeMorgan’s rules are important • Allow conversion to NAND/NOR representations ... ° More 2-input logic gates (NAND, NOR, XOR) ° Extensions to 3-input gates ° Converting between sum-of-products and NANDs • SOP to NANDs • NANDs to SOP ° Converting between sum-of-products and. .. DeMorgan’s Theorem Alternate Logic- Gate Representations Standard and alternate symbols for various logic gates and inverter Invert each input and output of the standard symbol, This is done by... NAND and NOR gates are very valuable as any design can be realized using either one es ° It is easier to build an IC chip using all NAND or NOR gates than to combine AND, OR, and NOT gates ° NAND/NOR

Ngày đăng: 12/02/2020, 15:41

Từ khóa liên quan

Mục lục

  • Lecture 6 More Logic Functions: NAND, NOR, XOR and XNOR

  • Overview

  • Logic functions of N variables

  • Logic functions of 2 variables

  • The NAND Gate

  • Slide 6

  • NAND Gates into Other Gates

  • Slide 8

  • Slide 9

  • The NOR Gate

  • Functionally Complete Gates

  • NOR Gates into Other Gates

  • Slide 13

  • The XOR Gate (Exclusive-OR)

  • The XNOR Gate

  • XOR Implementation by NAND

  • XNOR Implementation by NAND

  • NOR Gate Equivalence

  • DeMorgan’s Theorem

  • Example

Tài liệu cùng người dùng

Tài liệu liên quan