Introduction to Electrical & Electronic Engineering ENGG1203

Similar documents
Combinational Logic. Precedence. Quick Quiz 25/9/12. Schematics à Boolean Expression. 3 Representations of Logic Functions. Dr. Hayden So.

Overview of Today s Lecture:

CS12N: The Coming Revolution in Computer Architecture Laboratory 2 Preparation

Boolean algebra.

Control with binary code. William Sandqvist

Boolean Algebra. Boolean Algebra

Fast Boolean Algebra

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-2700: Digital Logic Design Fall Notes - Unit 1

ELECTRICAL AND COMPUTER ENGINEERING DEPARTMENT, OAKLAND UNIVERSITY ECE-378: Computer Hardware Design Winter Notes - Unit 1

Introduction to Algebra - Part 2

Lecture 08: Feb. 08, 2019

Coalgebra, Lecture 15: Equations for Deterministic Automata

expression simply by forming an OR of the ANDs of all input variables for which the output is

Chapters Five Notes SN AA U1C5

Lecture Solution of a System of Linear Equation

I1 = I2 I1 = I2 + I3 I1 + I2 = I3 + I4 I 3

How do we solve these things, especially when they get complicated? How do we know when a system has a solution, and when is it unique?

Unit 4. Combinational Circuits

Lecture 3. In this lecture, we will discuss algorithms for solving systems of linear equations.

First Midterm Examination

Signal Flow Graphs. Consider a complex 3-port microwave network, constructed of 5 simpler microwave devices:

Fachgebiet Rechnersysteme1. 1. Boolean Algebra. 1. Boolean Algebra. Verification Technology. Content. 1.1 Boolean algebra basics (recap)

Parse trees, ambiguity, and Chomsky normal form

DATABASE DESIGN I - 1DL300

CS 373, Spring Solutions to Mock midterm 1 (Based on first midterm in CS 273, Fall 2008.)

M344 - ADVANCED ENGINEERING MATHEMATICS

Learning Goals. Relational Query Languages. Formal Relational Query Languages. Formal Query Languages: Relational Algebra and Relational Calculus

EECS 141 Due 04/19/02, 5pm, in 558 Cory

CS 330 Formal Methods and Models Dana Richards, George Mason University, Spring 2016 Quiz Solutions

Linear Inequalities. Work Sheet 1

CS 330 Formal Methods and Models

Designing Information Devices and Systems I Discussion 8B

Reasoning and programming. Lecture 5: Invariants and Logic. Boolean expressions. Reasoning. Examples

CS 330 Formal Methods and Models

BİL 354 Veritabanı Sistemleri. Relational Algebra (İlişkisel Cebir)

Lecture 7 notes Nodal Analysis

Lecture 6. Notes. Notes. Notes. Representations Z A B and A B R. BTE Electronics Fundamentals August Bern University of Applied Sciences

Chapter 1: Logarithmic functions and indices

Lecture 2e Orthogonal Complement (pages )

Bridging the gap: GCSE AS Level

Bases for Vector Spaces

Chapter E - Problems

Operations with Matrices

Administrative Notes. Chapter 2 <9>

Homework 3 Solutions

Lecture 3. Introduction digital logic. Notes. Notes. Notes. Representations. February Bern University of Applied Sciences.

2. VECTORS AND MATRICES IN 3 DIMENSIONS

8 factors of x. For our second example, let s raise a power to a power:

2.4 Linear Inequalities and Interval Notation

Minimal DFA. minimal DFA for L starting from any other

CS 310 (sec 20) - Winter Final Exam (solutions) SOLUTIONS

Boolean Algebra. Boolean Algebras

How do we solve these things, especially when they get complicated? How do we know when a system has a solution, and when is it unique?

Things to Memorize: A Partial List. January 27, 2017

Computer Organization I. Lecture 13: Design of Combinational Logic Circuits

Note 12. Introduction to Digital Control Systems

1 2 : 4 5. Why Digital Systems? Lesson 1: Introduction to Digital Logic Design. Numbering systems. Sample Problems 1 5 min. Lesson 1-b: Logic Gates

CS 301. Lecture 04 Regular Expressions. Stephen Checkoway. January 29, 2018

