Design of Digital Circuits Lab 1 Supplement: Drawing Basic Circuits

Slides:



Advertisements
Similar presentations
Boolean Algebra and Logic Gates
Advertisements

Presented by: Ms. Maria Estrellita D. Hechanova, ECE
Types of Logic Circuits
Logical Systems Synthesis.
1 Microprocessors vs. Custom Digital Circuits Why would anyone ever need to design new digital circuits? Microprocessors are readily available, inexpensive,
ECE C03 Lecture 21 Lecture 2 Two Level Minimization Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Microprocessors vs. Custom Digital Circuits
1 COMP541 Combinational Logic Montek Singh Jan 16, 2007.
Contemporary Logic Design Two-Level Logic © R.H. Katz Transparency No. 3-1 Chapter #2: Two-Level Combinational Logic Section 2.1, Logic Functions.
ENGIN112 L5: Boolean Algebra September 12, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 5 Boolean Algebra.
1 COMP541 Combinational Logic - II Montek Singh Aug 27, 2014.
Chapter 2: Boolean Algebra and Logic Functions
Boolean Algebra Computer Organization 1 © McQuain Boolean Algebra A Boolean algebra is a set B of values together with: -two binary operations,
Computer Organization
Combinational Logic 1.
Module 4.  Boolean Algebra is used to simplify the design of digital logic circuits.  The design simplification are based on: Postulates of Boolean.
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.
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
Chapter 2 Two- Level Combinational Logic. Chapter Overview Logic Functions and Switches Not, AND, OR, NAND, NOR, XOR, XNOR Gate Logic Laws and Theorems.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
Boolean Algebra and Reduction Techniques
1 Lect # 2 Boolean Algebra and Logic Gates Boolean algebra defines rules for manipulating symbolic binary logic expressions. –a symbolic binary logic expression.
Logic Circuits Lecture 3 By Amr Al-Awamry. Basic Definitions Binary Operators  AND z = x y = x yz=1 if x=1 AND y=1  OR z = x + y z=1 if x=1 OR y=1 
1 COMP541 Combinational Logic - II Montek Singh Jan 18, 2012.
R. Johnsonbaugh Discrete Mathematics 5 th edition, 2001 Chapter 9 Boolean Algebras and Combinatorial Circuits.
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI Dale Roberts, Lecturer Computer Science, IUPUI
CEC 220 Digital Circuit Design Boolean Algebra II Fri, Sept 4 CEC 220 Digital Circuit Design Slide 1 of 13.
CSE 461. Binary Logic Binary logic consists of binary variables and logical operations. Variables are designated by letters such as A, B, C, x, y, z etc.
Mu.com.lec 9. Overview Gates, latches, memories and other logic components are used to design computer systems and their subsystems Good understanding.
CHAPTER 2 Boolean algebra and Logic gates
Chapter 12. Chapter Summary Boolean Functions Representing Boolean Functions Logic Gates Minimization of Circuits (not currently included in overheads)
Boolean Algebra & Logic Gates
ECE 301 – Digital Electronics
Morgan Kaufmann Publishers
Chapter 2: Boolean Algebra and Logic Functions
COMP541 Combinational Logic - II
ECE 2110: Introduction to Digital Systems
ECE 20B, Winter 2003 Introduction to Electrical Engineering, II LECTURE NOTES #2 Instructor: Andrew B. Kahng (lecture)
Boolean Algebra & De Morgan's Theorems
Logic Gates and Boolean Algebra
CS 105 Digital Logic Design
CHAPTER 2 Boolean Algebra
CHAPTER 2 Boolean Algebra This chapter in the book includes:
Boolean Algebra.
Princess Sumaya University
CHAPTER 3 SETS AND BOOLEAN ALGEBRA
Boolean algebra Last time we talked about Boolean functions, Boolean expressions, and truth tables. Today we’ll learn how to how use Boolean algebra to.
Lecture 3: Boolean Algebra
CSE 311 Foundations of Computing I
Propositional Calculus: Boolean Algebra and Simplification
Boolean Algebra.
Boolean Algebra.
Boolean Algebra & Logic Circuits
CSE 370 – Winter Combinational Logic - 1
Functions Computers take inputs and produce outputs, just like functions in math! Mathematical functions can be expressed in two ways: We can represent.
February 7, 2002 John Wawrzynek
Boolean Algebra Introduction CSCI 240
Boolean Algebra.
COMP541 Combinational Logic - II
Chapter 2 Introduction to Logic Circuits
COMS 361 Computer Organization
Lecture 3: Boolean Algebra
ECE 352 Digital System Fundamentals
COMP541 Combinational Logic - II
Introductory Concepts
Lecture 3: Boolean Algebra
BOOLEAN ALGEBRA.
Boolean Algebra By: Asst Lec. Besma Nazar Nadhem
Laws & Rules of Boolean Algebra
Agenda Lecture Content: Combinatorial Circuits Boolean Algebras
Presentation transcript:

Design of Digital Circuits Lab 1 Supplement: Drawing Basic Circuits Prof. Onur Mutlu ETH Zurich Spring 2019 5 March 2019

What We Will Learn? In Lab 1, you will design simple combinatorial circuits. We will cover a tutorial about: Boolean Equations Logic operations with binary numbers Logic Gates Basic blocks that are interconnected to form larger units that are needed to construct a computer

Boolean Equations and Logic Gates

Simple Equations: NOT / AND / OR 𝑨 (reads “not A”) is 1 iff A is 0 𝑨 1 A 𝑨 𝑨 𝑩 𝑨 • 𝑩 1 A • B (reads “A and B”) is 1 iff A and B are both 1 A A · B B A + B (reads “A or B”) is 1 iff either A or B is 1 𝑨 𝑩 𝑨+𝑩 1 A A + B B

