Digital Electronics H H

Similar documents
Computer Organization: Boolean Logic

CSC9R6 Computer Design. Practical Digital Logic

Boolean algebra. Examples of these individual laws of Boolean, rules and theorems for Boolean algebra are given in the following table.

Number System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary

Unit 8A Computer Organization. Boolean Logic and Gates

Computer organization

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

Floating Point Representation and Digital Logic. Lecture 11 CS301

Combinational Logic. By : Ali Mustafa

Sample Test Paper - I

Lecture 22 Chapters 3 Logic Circuits Part 1

Digital Logic. Lecture 5 - Chapter 2. Outline. Other Logic Gates and their uses. Other Logic Operations. CS 2420 Husain Gholoom - lecturer Page 1

Unit II Chapter 4:- Digital Logic Contents 4.1 Introduction... 4

Boolean Algebra & Logic Gates. By : Ali Mustafa

Digital Logic (2) Boolean Algebra

Digital Logic. CS211 Computer Architecture. l Topics. l Transistors (Design & Types) l Logic Gates. l Combinational Circuits.

EE40 Lec 15. Logic Synthesis and Sequential Logic Circuits

Additional Gates COE 202. Digital Logic Design. Dr. Muhamed Mudawar King Fahd University of Petroleum and Minerals

Chapter 7 Logic Circuits

Chapter 2: Switching Algebra and Logic Circuits

of Digital Electronics

Chapter 5. Digital systems. 5.1 Boolean algebra Negation, conjunction and disjunction

Every time has a value associated with it, not just some times. A variable can take on any value within a range

Chapter 2 Combinational Logic Circuits

Gates and Logic: From switches to Transistors, Logic Gates and Logic Circuits

CHAPTER1: Digital Logic Circuits Combination Circuits

Chapter 3 Combinational Logic Design

Numbers & Arithmetic. Hakim Weatherspoon CS 3410, Spring 2012 Computer Science Cornell University. See: P&H Chapter , 3.2, C.5 C.

Boolean Algebra, Gates and Circuits

LOGIC GATES. Basic Experiment and Design of Electronics. Ho Kyung Kim, Ph.D.

WORKBOOK. Try Yourself Questions. Electrical Engineering Digital Electronics. Detailed Explanations of

Chapter 2 Combinational Logic Circuits

Systems I: Computer Organization and Architecture

ECE 545 Digital System Design with VHDL Lecture 1. Digital Logic Refresher Part A Combinational Logic Building Blocks

Synchronous Sequential Logic

Lecture 2 Review on Digital Logic (Part 1)

XOR - XNOR Gates. The graphic symbol and truth table of XOR gate is shown in the figure.

Boolean Algebra. Philipp Koehn. 9 September 2016

Chap 2. Combinational Logic Circuits

Implementation of Boolean Logic by Digital Circuits

CS61c: Representations of Combinational Logic Circuits

Review: Additional Boolean operations

EGC221: Digital Logic Lab

ECE 342 Electronic Circuits. Lecture 34 CMOS Logic

Lecture 7: Logic design. Combinational logic circuits

EEE130 Digital Electronics I Lecture #4

Gates and Logic: From Transistors to Logic Gates and Logic Circuits

Chapter 2 Boolean Algebra and Logic Gates

Logic Gate Level. Part 2

CS/COE0447: Computer Organization and Assembly Language

1 Boolean Algebra Simplification

Chapter 1: Logic systems

University of Florida EEL 3701 Fall 2014 Dr. Eric. M. Schwartz Department of Electrical & Computer Engineering Wednesday, 15 October 2014

Vidyalankar S.E. Sem. III [CMPN] Digital Logic Design and Analysis Prelim Question Paper Solution

10/14/2009. Reading: Hambley Chapters

CHAPTER 7. Exercises 17/ / /2 2 0

ELCT201: DIGITAL LOGIC DESIGN

Computer Science 324 Computer Architecture Mount Holyoke College Fall Topic Notes: Digital Logic

S.Y. Diploma : Sem. III [DE/ED/EI/EJ/EN/ET/EV/EX/IC/IE/IS/IU/MU] Principles of Digital Techniques

ENGG 1203 Tutorial - 2 Recall Lab 2 - e.g. 4 input XOR. Parity checking (for interest) Recall : Simplification methods. Recall : Time Delay

