Logic Design Fundamentals - 1 Lecture L1.1. Logic Design Fundamentals - 1 Basic Gates Basic Combinational Circuits Basic Sequential Circuits.

Slides:



Advertisements
Similar presentations
Logic Gates.
Advertisements

Basic Logic Gates Discussion D5.1 Section Sections 13-3, 13-4.
Logic Gates.
ECE 3110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices XOR, Parity Circuits, Comparators.
1 Lecture 13 VHDL 3/16/09. 2 VHDL VHDL is a hardware description language. The behavior of a digital system can be described (specified) by writing a.
CS 151 Digital Systems Design Lecture 7 More Logic Functions: NAND, NOR, XOR.
Basic Logic Gates and De Morgan's Theorem Discussion D5.1 Appendix D.
Basic Gates Discussion D2.1. Basic Gates NOT Gate AND Gate OR Gate XOR Gate NAND Gate NOR Gate XNOR Gate.
Multiplexer as a Universal Function Generator
The IEEE Libraries And Examples Using Functions. Libraries Using the Library Command VHDL allows libraries defined using: library LibraryName; Here, we.
Logic Design Review – 1 Basic Gates Lecture L14.1 Verilog.
Introduction to Computer Engineering by Richard E. Haskell Basic Logic Gates Module M1.1 Section 3.1.
Basic Gates Verilog Discussion D5.2. Basic Gates NOT Gate AND Gate OR Gate XOR Gate NAND Gate NOR Gate XNOR Gate.
UNIT-8 LOGIC GATES.
Logical Circuit Design Week 5: Combinational Logic Circuits Mentor Hamiti, MSc Office ,
MR. KERINS Logic Gates- Electrical Engineering. LOGIC GATES Logic gates are primarily implemented using diodes or transistors acting as electronic switches,
NOCTI Review Lesson 4 Objectives:
Transistors and Logic Circuits. Transistor control voltage in voltage out control high allows current to flow -- switch is closed (on) control low stops.
LOGIC GATES & TRUTH TABLE – Digital Circuit 1 Choopan Rattanapoka.
Logic Gates. Outline  Logic Gates  The Inverter  The AND Gate  The OR Gate  The NAND Gate  The NOR Gate  The XOR Gate  The XNOR Gate  Drawing.
Logic Gates Shashidhara H S Dept. of ISE MSRIT. Basic Logic Design and Boolean Algebra GATES = basic digital building blocks which correspond to and perform.
Chapter 33 Basic Logic Gates. 2 Objectives –After completing this chapter, the student should be able to: Identify and explain the function of the basic.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
ECE2030 Introduction to Computer Engineering Lecture 4: CMOS Network Prof. Hsien-Hsin Sean Lee School of Electrical and Computer Engineering Georgia Tech.
LOGIC GATES AND CIRCUITS Digital systems are said to be constructed by using logic gates. These gates are the AND, OR, NOT, NAND, NOR, EXOR and EXNOR gates.
Basic logic gates  AND gate:The truth table is given by A.BBA
Gates and Logic Dr John Cowell phones off (please)
COE 202: Digital Logic Design Combinational Logic Part 4
Logic Gates. The Inverter The inverter (NOT circuit) performs the operation called inversion or complementation. Standard logic symbols: 1 1 input output.
Ahmad Almulhem, KFUPM 2010 COE 202: Digital Logic Design Combinational Logic Part 4 Dr. Ahmad Almulhem ahmadsm AT kfupm Phone: Office:
Combinational Logic Digital Design Department of Software Development Faculty of Information Technology Islamic University of Gaza Dr. Rebhi Baraka
Floyd, Digital Fundamentals, 10 th ed Digital Fundamentals Tenth Edition Floyd Chapter 5 © 2008 Pearson Education.
Lecture 4 Introduction to Boolean Algebra. Binary Operators In the following descriptions, we will let A and B be Boolean variables and define a set of.
COMPUTER ARCHITECTURE TRUTH TABLES AND LOGIC GATES.
Chapter-3: BOOLEAN ALGEBRA & LOGIC GATES Analysis and logical design.
Boolean Algebra and Logic Gates
Logic Gates. A logic gate is an elementary building block of a digital circuit. Most logic gates have two inputs and one output. At any given moment,
CMOS Logic Gates. NMOS transistor acts as a switch 2 When gate voltage is 0 V No channel is formed current does not flow easily “open switch” When gate.
CHAPTER 5 Combinational Logic Analysis
© 2009 Pearson Education, Upper Saddle River, NJ All Rights ReservedFloyd, Digital Fundamentals, 10 th ed Digital Logic Design Dr. Oliver Faust.
Basic Logic Gates By : Ashima Wadhwa Assistant Professor (giBS)
ECE 2110: Introduction to Digital Systems Chapter 6 Combinational Logic Design Practices XOR and parity check Circuits.
Logic Gates Chapter 5 Subject: Digital System Year: 2009.
1 ECE2030 Introduction to Computer Engineering Lecture 4: CMOS Network Prof. Hsien-Hsin Sean Lee School of ECE Georgia Institute of Technology.
Chapter 5 Boolean Algebra and Reduction Techniques 1.
Combinational Logic Analysis. Basic Combinational Logic Circuits AND-OR logic AND-OR logic AND-OR logic produces an SOP expression. AND-OR logic produces.
Chapter 33 Basic Logic Gates. Objectives After completing this chapter, you will be able to: –Identify and explain the function of the basic logic gates.
Mu.com.lec 9. Overview Gates, latches, memories and other logic components are used to design computer systems and their subsystems Good understanding.
Dr. Ameria Eldosoky Discrete mathematics
Chapter 5 Combinational Logic 组合逻辑
Eng. Mai Z. Alyazji October, 2016
Transistors and Logic Circuits
Logic Gates and Boolean Algebra
Logic Gates.
EI205 Lecture 5 Dianguang Ma Fall 2008.
Discussion D5.1 Section Sections 13-3, 13-4
Digital Signals Digital Signals have two basic states:
Basic Digital Logic Basic Gates
Logic Gates.
Logic Gates.
13 Digital Logic Circuits.
Gates Type AND denoted by X.Y OR denoted by X + Y NOR denoted by X + Y
Discussion D5.1 Section Sections 13-3, 13-4
Logic Gates.
Discussion D5.1 Section Sections 13-3, 13-4
Basic Logic Gates.
Basic Logic Gates.
Digital Logic Design Basics Combinational Circuits Sequential Circuits.
Basic Logic Operations
Eng. Ahmed M Bader El-Din October, 2018
Presentation transcript:

