Digital Electronics.

Slides:



Advertisements
Similar presentations
Truth Tables and Logic Gates. What are Logic Gates? Logic gates are components used in making logic circuits. Each gate has one or more inputs and produces.
Advertisements

Chapter 4 Gates and Circuits.
Introduction to Computer Engineering ECE/CS 252, Fall 2010 Prof. Mikko Lipasti Department of Electrical and Computer Engineering University of Wisconsin.
ENGIN112 L7: More Logic Functions September 17, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 7 More Logic Functions: NAND, NOR,
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, every.
Announcements mid-term on Thursday 12:30 – be on time. Calculators allowed (required!) No assignment due this week Assignment 6 posted on Thursday Project.
Digital logic gates.
Department of Computer and Information Science, School of Science, IUPUI CSCI 240 Digital Logic.
Logic Gates.
CT455: Computer Organization Logic gate
Computer Science 210 Computer Organization Introduction to Logic Circuits.
Programmable Logic Controllers.
Digital Electronics Lecture 2 Logic Gates. Lecture 2 outline Announcement:
Lecture 6 More Logic Functions: NAND, NOR, XOR and XNOR
CS 151 Digital Systems Design Lecture 5 Boolean Algebra.
Logic Gates.
Programming Logic Gate Functions in PLCs
topics Logic gates Gates types Universal gates
Introduction Digital Electronics Logic Gates De Morgan’s Theorem
Chapter 2 Logic Circuits.
Chapter 4 Gates and Circuits.
DIGITAL CIRCUITS Dr. L M Head Sophomore Clinic Fall 2004.
Lecture 3. Boolean Algebra, Logic Gates
In this module you will learn: What the various logic gates do. How to represent logic gates on a circuit diagram. The truth tables for the logic gates.
Logic Gates Circuits to manipulate 0’s and 1’s. 0’s and 1’s used for numbers Also to make decisions within the computer. In that context, 1 corresponds.
Binary Logic and Gates COE 202 Digital Logic Design Dr. Aiman El-Maleh
Logic Gate A logic gate is an electronic circuit which makes logic decisions. It has one output and one or more inputs. The output signal appears only.
3. DIGITAL ELECTRONICS..
Lecture 3. Boolean Algebra, Logic Gates Prof. Sin-Min Lee Department of Computer Science 2x.
UNIT-8 LOGIC GATES.
Chapter 4 Gates and Circuits. 4–2 Chapter Goals Identify the basic gates and describe the behavior of each Describe how gates are implemented using transistors.
Chapter 4 Gates and Circuits.
MOS Transistors The gate material of Metal Oxide Semiconductor Field Effect Transistors was original made of metal hence the name. Present day devices’
Module 3.  Binary logic consists of :  logic variables  designated by alphabet letters, e.g. A, B, C… x, y, z, etc.  have ONLY 2 possible values:
Logic gates & Boolean Algebra. Introduction Certain components (called logic elements) of the computer combine electric pulses using a set of rules. Electric.
1 The Chinese University of Hong Kong Faculty of Education Diploma in Education (Part-Time) Winter 1997 Educational Communications and Technology Assignment.
 In studying digital integrated circuits, one must start with the simplest group of circuit, the SSIs or Small Scale Integrated Circuits. Since these.
LOGIC GATES.
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.
Week 6: Gates and Circuits: PART I READING: Chapter 4.
Sneha.  Gates Gates  Characteristics of gates Characteristics of gates  Basic Gates Basic Gates  AND Gate AND Gate  OR gate OR gate  NOT gate NOT.
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,
DIGITAL ELECTRONICS. Everything in digital world is based on binary system. Numerically it involves only two symbols 0 or 1. –0 = False = No –1 = True.
Digital electronics 4–1 Gates and Circuits SANJAYBHAI RAJGURU COLLEGE OF ENGG.
1 Ch.3 Logic Gates and Boolean Algebra – Part 1
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Digital Logic Design Ch1-1. Digital Logic Design Ch1-2 Introduction to digital logic (logic gates, flip-flops, circuits) Definition of Digital Logic 
Logic Gates Unit 16.
Logic gates.
Boolean Algebra & Logic Gates
Basics of Logic gates - Part 1
Dr. Ameria Eldosoky Discrete mathematics
Chapter 3 Notes – Part II Review Questions
Digital Technology.
KS4 Electricity – Electronic systems
KS4 Electricity – Electronic systems
Digital Signals Digital Signals have two basic states:
Basic Digital Logic Basic Gates
Dr. Clincy Professor of CS
Practice #Digital Logic Mr. Burleson
Chapter 4 Gates and Circuits.
CS105 Introduction to Computer Concepts GATES and CIRCUITS
Computer Science 210 Computer Organization
SOLIDS AND SEMICONDUCTOR DEVICES - IV
Digital Electronics Lab 2 Instructor:
Logic Gates.
SOLIDS AND SEMICONDUCTOR DEVICES - IV
KS4 Electricity – Electronic systems
Introductory Concepts
SOLIDS AND SEMICONDUCTOR DEVICES - IV
Presentation transcript:

Digital Electronics