EC-121 Digital Logic Design

Gates and Flip-Flops

Cs302 Quiz for MID TERM Exam Solved

Karnaugh Maps (K-Maps)

E40M. Binary Numbers. M. Horowitz, J. Plummer, R. Howe 1

UC Berkeley College of Engineering, EECS Department CS61C: Representations of Combinational Logic Circuits

COSC 243. Introduction to Logic And Combinatorial Logic. Lecture 4 - Introduction to Logic and Combinatorial Logic. COSC 243 (Computer Architecture)

Department of Electrical & Electronics EE-333 DIGITAL SYSTEMS

MC9211 Computer Organization

Lab 3 Revisited. Zener diodes IAP 2008 Lecture 4 1

Numbers and Arithmetic

Hakim Weatherspoon CS 3410 Computer Science Cornell University

Learning Objectives 10/7/2010. CE 411 Digital System Design. Fundamental of Logic Design. Review the basic concepts of logic circuits. Dr.

UNIVERSITI TENAGA NASIONAL. College of Information Technology

Combinational Logic. Review of Combinational Logic 1

CHAPTER 7. Solutions for Exercises

211: Computer Architecture Summer 2016

SUMMER 18 EXAMINATION Subject Name: Principles of Digital Techniques Model Answer Subject Code:

Chapter 2: Boolean Algebra and Logic Gates

ENG2410 Digital Design Combinational Logic Circuits

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

2009 Spring CS211 Digital Systems & Lab CHAPTER 2: INTRODUCTION TO LOGIC CIRCUITS

Switches: basic element of physical implementations

EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits)

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

Part 1: Digital Logic and Gates. Analog vs. Digital waveforms. The digital advantage. In real life...

Z = F(X) Combinational circuit. A combinational circuit can be specified either by a truth table. Truth Table

ECE 545 Digital System Design with VHDL Lecture 1A. Digital Logic Refresher Part A Combinational Logic Building Blocks

Logic Design. Chapter 2: Introduction to Logic Circuits

Boolean Logic Continued Prof. James L. Frankel Harvard University

MODULAR CIRCUITS CHAPTER 7

Logic and Boolean algebra

Boolean Algebra and logic gates

Outline. EECS150 - Digital Design Lecture 4 - Boolean Algebra I (Representations of Combinational Logic Circuits) Combinational Logic (CL) Defined

EECS Variable Logic Functions

ECE/CS 250: Computer Architecture. Basics of Logic Design: Boolean Algebra, Logic Gates. Benjamin Lee

BOOLEAN ALGEBRA. Introduction. 1854: Logical algebra was published by George Boole known today as Boolean Algebra

University of Minnesota Department of Electrical and Computer Engineering

II. COMBINATIONAL LOGIC DESIGN. - algebra defined on a set of 2 elements, {0, 1}, with binary operators multiply (AND), add (OR), and invert (NOT):

Fundamentals of Digital Design

Transcription:

Electronics In digital circuits only two values of Vin or Vout are considered, Low (L) or High (H). The two values correspond to the logical states True (T) or False (F). CMOS AND circuit (L)ow voltage = VSS (H)igh voltage = VDD A B Y L L L L H L H L L H H H Typ. CMOS output stage If Vin=5V: VGS=, FET off VGS2=5V, FET2 on Vout = V If Vin=V: VGS=-5V, FET on VGS2=V, FET2 off Vout = 5V ECL OR circuit A B Y L L L L H H H L H H H H Y=H if A=H or B=H Standard convention is that L=FALSE= and H=TRUE= respectively. Logically the above circuits function as logical AND and OR gates respectively.

Combinational Logic Gates OR Gate AND Gate A B Y A B Y F F F F F F T F T T F F F T T F T F T T T T T T Some Boolean Identities A+B+C = (A+B)+C = A+(B+C) ABC = (AB)C = A(BC) A+B = B+A AB = BA A+A = A AA = A A+T = T AT = A A+F = A AF = F A(B+C) = AB + AC The first identity indicates how a logic gate having more than two inputs should behave, eg: 2