Logic Design Fundamentals - 1 Lecture L1.1

Logic Design Fundamentals - 1 Basic Gates Basic Combinational Circuits Basic Sequential Circuits

Basic Gates NOT Gate AND Gate OR Gate XOR Gate NAND Gate NOR Gate XNOR Gate

Y = !X Y = not X Y = ~X Basic Gates NOT X Y X Y Z XY X Y Z AND OR X Y Z X Y Z Z = X & Y Z = X and Y Z = X * Y Z = X # Y Z = X or Y Z = X + Y Any logic circuit can be created using only these three gates

NOT Gate Xnot Xnot not X = X X not X not not X Behavior: The output of a NOT gate is the inverse (one’s complement) of the input

AND Gate Behavior: The output of an AND gate is HIGH only if all inputs are HIGH Z = X(1) and X(2) and …. and X(n)

4-Input AND Gate 3-Level 2-Level Behavior: Z := '1'; for i in 1 to 4 loop Z := Z and X(i); end loop;

std_logic_1164.vhd TYPE std_ulogic IS ( 'U', -- Uninitialized 'X', -- Forcing Unknown '0', -- Forcing 0 '1', -- Forcing 1 'Z', -- High Impedance 'W', -- Weak Unknown 'L', -- Weak 0 'H', -- Weak 1 '-' -- Don't care ); SUBTYPE std_logic IS resolved std_ulogic; SUBTYPE UX01 IS resolved std_ulogic RANGE 'U' TO '1'; -- ('U','X','0','1')

std_logic_1164.vhd -- truth table for "and" function CONSTANT and_table : stdlogic_table := ( | U X 0 1 Z W L H - | | ( 'U', 'U', '0', 'U', 'U', 'U', '0', 'U', 'U' ), -- | U | ( 'U', 'X', '0', 'X', 'X', 'X', '0', 'X', 'X' ), -- | X | ( '0', '0', '0', '0', '0', '0', '0', '0', '0' ), -- | 0 | ( 'U', 'X', '0', '1', 'X', 'X', '0', '1', 'X' ), -- | 1 | ( 'U', 'X', '0', 'X', 'X', 'X', '0', 'X', 'X' ), -- | Z | ( 'U', 'X', '0', 'X', 'X', 'X', '0', 'X', 'X' ), -- | W | ( '0', '0', '0', '0', '0', '0', '0', '0', '0' ), -- | L | ( 'U', 'X', '0', '1', 'X', 'X', '0', '1', 'X' ), -- | H | ( 'U', 'X', '0', 'X', 'X', 'X', '0', 'X', 'X' ) -- | - | ); FUNCTION "and" ( l : std_ulogic; r : std_ulogic ) RETURN UX01 IS BEGIN RETURN (and_table(l, r)); END "and";

OR Gate Behavior: The output of an OR gate is LOW only if all inputs are LOW Z = X(1) or X(2) or …. or X(n)

4-Input OR Gate 3-Level 2-Level Behavior: Z := '0'; for i in 1 to 4 loop Z := Z or X(i); end loop;

Exclusive-OR (XOR) Gate Behavior: The output of an XOR gate is HIGH only if the number of HIGH inputs is ODD Z = X(1) xor X(2) xor …. xor X(n)

2-Input XOR Gate XOR X Y Z Z = X $ Y Z = X xor Y Z = Y X Y Z Note: if Y = 0, Z = X if Y = 1, Z = not X Therefore, an XOR gate can be used as a controlled inverter

4-Input XOR Gate 3-Level 2-Level Behavior: Z := '0'; for i in 1 to 4 loop Z := Z xor X(i); end loop; Note: Z = 1 if the number of 1 inputs in ODD

NAND Gate (NOT-AND) Behavior: The output of an NAND gate is LOW only if all inputs are HIGH Z = not (X(1) and X(2) and …. and X(n))

2-Input NAND Gate NAND X Y Z Z = !(X & Y) Z = X nand Y Z = ~(X * Y) X Y Z

NOR Gate (NOT – OR) Behavior: The output of an NOR gate is HIGH only if all inputs are LOW Z = not (X(1) or X(2) or …. or X(n))

2 Input NOR Gate NOR X Y Z Z = !(X # Y) Z = X nor Y Z = ~(X + Y) X Y Z

NAND Gate X Y X Y Z Z Z = !(X & Y)Z = !X # !Y = X Y W Z X Y !X !Y Z

De Morgan’s Theorem-1 !(X & Y) = !X # !Y NOT all variables Change & to # and # to & NOT the result

NOR Gate X Y Z Z = !(X # Y) X Y Z X Y Z Z = !X & !Y X Y !X !Y Z

De Morgan’s Theorem-2 !(X # Y) = !X & !Y NOT all variables Change & to # and # to & NOT the result

De Morgan’s Theorem NOT all variables Change & to # and # to & NOT the result !X # !Y = !(!!X & !!Y) = !(X & Y) !(X & Y) = !!(!X # !Y) = !X # !Y !X & !Y = !(!!X # !!Y) = !(X # Y) !(X # Y) = !!(!X & !Y) = !X & !Y

Exclusive-NOR Gate XNOR (NOT – XOR) Behavior: The output of an XNOR gate is HIGH only if the number of HIGH inputs is EVEN Z = not (X(1) xor X(2) xor …. xor X(n))

2-Input XNOR Gate XNOR X Y Z Z = !(X $ Y) Z = X xnor Y Z = Y) Note: Z = 1 if X = Y Therefore, an XNOR gate can be used as an equality detector X Y Z

Implementing Gates Relays Normally open Normally closed A B C A B C A B C nMOS transistor A-B closed when C = 1 (normally open) pMOS transistor A-B closed when C = 0 (normally closed)

NOT Gate 5V XY Y = !X Y = not X X Y X Y

NOT Gate 5V XY Y = !X Y = not X X Y 0 1 X Y

NOT Gate 5V XY Y = !X Y = not X X Y 1 0 X Y

NAND Gate X Y Z 5V X Y Z X Y Z

NAND Gate X Y Z 5V X Y Z X Y Z

NAND Gate X Y Z 5V X Y Z X Y Z

NAND Gate X Y Z 5V X Y Z X Y Z

NAND Gate X Y Z 5V X Y Z X Y Z

NOR Gate X Y Z 5V X Y Z X Y Z

NOR Gate X Y Z 5V X Y Z X Y Z

NOR Gate X Y Z 5V X Y Z X Y Z

NOR Gate X Y Z 5V X Y Z X Y Z

NOR Gate X Y Z 5V X Y Z X Y Z

AND Gate X Y 5V Z NAND-NOT

OR Gate X Y 5V Z NOR-NOT