Logic gates AND gate OR gate NOT gate XOR gate NAND gate NOR gate XNOR gate Dr Khayyat

INTRODUCTION Logic Gates are circuits made up of transistors, diodes, and resistors. Logic gates process one or more input signals in a logical fashion. Depending on the input value or voltage, the logic gate will either output a value of '1' for ON or a value of '0' for OFF. Dr Khayyat

When the Light is ON the output value is '1'. DIGITAL CIRCUITS Logic Gates are digital circuits. All digital circuits are either ON or OFF. A light switch in your house can be used as an example of a digital circuit. The light is either ON or OFF depending on the switch position. When the Light is ON the output value is '1'. When the Light is OFF the output value is '0'. The inputs are the position of the light switch. The switch is placed either in the ON or OFF position to activate the Light. Dr Khayyat

Digital signals Dr Khayyat

There are seven basic logic gates: AND, OR, XOR, NOT, NAND, NOR, and XNOR. Dr Khayyat

AND gate The AND gate is so named because, if 0 is called "false" and 1 is called "true," the gate acts in the same way as the logical "and" operator. The output is "true" when both inputs are "true." Otherwise, the output is "false." Dr Khayyat

AND (symbol & truth table) INPUT 1 A INPUT 2 B OUTPUT Y 1 A.B = Y Dr Khayyat

A B A.B

'AND' gates are like two or more switches in series 'AND' gates are like two or more switches in series. All the switches have to be closed ( 'ON' or a value of '1') in order to make the lamp (output C) turn on. Dr Khayyat

Dr Khayyat

OR gate The OR gate gets its name from the fact that it behaves after the fashion of the logical inclusive "or." The output is "true" if either or both of the inputs are "true." If both inputs are "false," then the output is "false." Dr Khayyat

OR (symbol & truth table) INPUT 1 A INPUT 2 B OUTPUT Y 1 A+B = Y Dr Khayyat

An 'OR' gate is like two or more switches in parallel An 'OR' gate is like two or more switches in parallel. Only one switch needs to be closed ('ON' or a value of '1') in order to make the lamp (output C) turn 'ON' with a value of '1'. Dr Khayyat

What is AND & OR? Dr Khayyat

AND To the right is the equivalent AND gate. We use the same logic levels, but the diodes are reversed and the resistor is set to pull the output voltage up to a logic 1 state. For this example, +V = +5 volts, although other voltages can just as easily be used. Now, if both inputs are unconnected or if they are both at logic 1, output Z will be at logic 1. If either input is grounded (logic 0), that diode will conduct and will pull the output down to logic 0 as well. Both inputs must be logic 1 in order for the output to be logic 1, so this circuit performs the logical AND function. Dr Khayyat

OR To the left you see a basic Diode Logic OR gate. We'll assume that a logic 1 is represented by +5 volts, and a logic 0 is represented by ground, or zero volts. In this figure, if both inputs are left unconnected or are both at logic 0, output Z will also be held at zero volts by the resistor, and will thus be a logic 0 as well. However, if either input is raised to +5 volts, its diode will become forward biased and will therefore conduct. This in turn will force the output up to logic 1. If both inputs are logic 1, the output will still be logic 1. Hence, this gate correctly performs a logical OR function. Dr Khayyat

In both of these gates, we have made the assumption that the diodes do not introduce any errors or losses into the circuit. This is not really the case; a silicon diode will experience a forward voltage drop of about 0.65v to 0.7v while conducting. But we can get around this very nicely by specifying that any voltage above +3.5 volts shall be logic 1, and any voltage below +1.5 volts shall be logic 0. It is illegal in this system for an output voltage to be between +1.5 and +3.5 volts; this is the undefined voltage region. Dr Khayyat

Typical Voltage Assignment Binary 1: Any voltage between 2V to 5V Binary 0: Any voltage between 0V to 0.8V Not used: Voltage between 0.8V to 2V, this may cause error in a digital circuit. Dr Khayyat

Inverter or NOT gate A logical inverter, sometimes called a NOT gate to differentiate it from other types of electronic inverter devices, has only one input. It reverses the logic state. Dr Khayyat

NOT (symbol & truth table) INPUT A OUTPUT Y 1 Dr Khayyat

Dr Khayyat

XOR gate The XOR (exclusive-OR) gate acts in the same way as the logical "either/or." The output is "true" if either, but not both, of the inputs are "true." The output is "false" if both inputs are "false" or if both inputs are "true." Another way of looking at this circuit is to observe that the output is 1 if the inputs are different, but 0 if the inputs are the same. Dr Khayyat

XOR (symbol & truth table) INPUT 1 A INPUT 2 B OUTPUT Y 1 Dr Khayyat

A B Y Dr Khayyat

NAND gate The NAND gate operates as an AND gate followed by a NOT gate. It acts in the manner of the logical operation "and" followed by negation. The output is "false" if both inputs are "true." Otherwise, the output is "true." Dr Khayyat

NAND (symbol & truth table) INPUT 1 A INPUT 2 B OUTPUT Y 1 Dr Khayyat

NOR gate The NOR gate is a combination OR gate followed by an inverter. Its output is "true" if both inputs are "false." Otherwise, the output is "false." Dr Khayyat