EEE130 Digital Electronics I Lecture #4

Homework Solution - Set 5 Due: Friday 10/03/08

Preview 11/1/2017. Greedy Algorithms. Coin Change. Coin Change. Coin Change. Coin Change. Greedy algorithms. Greedy Algorithms

378 Relations Solutions for Chapter 16. Section 16.1 Exercises. 3. Let A = {0,1,2,3,4,5}. Write out the relation R that expresses on A.

LINEAR ALGEBRA APPLIED

Elements of Computing Systems, Nisan & Schocken, MIT Press. Boolean Logic

Digital Control of Electric Drives

Calculus Module C21. Areas by Integration. Copyright This publication The Northern Alberta Institute of Technology All Rights Reserved.

DATABASTEKNIK - 1DL116

Lecture 3: Curves in Calculus. Table of contents

Genetic Programming. Outline. Evolutionary Strategies. Evolutionary strategies Genetic programming Summary

Chapter 2: Combinational Logic Design. Instructor: Dr. Hyunyoung Lee. Based on the slides by Frank Vahid

Digital Logic Design ABC. Representing Logic Operations. Dr. Kenneth Wong. Determining output level from a diagram. Laws of Boolean Algebra

Mathematics Number: Logarithms

USA Mathematical Talent Search Round 1 Solutions Year 21 Academic Year

Convert the NFA into DFA

Intermediate Math Circles Wednesday, November 14, 2018 Finite Automata II. Nickolas Rollick a b b. a b 4

SUMMER KNOWHOW STUDY AND LEARNING CENTRE

Math 017. Materials With Exercises

Designing Information Devices and Systems I Spring 2018 Homework 8

September 13 Homework Solutions

Here we study square linear systems and properties of their coefficient matrices as they relate to the solution set of the linear system.

Lecture 3. Limits of Functions and Continuity

1 From NFA to regular expression

Good Review book ( ) ( ) ( )

First Midterm Examination

Lesson 1: Quadratic Equations

Logarithms. Logarithm is another word for an index or power. POWER. 2 is the power to which the base 10 must be raised to give 100.

Fault Modeling. EE5375 ADD II Prof. MacDonald

1B40 Practical Skills

10.2 The Ellipse and the Hyperbola

State space systems analysis (continued) Stability. A. Definitions A system is said to be Asymptotically Stable (AS) when it satisfies

1 ELEMENTARY ALGEBRA and GEOMETRY READINESS DIAGNOSTIC TEST PRACTICE

Designing Information Devices and Systems I Spring 2018 Homework 7

MATHEMATICS AND STATISTICS 1.2

4 VECTORS. 4.0 Introduction. Objectives. Activity 1

CHAPTER 1 PROGRAM OF MATRICES

T 1 T 2 T 3 T 4 They may be illustrated by triangular patterns of numbers (hence their name) as shown:

Section 4: Integration ECO4112F 2011

INF1383 -Bancos de Dados

Simplifying Algebra. Simplifying Algebra. Curriculum Ready.

Lecture 2 : Propositions DRAFT

Transcription:

Introduction to Electricl & Electronic Engineering ENGG23 2 nd Semester, 27-8 Dr. Hden Kwok-H So Deprtment of Electricl nd Electronic Engineering Astrction DIGITAL LOGIC 2 Digitl Astrction n Astrct ll signls s TWO discrete vlues Usull denoted TRUE, FALSE, high, low,, We use TRUE, high, snonmousl n The vlue TRUE does not necessril correspond to high phsicl voltge We cn define TRUE nw we wnt s long s it does not overlp with tht of FALSE More in lter lectures n An exmple of strcting low-level detils using well-defined interfce Digitl Astrction - Benefits n Allows es logic mnipultion in the sstem n Binr sstem cn e effectivel nlzed with lger Provides mthemticl sis for modeling the ehvior of the sstem n Fcilitte es uilding of lrge sstem using hierrch n Isolte ll low level detils of electricl signl so engineers cn focus on high-level sstem design issues. E.g. How to count to 3? Wht is the est w to perform smile detection? 3 4