NOT or INVERT Gate Truth Table Boolean Identities A Y F T T F A =A A A=T A A=F A A B= A B Additional gates formed by combining NOT with AND and OR NAND NOR A B Y A B Y F F T F F T T F T T F F F T T F T F T T F T T F De Morgan's Theorem If we had identified L voltage with TRUE and H with FALSE, then the NAND and NOR circuits would actually have implemented the OR and AND functions respectively. Interchanging the assignments L=F, H=T to L=T, H=F is equivalent to applying the logical complement to all entries of a truth table... Note: a circle indicates inversion of a logic level 3

Implementing Logic Equations with Gates Take the assignment between voltage levels and logic quantities to be: L = F =, H = T = Then De Morgan's theorem will be used to treat signals that are active low. General problem: Given a truth table, find some combination of logic gates that satisfy the table. The first step is to find a set of logic equations to solve the truth table. There are two ways to do this: () by inspection, a.k.a. 'divine intuition', (2) by Karnaugh Map. Then algebraic manipulation can be used to reduce the expression. Example: XOR (exclusive OR) gate A B Y By inspection of the table and using De Morgan's theorem Y = A B A B = A B A B = A A B B A B A B K-Map: Y = A B A B Two implementations using NAND gates Y = A B A B Using De Morgan's Laws: Another solution using only 4 gates: Y = A B A B = A B A B = A A B B A B Y = A B A B Y = A B A B = A A B B A B Note: all logic functions can be built up from NAND gates alone (or from NOR gates). 4

Top solution is 5 layers deep, bottom only uses 3 layers of logic. Thus bottom circuit is faster, because fewer propagation delays are encountered. 5

6

Open collector and Tri-State outputs In addition to LOW and HIGH output voltage levels, some gates have a third, High-Z, output state. This allows many outputs to be connected together on a single wire (or bus). Two varieties re commonly used: ) Open Collector Q= A G B G 2 C G 3 Disadvantages: ) not an active pull-up trise~rpc 2) inverted logic must be used 2) Tri-State When both FETs are off (G=) output is in High-Z state 7

LSB MSB 8

9

2

3

4

Multiplexers and Decoders 4-to- multiplexer (fan-in) Abbreviated symbol Address A[:] selects output from D[3:] A A Q D D D2 D3 2-to-4 decoder (fan-out) A A Q Q Q2 Q3 Address A[:] clears one bit from Q[3:] Both can be used to implement arbitrary functions of two boolean variables (bits) Often these devices have enable inputs for tristate outputs. 5

6

Karnaugh Maps The Karnaugh map or K-map offers a convenient way to visualize logic equations from a truth table. Consider the following logic problem: We have a chocolate-covered coffee bean machine, that returns a bean for a 2 cent fee. The machine accepts only quarters and dimes. To make matters simple, we'll ignore the job of making change. To enter the fee, assume the machine has a drawer w/ three depressions, one for a quarter and two for dimes (like many coin-op washing machines). Obviously, a single quarter or two dimes will satisfy the fee requirement to get a bean. The truth table (for all possible input combinations) is: Q D D2 bean K-map for bean machine: (note: grey code must used in all row/ columns) Q \ D D 2 =D D 2 Therefore: bean=q D D 2 7 =Q

A slightly more detailed example. Now we have a vending machine that takes up to 6 coins (2Q, 2D, 2N). Candy may be returned if at least 4 cents is input, gum may be returned if at least 3 cents is input. Let's look at the Kmap for candy: candy=q Q2 Q Q2 D D2 Q Q2 D D2 N N2 8

More K-Map Examples: Soultion : Y = A B C C D A B C A B Alternate solution (choose large region and remove hole ) Y = A B C D A B C C A B Can also group 's and invert to get solution: Y =C A Grouping largest possible regions always simplifies the problem 9

2

2

R S 22

23

24

25

26

27

28

29

3

3

32

33

34

35

36

We can think of a state machine as somewhat like counter with 2^n possible values, but state machine can progress in a more general way (not limitied to monotonic progressions). Example: washing machine First detailed example: 2-bit gray code counter Count progression is:,,,,,... These represent out states and their relative ordering. To construct this device: write a truth table for input/outputs: inputs=current stare info, outputs = next state info. Devise necessary logic from the T Table to generate D's from Q's: D=Q Q Q Q=Q Q Q =Q D=Q Q Q Q=Q Q Q =Q 37

38

39

4

4

42

43

44

45

46

47

48

49

5

5

52

53

54

55

56

57