NOR (symbol & truth table) INPUT 1 A INPUT 2 B OUTPUT Y 1 Dr Khayyat

XNOR gate The XNOR (exclusive-NOR) gate is a combination XOR gate followed by an inverter. Its output is "true" if the inputs are the same, and "false" if the inputs are different. Dr Khayyat

XNOR (symbol & truth table) INPUT 1 A INPUT 2 B OUTPUT Y 1 Dr Khayyat

Detailed Truth Table of XOR & XNOR 1

Combinations of logic gates Logic gates can be combined to produce more complex functions. Dr Khayyat

D = NOT (A OR B) E = B AND C Q = D OR E = (NOT (A OR B)) OR (B AND C) Dr Khayyat

Integrated Circuits (IC) 7400 - NAND (four gates per chip) 7402 - NOR (four gates per chip) 7404 - NOT (six gates per chip) 7408 - AND (four gates per chip) 7432 - OR (four gates per chip) 7486 - XOR (four gates per chip) Dr Khayyat

Inside an IC Dr Khayyat

The rules of Boolean Algebra AND Operations (·) 0·0 = 0, A·0 = 0, 1·0 = 0, A·1 = A, 0·1 = 0, A·A = A, 1·1 = 1, A·A' = 0 OR Operations (+) 0+0 = 0, A+0 = A, 1+0 = 1, A+1 = 1, 0+1 = 1 A+A = A, 1+1 = 1, A+A' = 1 NOT Operations (') 0' = 1, A'' = A, 1' = 0 Dr Khayyat

القلابات أكثر الدوائر شيوعا في عمليات العد و التخزين هي دوائر القلابات و التي لها حالتا تشغيل مستقرتان تقابل هاتان الحالتان المستويين النطقيين 0 &1 هناك عدد من القلابات مثل: RS flip-flop JK flip-flop D flip-flop Dr Khayyat

SR Flip Flop Q` Q Dr Khayyat

يكون القلاب في حالة ضبط عندما يكون و يكون في حالة اعادة ضبط عندما يكون قلاب له خطا دخل هما الخط و الخط و خطا خرج هما الخرج العادي و خرج المتمم يكون القلاب في حالة ضبط عندما يكون و يكون في حالة اعادة ضبط عندما يكون تنفذ دوائر القلاب باستخدام دوائر أو باستخدام دوائر S RS R Q` Q Q=1, Q`=0 SET Q=0, Q`=1 RESET NAND NOR RS Dr Khayyat

An SR Flip Flop is an arrangements of logic gates that maintains a stable output even after the inputs are turned off.  This simple flip flop circuit has a set input (S) and a reset input (R). The set input causes the output of 0 (top output) and 1 (bottom output).  The reset input causes the opposite to happen (top = 1, bottom =0).  Once the outputs are established, the wiring of the circuit is maintained until S or R go high, or power is turned of to the circuit. Dr Khayyat

Truth table of the RS flip-flop Q Q` حالة 1 تخزين ضبط اعادة ضبط غير مضبوطة Dr Khayyat

بعض قوانين المنطق Dr Khayyat

Dr Khayyat

DeMorgan's Theorem (x+y)' = x' * y' (x*y)' = x' + y' Dr Khayyat

Implications of DeMorgan's Theorem (x+y)' = x' * y' Dr Khayyat

(x*y)' = x' + y'                                                                                Dr Khayyat

Implementing Circuits From Boolean Expression Dr Khayyat

What function is implemented by the circuit shown x'y'+z (x'+y')z x'y'z x'+y'+z NA Dr Khayyat

What function is implemented by the circuit shown x+y+z x+y+z' x'y'z x'+y'+z' NA Dr Khayyat

What function is implemented by the circuit shown xz'+y xz+y x'z+y' x'y'+y'z' x'y'+y'z Dr Khayyat

Which gate is the following circuit equivalent to Which gate is the following circuit equivalent to? AND OR NAND NOR None of the above Dr Khayyat

The function in the following circuit is: abcd ab+cd (a+b)(c+d) a+b+c+d (a'+b')(c'+d') Dr Khayyat

Which of the following functions equals the function: f=x+yz' Which of the following functions equals the function: f=x+yz' ? x(y'+z) x(y'+z) (y+x)(z'+x) (y+x')(x'+z') NA Dr Khayyat

Given F=A'B+(C'+E)(D+F'), use de Morgan's theorem to find F' Given F=A'B+(C'+E)(D+F'), use de Morgan's theorem to find F'. ACE'+BCE'+D'F (A+B')(CE'D'F) A+B+CE'D'F ACE'+AD'F+B'CE'+B'D'F NA Dr Khayyat

The function in the following circuit is: x'+y'+z' x+y+z x'z'+y'z' xy+z z Dr Khayyat

Try Harder Simplify the following: {[(AB)'C]'D}' (A'+B')C+D' (A+B')C'+D' A'+(B'+C')D A'+B'+C'+D' A+B+C+D Dr Khayyat

Thank you, and hoping that you’ve enjoyed the course, as I very much liked delivering it! mmok2@cam.ac.uk