The Primitives Logic Gtes n Logic Gtes: Bsic opertions on inr digitl signls n A simple gte tkes or 2 digitl input nd output single output Complex gtes m tke > 2 inputs, output n Common gtes: NOT, AND, OR sic opertors NAND, NOR, XOR, XNOR comintion AND Gte = expression n The output of n AND gte is HIGH onl when ll inputs re HIGH. n The AND opertion is performed similr to n ordinr multipliction in liner lger Assuming vlues cn e onl of s nd s. Nottion in expression is lso the sme 5 6 OR Gte = + NOT Gte = expression n The output of n OR gte is HIGH if nd onl if one or more inputs re HIGH n The onl cse when the output is LOW is when ll inputs re LOW n nottion is + n NOTE tht it is somewht different from humn s norml lnguge of or John will either go to ed or go to ookstore n The output of NOT gte is lws the complement (opposite) of the input. n Tkes one input nd output its complement è, è n The r nottion in expression denotes NOT opertion 7 8

Other Simple Gtes n All logic functions, no mtter how complex, cn e completel expressed using the 3 sic opertions AND, OR, NOT. NAND, NOR = n However, mn sstems utilize more thn just the 3 sic logic gtes ecuse it mkes the design clener nd esier to understnd (for humn). ule = not = + n The complement of AND nd OR gte n Note the ule equivlent to NOT gte 9 XOR Gte = n The output of n XOR gte is HIGH if nd onl if exctl one input is HIGH n Similr to norml OR gte except in the cse when oth inputs re HIGH Quick Quiz AND OR XOR NAND NOR XNOR 2

the lser is turned on onl fter 3 lls hve pssed through the tunnel AND to cr hs reched the ottom of rmp the lser is turned on onl fter 3 lls hve pssed through the tunnel AND to cr hs reched the ottom of rmp Cr t Rmp Cr t Rmp Bll Rolls Pst Sensor Process 3 times? Output Turns on Lser Bll Rolls Pst Sensor Process 3 times? Output Turns on Lser A sstem tht output TRUE when oth inputs re TRUE A sstem tht output TRUE when oth inputs re TRUE: AND gte 3 4 the lser is turned on onl fter 3 lls hve pssed through the tunnel OR to cr hs reched the ottom of rmp the lser is turned on onl fter 3 lls hve pssed through the tunnel AND to cr hs reched the ottom of rmp ut NOT when the moon is round AND right Cr t Rmp Cr t Rmp Bll Rolls Pst Sensor Process 3 times? Output Turns on Lser Bll Rolls Pst Sensor Process 3 times? Output Turns on Lser A sstem tht output TRUE when either one of the inputs is TRUE: OR gte moon is round moon is right 5 6

Comintionl Functions n Lrge, complex functions cn e composed using simpler functions n A function is comintionl if ll of the following conditions re met: All enclosing functions re comintionl There is no loop in the connection of function is connected onl to ONE output of nother function n A simple logic gte is comintionl Quick Quiz n Which of the following is comintionl function? 2 c 3 4 CL CL 7 8 3 Representtions of Logic Functions n Recll tht n complex logic function cn e expressed in 3 ws:,, n Onl representtion is unique n We cn convert representtion from one form to the other to 9 2

to Exmple 2 n Strightforwrd conversion: lel ll inputs 2 repet until ll nodes leled: 3 forll gtes G with ll input leled: 4 compute nd lel output of G n Exmple: Determine the expression of the following circuit: A B C AB AB + C n Determine the expression of the following circuit: A B A B A A + B A + B A + B Note the r is over the entire expression 2 22 Exmple 3 n Determine the expression of the following circuit: A B A + B C A + (A + B)C BC Precedence n Determines the order of evlution of expression n Order: Opertion Precedence ( ) Highest NOT AND OR Lowest The order of opertion must e preserved. n A r over n expression cn e viewed s one with (), therefore, () tke precedence n E.g. + = ( + ) ( + ) first, then inverse 23 24

Quick Quiz n Wht is the output expression of the following logic-circuit digrm? to 2 3 4 x = ABC ( A + D) x= ABCD x = ABC ( A + D) x= ABCD 25 26 to n Exmple: drw the circuit for = AC + BC + ABC n Done in two steps to 27 28