Boolean Algebra: Big Picture An algebra on 1’s and 0’s with AND, OR, NOT operations What you start with Axioms: basic stuff about objects and operations you just assume to be true at the start What you derive first Laws and theorems: allow you to manipulate Boolean expressions …also allow us to do some simplification on Boolean expressions What you derive later More “sophisticated” properties useful for manipulating digital designs represented in the form of Boolean equations

Common Logic Gates

Boolean Algebra: Axioms Formal version English version 1. B contains at least two elements, 0 and 1, such that 0 ≠ 1 2. Closure a,b ∈ B, (i) a + b ∈ B (ii) a • b ∈ B 3. Commutative Laws: a,b ∈ B, (i) a + b = b + a (ii) a • b = b • a 4. Identities: 0, 1 ∈ B (i) a + 0 = a (ii) a • 1 = a 5. Distributive Laws: (i) a + (b • c) = (a + b) • (a + c) (ii) a • (b + c) = a • b + a • c 6. Complement: (i) a + a' = 1 (ii) a • a' = 0 Math formality... Result of AND, OR stays in set you start with For primitive AND, OR of 2 inputs, order doesn’t matter There are identity elements for AND, OR, give you back what you started with • distributes over +, just like algebra …but + distributes over •, also (!!) There is a complement element, ANDing, ORing give you an identity

Boolean Algebra: Duality Interesting observation All the axioms come in “dual” form Anything true for an expression also true for its dual So any derivation you could make that is true, can be flipped into dual form, and it stays true Duality -- More formally A dual of a Boolean expression is derived by replacing Every AND operation with... an OR operation Every OR operation with... an AND Every constant 1 with... a constant 0 Every constant 0 with... a constant 1 But don’t change any of the literals or play with the complements! Example a • (b + c) = (a • b) + (a • c) ➙ a + (b • c) = (a + b) • (a + c)

Boolean Algebra: Useful Laws Dual Operations with 0 and 1: Idempotent Law: Involution Law: Laws of Complementarity: Commutative Law: AND, OR with identities gives you back the original variable or the identity AND, OR with self = self double complement = no complement AND, OR with complement gives you an identity Just an axiom… 1. X + 0 = X 2. X + 1 = 1 1D. X • 1 = X 2D. X • 0 = 0 3. X + X = X 3D. X • X = X ( 𝑿 ) 4. = X 𝐗 𝐗 5. X + = 1 5D. X •  = 0 6. X + Y = Y + X 6D. X • Y = Y • X

Useful Laws (cont) Associative Laws: Parenthesis order doesn’t matter 7. (X + Y) + Z = X + (Y + Z) = X + Y + Z 7D. (X • Y) • Z = X • (Y • Z) = X • Y • Z Distributive Laws: Simplification Theorems: 8. X • (Y+ Z) = (X • Y) + (X • Z) 8D. X + (Y• Z) = (X + Y) • (X + Z) Axiom 𝒀 9. X • Y + X • = X 10. X + X • Y = X 11. (X + ) • Y = X • Y 9D. (X + Y) • (X + ) = X 10D. X • (X + Y) = X 11D. (X • ) + Y = X + Y 𝒀 Useful for simplifying expressions 𝒀 𝒀 Actually worth remembering — they show up a lot in real designs…

DeMorgan’s Law Think of this as a transformation (𝑿 +𝒀+𝒁+…) = 𝑿 . 𝒀 . 𝒁 . … 12. (𝑿 . 𝒀.𝒁. …) = 𝑿 + 𝒀 + 𝒁 + … 12D. Think of this as a transformation Let’s say we have: F = A + B + C Applying DeMorgan’s Law (12), gives us: 𝑭= (𝑨+𝑩+𝑪) = ( 𝑨 . 𝑩 . 𝑪 )

DeMorgan’s Law (cont.) Interesting — these are conversions between different types of logic That’s useful given you don’t always have every type of gate X 𝑨= (𝑿+𝒀) = 𝑿 𝒀 A 𝑿 𝒀 𝑿+𝒀 𝑿 𝒀 1 Y NOR is equivalent to AND with inputs complemented X A Y X 𝑩= (𝑿𝒀) = 𝑿 + 𝒀 B X Y 𝑿𝒀 𝑿 𝒀 𝑿 + 𝒀 1 Y NAND is equivalent to OR with inputs complemented X B Y

Part 1: A Comparator Circuit Design a comparator that receives two 4-bit numbers A and B, and sets the output bit EQ to logic-1 if A and B are equal. Hints: First compare A and B bit by bit. Then combine the results of the previous steps to set EQ to logic-1 if all A and B are equal. 4 bits Comparator 1 A EQ (A=B) B 4 bits

Part 2: A More General Comparator Design a circuit that receives two 1-bit inputs A and B, and: sets its first output (O1) to 1 if A>B, sets the second output (O2) to 1 if A=B, sets the third output (O3) to 1 if A<B. O1 (A>B) Comparator 2 A O2 (A=B) B O3 (A<B)

Part 3: Circuits with Only NAND or NOR Gates Design the circuit of Part 2 using only NAND or NOR gates. Logical Completeness: The set of gates {AND, OR, NOT} is logically complete because we can build a circuit to carry out the specification of any combinatorial logic we wish, without any other kind of gate. NAND and NOR are also logically complete.

Last Words In this lab, you will draw the schematics of some simple operations. Part 1: A comparator circuit Part 2: A more general comparator circuit Part 3: Designing circuits using only NAND or NOR gates You will find more exercises in the lab report.

Design of Digital Circuits Lab 1 Supplement Prof. Onur Mutlu ETH Zurich Spring 2019 5 March 2019