à n List ll comintions tht give t output n Ech row contriutes to minterm n Sum up ll terms n Sum of products (SOP) to ABC ABC x = ABC + ABC + ABC ABC Schemti 29 cs 3 x = ABC + ABC + A B C X ABC 3 n Convert into stndrd cnonicl SOP form n put in ech row tht corresponds to the minterm to (nd vice vers) through We lerned how to convert representtion from one form to the other 32

n Otin expression from the circuit (in SOP form) nd write the truth tle = AC + BC + ABC AC = ABC + ABC BC = ABC + ABC A B C Cnonicl Form n expression cn e expressed in mn different ws (A + D)(B + C) AB + AC + BD + CD n Two stndrd ws of orgnizing the terms: Sum of Product (SOP) Product of Sum (POS) n A cnonicl form puts rules to llows unique representtion of expression E.g. sort the minterms ccording to order of input signl (write AB, not BA) 33 Schemti 34 cs Cnonicl SOP n expression expressed s sum of product of sic inputs Bsic input m optionll negted Cnonicl POS n expression expressed s product of sum of sic inputs Bsic input m optionll negted AB C + BD + AD (A + B + C)(B + D )(A + D) n E.g. Product A + B(C + D) No prentheses n Ver nturl for humn Sum is not NOT cnonicl: Product Sum n E.g. This is not in cnonicl POS form: A + B(C + D) n Not too nturl for humn, ut equll good for computers. Schemti 35 cs Schemti 36 cs

n n SOP or POS? SOP S = ABC+ ABC Wht out? 2 3 4 ABC + ABC A+ ( B+ C)( B+ C) ( A+ B+ C) ( A+ B+ C) ( A+ B+ C) ( A+ B+ C) A B C S A B C S Hierrch n The grouping of circuit components into sucircuit forms design hierrch Implementtion detils of su-lock is strcted w from the enclosing lock n Ech lock m correspond to suexpression in the expression n Common su-expression m e grouped s function The rguments to function re the inputs The return vlue is the output 37 38 Exmple Forming Hierrch c d = ( + c)(c + d) c F BOOLEAN ALGEBRA d F = F(,,c) F(c,, d) 39 4

Axioms of Alger n The Dul of the Axiom Axiom Tle from DDCA p.57 Replce with +, replce with, nd the xiom still holds true 4 Theorems of one vrile n If oth sides of the eqution results in the sme TT, the must e the sme. 42 Theorems of multiple vriles Prove either vi lgeric mnipultions, or to use 43 B C BC B+BC To Prove: T9 B + BC = B 44

Exmple n Simplif the following expression: = BAD + DAB = ABD + ABD = AB( D + D) = AB = AB n More exmples in the tutoril Originl: 3 inputs, 2 AND gtes, 2 NOT gtes, OR gte Simplified: 2 inputs, AND gte, not gte Quick Quiz n Simplif the following expression: 2 3 4 AB A AB B z = ( A + B) ( A + B) z = AA + AB + BA + BB = + AB + BA + B = AB + BA + B = BA ( + A+ ) = B = B 45 46 DeMorgn s Theorems n Theorem Inversion of Sum = Product of Inversion n Theorem 2 x+ = x x = x+ Inversion of Product = Sum of Inversion n Brek the r, chnge the opertor n It llows ANDs to e exchnged with ORs using invertors Quick Quiz n Simplif AC + 2 3 4 AC AC n Simplif AC 2 AC 3 AC 4 AC BC + BC + BC AC + BC + BD + BD + BD + BD ( AB + C) ( A+ C) ( B+ D) 47 48

Bule Pushing in x+ = x DeMorgn s Theorem llows us to push ules cross gtes to eliminte unnecessr inversions x = x+ And in conclusion n All electronic/electricl sstems cn e divided into three min su-sstems: input, process, output n Digitl Logic is powerful strction ler for uilding lrge sstems Onl 2 vlues: TRUE nd FALSE Opertes with logic n Logic gtes re primitives of of the digitl logic strction n, nd re 3 different ws to represent the sme functionlit Conversion etween the 3 is reltivel stright-forwrd TT is the onl representtion tht is unique Fll Spring 24 28 49 5