The University of Texas at Arlington. Algebraic Methods
|
|
- Winfred Thornton
- 7 years ago
- Views:
Transcription
1 The University of Texas at Arlington Algebraic Methods CSE 244 Introduction to Digital Logic Dr. Gergely Záruba Bridge from Discrete Structures To describe we use the description tools of Axiomatic Theory : Unambiguous definitions Axioms (Postulates) the starting truths Theorems the provably correct statements We began acquiring tools of description in Discrete Structurest Here we acquire more such tools, and put some of the theory in practical perspective Vocabulary is crucial (makes the material simple and makes sure we all talk the same language) 2
2 BOOLEAN ALGEBRA 3 A Model to Represent Logic We need a model that can be used to represent tlogical lthought htand reason. George Bool (849) has come up with an abstract algebraic structure that has been used since. This includes: A set of postulates A set of theorems (or rules) 4 2
3 Boolean Algebra Postulate- Defintion: Boolean algebra is a closed algebraic system, containing a set of K (two or more) elements and two operators * and + It is closed as any element a in K and b in K, the sum or OR (a+b) and the product or AND ( a*b) both will belong to K Precedence is given to the * operator 5 Boolean Algebra Postulate-2 Existence of and elements There exist unique elements and such that : a + = a a * = a We call the identity element for the OR operation and the identity element for the AND operation 6 3
4 Boolean Algebra Postulate -3 Commutativity of the operators: For a,b K: a + b = b + a a * b = b * a 7 Boolean Algebra Postulate -4 Associativity of the operators: For a,b,c K: a + (b +c) = (a + b) + c a * (b * c) = (a * b) * c 8 4
5 Boolean Algebra Postulate -5 Distributivity of the + over * and * over +: For a,b,c K: a + (b * c) = (a + b) * (a + c) a * (b + c) = (a * b) + (a * c) 9 Boolean Algebra Postulate -6 Existence of the complement: For a K, there exists an ā K such that: a + ā = a * ā = 5
6 E.g., a+b Venn Diagrams for Visualization K a b Could be used to visualize more than 2 variables Could be used to visualize the postulates The Principle of Duality If an expression is valid then the dual of that t expression is also valid The dual can be found by swapping all operators against their counterparts (i.e., + with * and vice versa) and by swapping the identity elements with each other (i.e., by and vice versa) E.g.,: the dual of (a+b)(a+c) is (ab+ac) The following theories are numbered arbitrarily so theory- is not going to be called theory- by other textbooks 2 6
7 Boolean Algebra Theorem - Idempotency: a + a = a a * a = a (notice that they are duals so it is enough to prove one of them) 3 Boolean Algebra Theorem -2 Null elements: a + = a * = (notice that they are duals so it is enough to prove one of them) 4 7
8 Boolean Algebra Theorem -3 Involution: a = a 5 Boolean Algebra Theorem -4 Absorption: a + ab = a a * (a+b) = a (notice that they are duals so it is enough to prove one of them) 6 8
9 Boolean Algebra Theorem -5 Absorption-2: a + āb = a+b a * (ā+b) = ab (notice that they are duals so it is enough to prove one of them) 7 Boolean Algebra Theorem -6 Absorption-3: ab + āb = b (a+b) * (ā+b) = b (notice that they are duals so it is enough to prove one of them) 8 9
10 Boolean Algebra Theorem -7 Absorption-4: ab + ābc = ab + bc (a + b) * (ā + b + c) = (a + b) (b + c) (notice that they are duals so it is enough to prove one of them) 9 Boolean Algebra Theorem -8 DeMorgan Theorems: a + b = a * b a * b = a + b (notice that they are duals so it is enough to prove one of them) They can be generalized for an arbitrary (but fininte) number of variables 2
11 Boolean Algebra Theorem -9 Consensus: ab + āc +bc = ab + āc (a + b) * (ā + c) * (b + c) = (a + b) (ā + c) (notice that they are duals so it is enough to prove one of them) 2 Boolean Algebra Theorem - Shanon s Expansion: f(x,x 2,,x n )=x f(,x 2,,x n )+x f(,x 2,,x n ) f(x,x 2,,x n )=[x +f(,x 2,,x n )]+[x +f(,x 2,,x n )] (notice that they are duals) 22
12 Boolean Algebra Cheat Sheet Textbook Table 2.2 (pg. 9) 23 SWITCHING ALGEBRA/FUNCTIONS 24 2
13 From Boolean Algebra to Switching Algebra For switching algebra, we specify K to contain exactly two elements K={,} We can refer to these values as {false,true}, or {low,high} as well. (In general capital letters represent variables and small letters represent values that they take, ie i.e., X vs. x ) 25 Number of Switching Functions A function f(x, X 2,.., X n ) has n variables. Since each of these variables can take one of exactly two values, there are 2 n different ways variables can be assigned to functions. Since each(!) one of those assignments can result in two possible outcomes, there are 2 2n different switching functions For n=, there are two functions: f = and f = For n=, there are four functions f(a): f (A)=, f (A)=A, f 2 (A)=A, and f (A)= 26 3
14 Switching Functions for n=2 There are thus 6 two-variable switching functions, f (A,B) to f 5 (A,B) A B f f f 2 f 3 f 4 f 5 f 6 f 7 f 8 f 9 f f f 2 f 3 f 4 f 5 Any two variable function can be reduced to one of these Note: f 8 is AND, f 4 is OR, f 6 is XOR, f 7 is NAND, and f is NOR 27 Truth Tables Previous slide contains 6 truth tables in one. This is still doable for n=2. For n=3, there are a total of 256 different switching functions, for n=4, ~4.29B for n=5, and ~.6* 77 for n=8 (the number of atoms in the observable universe is about 8 ) A truth table has four sections: ABC f(a,b,c)=ab+ac 28 4
15 Algebraic Forms The same switching function can be given in many ways. There are some forms that are more desirable SOP form (Sum of Products), the OR-ing of several AND-ed literals (uncomplemented or complemented variables) E.g., f(a,b,c,d)=abc+dc+acd (true heavy) POS form (Product of Sums) E.g., f(a,b,c,d,e) =(A+E)(C+D+E)(B+D) (false heavy) 29 Algebraic Forms: Canonical SOP a.k.a. disjunctive normal form If a product (AND) contains all variables of the function in either complemented or uncomplemented form then this product is called a minterm A canonical SOP is a form where all products are minterms E.g., f(a,b,c) = ABC + ABC + ABC + ABC If we looked at the literals as a n-bit binary code (n is the number of variables in the function) and assigned to a literal if it is complemented and otherwise, then each of the minterms could be uniquely numbered. E.g., ABC would be and thus minterm- or m E.g., ABC would be and thus minterm-5 or m 5 Thus the above f(a,b,c) = m +m 2 +m 5 +m 7 = m(,2,5,7) (Note, that this is a notation only!) The order of the variables in this notation becomes important; the minterms for f(a,b,c) and f(b,a,c) are not the same 3 5
16 Algebraic Forms: Canonical POS a.k.a. conjunctive normal form If a product (OR) contains all variables of the function in either complemented or uncomplemented form then this product is called a maxterm A canonical POS is a form where all products are maxterms E.g., f(a,b,c) = (A+B+C) (A+B+C) (A+B+C) (A+B+C) If we looked at the literals as a n-bit binary code (n is the number of variables in the function) and assigned to a literal if it is complemented and otherwise(!!!), then each of the minterms could be uniquely numbered. E.g., (A+B+C) would be and thus maxterm-6 or M 6 E.g., (A+B+C) would be and thus maxterm-52or M 2 Thus the above f(a,b,c) = M * M 2 * M 5 * M 6 = M(,2,5,6) (Note, that this is a notation only!) Notice, that order of variables is important again 3 Duality of Canonical POS and SOP Minterms and maxterms are complements of each other i.e., M i =m i =M i and m i =M i =m i e.g., if f(a,b,c)= m(,2,5,7) then f(a,b,c) = M(,2,5,7) And since f(a,b,c)= m(,3,4,6) it becomes apparent that in order to convert from canonical SOP to POS (or vice versa) the complementing min/maxterms need to be used. 32 6
17 So, How Do We Obtain Canonical SOP Forms? Recall Shanon s expansion theorem (T) f(x,x 2,,x n )=x f(,x 2,,x n )+x f(,x 2,,x n ) This can be used one after the other for all variables to obtain canonical SOP Alternatively Theory-6 could be used ab+ab=a a use this for each product not containing a variable How about canonical POS? Same tricks could be used (b versions of theories) or just use the duality rule by finding canonical SOP first. 33 Incompletely Specified Functions In real life, many times, functions do need to be true for some minterms, do need to be false for some others, but there may be some minterms for which the designer does not care (don t care) if the function is false or not. For example if we know that some input combinations will never happen (e.g., BCD input) or if for some input combination it really does not matter what the output is. In canonical SOP we can represent don t care minterms as d i instead of m i. In canonical POS we can use Di. E.g., a function working on BCD input could be: f(a,b,c,d) = m(,2,4,6,8)+d(,,2,3,4,5) Don t cares can actually be helpful when minimizing functions (to make them as simple as possible). 34 7
18 Simplifying Switching Functions Normal forms (POS,SOP, and cannonicals) are not necessarily the simplest forms of a function. E.g., f(a,b,c,d)=abc+d= m(,3,5,7,9,,3,4,5) Former requires one 3-input AND and one 2-input OR gates, latter requires nine 4-input AND and one 9-input OR gates. If we want our function to be realized with the least amount of logic gates, then we need to reduce the number of operators and the number of inputs to those operators. Having said that, in order to simplify (or minimize) switching functions we usually (but not always) first put them in canonical SOP We can then use switching algebra (or Boolean algebra) to try to reduce them. This is cumbersome and requires a lot of experience. It is also not easily automated. Would be nice to have some simple methods 35 KARNAUGH MAPS 36 8
19 The Need for Karnaugh Maps Is a semi-systematic way to reduce switching functions Can be used to up to five (becomes somewhat tricky) maybe six (becomes really tricky) variable switching functions Recall Theory-6: ab+ab=a This is the best way to reduce functions Thus, if we could organize minterms, so that the ones differing in just a single literal (complemented vs. uncomplemnted) would be placed next to each other then these two could be simplified E.g., f(a,b,c)=abc+abc=bc = m 7 +m 3 How could we graphically put adjacent minterms next to 37 each other? Two/Three Variable K-Maps Organizing minterms into such a map is somewhat straight forward for small n-s B A m m 2 m m 3 C AB m m 2 m 6 m 4 Note, that m 4 and m are adjacent And that m 5 and m are adjacent as well m m 3 m 7 m
20 Four Variable K-Map Graph theory indicates we can still do this for four variables AB CD m m 4 m 2 m 8 Adjacencies wrap around borders! m m 5 m 3 m 9 m 3 m 7 m 5 m m 2 m 6 m 4 m Where are the white arrows? Order has to be learned, not really straight forward 39 Five Variable K-Map Graph theory indicates we can t really do this so it becomes tricky we need two tables f(a,b,c,d,e) DE BC DE BC m m 4 m 2 m 8 m 6 m 2 m 28 m 24 m m 5 m 3 m 9 m 7 m 2 m 29 m 25 m 3 m 7 m 5 m m 9 m 23 m 3 m 27 m 2 m 6 m 4 m m 8 m 22 m 3 m 26 A= A= What are those adjacencies again? 4 2
21 Mahoney Maps Can we rearrange the variables so there is more method to the madness? BD AC m m m 5 m 4 m 2 m 3 m 7 m 6 m m m 5 m 4 m 8 m 9 m 3 m 2 Adjacencies wrap around borders! Order is somewhat simpler 4 So How Do We Plot Switching Functions? E.g., f(a,b,c,d)= m(,2,4,6,8,2) AB CD m m 4 m 2 m 8 m m 5 m 3 m 9 m 3 m 7 m 5 m m 2 m 6 m 4 m 42 2
22 Minterm and Maxterm K-Maps E.g., f(a,b,c,d)= m(,2,4,6,8,2) AB MINTERM CD m m 4 m 2 m 8 m m 5 m 3 m 9 AB MAXTERM CD m m 4 m 2 m 8 m m 5 m 3 m 9 m 3 m 7 m 5 m m 3 m 7 m 5 m m 2 m 6 m 4 m m 2 m 6 m 4 m E.g., f(a,b,c,d)= M(,3,5,7,9,,3,4,5) 43 Why Did We Do This Again? SIMPLIFICATION! So, how do we simplify? We look for representatives of T6 by circling -s next to each other. Pairs work, 4-neighbors work (if they are either in line or in box), 8-neighbors work, 6-neighbors work, etc
23 K-Map Based Simplification We need to find groups (implicants) that cover the entire map. AB CD m m 4 m 2 m m 5 m 3 m 9 m 8 m 3 m 7 m 5 m F(A,B,C,D)=CD+ACD Some terms: Implicant Prime implicant Essential prime implicant Cover m 2 m 6 m 4 m 45 K-Map Based Simplification We need to find groups (implicants) that cover the entire map. AB CD m m 4 m 2 m 8 m m 5 m 3 m 9 m 3 m 7 m 5 m F(A,B,C,D)=AD+CAD Some terms: Implicant Prime implicant Essential prime implicant Cover m 2 m 6 m 4 m 46 23
24 K-Map Based Simplification We need to find groups (implicants) that cover the entire map. AB CD m m 4 m 2 m m 5 m 3 m 9 m 8 m 3 m 7 m 5 m F(A,B,C,D)=AD+CD Some terms: Implicant Prime implicant Essential prime implicant Cover m 2 m 6 m 4 m 47 Algorithm- for Finding the Best Cover. Count the adjacencies for each minterm 2. Select an uncovered minterm with lowest adjacency number (if several are the same, pick randomly) 3. Check which prime implicant covers most other uncovered minterms and select that. 4. Go to 2 Is this optimal? We are making random choices, how can we be sure? 48 24
25 Algorithm-2 for Finding the Best Cover. Circle all prime implicants 2. Select all essential prime implicants 3. Select the minimum cover from the remaining prime implicants to finish the cover Is this optimal? Step three is still random How could we make it optimal? An exhaustive search on step-3 would make this algorithm optimal. This is expensive. 49 How about POS Forms? Terminology is different: instead of implicant we have implicate We can do the same operations over zeros. When writing the POS form keep in mind that variables need to be complemented It is just easier to to do the complemented function using SOP form and apply DeMorgan 5 25
26 Incomplete Functions If the function is incomplete then we can decide to include or ignore don t cares. We include them only if they make a prime implicant larger. For example: f(abcd)= m(24568)+d(7 f(a,b,c,d)= m(2,4,5,6,8,)+d(7,9,2,3,4) ) = M(,,3,,6)+D(7,9,2,3,4) Note that the two minimizations may not result in equivalent functions! 5 QUINE-MCCLUSKY TABULAR METHOD 52 26
27 Quine-McCluskey Method Systematic method (can be easily computerized) Minterms are written up in a table (n-variable minterms). Based on this (n-)-variable implicants are identified. Based on this (n-2) variable implicants are identified and so on. Then we identify essential prime implicants, and prime implicants. The cover is based on these. 53 Q-M Method Step- Step. Write all minterms in a two column table; organize minterms in groups based on how many -s they have (not neccesarily the minterm order) E.g, f(a,b,c,d)= m(,,2,4,5,7,,2,4) Minterm # ABCD Group- 2 Group- 4 5 Group Group
28 Q-M Method Step-2 Do an exhaustive search between adjacent groups to see if minterms can be combined; repeat this for the new columns as well. List- List-2 List-3 Minterm ABCD Minterms ABCD Minterms ABCD, -,4,,5 --,2-2,4 - - s have to be in the same place 4,5 - and they can 5 2, - differ in only one 4,5 - digit 2 4,2-7 5,7-4,4-55 2,4 - Q-M Method Step-2 Do an exhaustive search between adjacent groups to see if minterms can be combined; repeat this for the new columns as well. List- List-2 List-3 Minterm ABCD Minterms ABCD Minterms ABCD, - PI 2,4,,5 -- PI,2 - PI 32 2,4-4,5-5 2, - PI 43 5,7 4,5 - - PI 5 2,4 4,2 - - PI ,4 5,7 - - PI 75 4,4 - PI 6 2,4 - PI
29 Q-M Method Step-3 Now need to find a minimum cover. For that we need to create another cross reference table PI X X X X PI 2 X X PI 3 X X PI 4 X X PI 5 X X PI 6 X X PI 7 X X Separating Pis with different number of implicants 57 Q-M Method Step-4 Identify essential prime implicants (minterm is only covered by them). They need to be chosen **PI X X X PI 2 X X PI 3 X X PI 4 X X **PI 5 X PI 6 X X PI 7 X X 58 29
30 Q-M Method Step-4.2 Select PIs to finish cover; (remove essentials and their minterms for more visibility) **PI X X X PI 2 X X PI 3 X X PI 4 X X **PI 5 X 5 PI 6 X X PI 7 X X PI 2 X PI 3 X X PI 4 X PI 6 X X PI 7 X X But even then, how to choose? 59 Q-M Method Step **PI X X X PI 2 X X PI 3 X X PI 4 X X **PI 5 X PI 6 X X PI 7 X X List- List-2 List-3 Minterm ABCD Minterms ABCD Minterms ABCD, -,4,,5 -- PI,2 - PI 2 2,4-4,5-5 2, - PI 3 4,5-2 4,2 - PI 4 7 5,7 - PI 5 4,4 - PI PI 2 X *PI 3 X X PI 4 X PI 6 X X *PI 7 X X Cyclic chart Thus, PI,PI 3,PI 5,PI 7 f(a,b,c,d)= AC+BCD+ABD+ABD 6 2,4 - PI 7 3
31 How About Q-M and Incomplete Functions? Same first and second steps, handling d s as if they were m s In step three do not create columns for d s 6 What if We have Multiple Outputs? If we have multiple outputs (more than one function), we could benefit from shared implicants. We can extend the Q-M tables to include more functions. We just need one more column for the lists that indicates in which function they are used. For step 2: terms can only be combined if they have a common flag (and the combination can carry only those) For step 3: each function should be represented by columns of those minterms that they have PIs for. 62 3
BOOLEAN ALGEBRA & LOGIC GATES
BOOLEAN ALGEBRA & LOGIC GATES Logic gates are electronic circuits that can be used to implement the most elementary logic expressions, also known as Boolean expressions. The logic gate is the most basic
More informationCSE140: Midterm 1 Solution and Rubric
CSE140: Midterm 1 Solution and Rubric April 23, 2014 1 Short Answers 1.1 True or (6pts) 1. A maxterm must include all input variables (1pt) True 2. A canonical product of sums is a product of minterms
More informationCSEE 3827: Fundamentals of Computer Systems. Standard Forms and Simplification with Karnaugh Maps
CSEE 3827: Fundamentals of Computer Systems Standard Forms and Simplification with Karnaugh Maps Agenda (M&K 2.3-2.5) Standard Forms Product-of-Sums (PoS) Sum-of-Products (SoP) converting between Min-terms
More informationKarnaugh Maps & Combinational Logic Design. ECE 152A Winter 2012
Karnaugh Maps & Combinational Logic Design ECE 52A Winter 22 Reading Assignment Brown and Vranesic 4 Optimized Implementation of Logic Functions 4. Karnaugh Map 4.2 Strategy for Minimization 4.2. Terminology
More informationBoolean Algebra Part 1
Boolean Algebra Part 1 Page 1 Boolean Algebra Objectives Understand Basic Boolean Algebra Relate Boolean Algebra to Logic Networks Prove Laws using Truth Tables Understand and Use First Basic Theorems
More informationChapter 2: Boolean Algebra and Logic Gates. Boolean Algebra
The Universit Of Alabama in Huntsville Computer Science Chapter 2: Boolean Algebra and Logic Gates The Universit Of Alabama in Huntsville Computer Science Boolean Algebra The algebraic sstem usuall used
More informationKarnaugh Maps. Circuit-wise, this leads to a minimal two-level implementation
Karnaugh Maps Applications of Boolean logic to circuit design The basic Boolean operations are AND, OR and NOT These operations can be combined to form complex expressions, which can also be directly translated
More informationSimplifying Logic Circuits with Karnaugh Maps
Simplifying Logic Circuits with Karnaugh Maps The circuit at the top right is the logic equivalent of the Boolean expression: f = abc + abc + abc Now, as we have seen, this expression can be simplified
More information1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1.
File: chap04, Chapter 04 1. True or False? A voltage level in the range 0 to 2 volts is interpreted as a binary 1. 2. True or False? A gate is a device that accepts a single input signal and produces one
More information2.0 Chapter Overview. 2.1 Boolean Algebra
Thi d t t d ith F M k 4 0 2 Boolean Algebra Chapter Two Logic circuits are the basis for modern digital computer systems. To appreciate how computer systems operate you will need to understand digital
More informationUnited States Naval Academy Electrical and Computer Engineering Department. EC262 Exam 1
United States Naval Academy Electrical and Computer Engineering Department EC262 Exam 29 September 2. Do a page check now. You should have pages (cover & questions). 2. Read all problems in their entirety.
More informationIntroduction. The Quine-McCluskey Method Handout 5 January 21, 2016. CSEE E6861y Prof. Steven Nowick
CSEE E6861y Prof. Steven Nowick The Quine-McCluskey Method Handout 5 January 21, 2016 Introduction The Quine-McCluskey method is an exact algorithm which finds a minimum-cost sum-of-products implementation
More informationBoolean Algebra. Boolean Algebra. Boolean Algebra. Boolean Algebra
2 Ver..4 George Boole was an English mathematician of XIX century can operate on logic (or Boolean) variables that can assume just 2 values: /, true/false, on/off, closed/open Usually value is associated
More informationLogic in Computer Science: Logic Gates
Logic in Computer Science: Logic Gates Lila Kari The University of Western Ontario Logic in Computer Science: Logic Gates CS2209, Applied Logic for Computer Science 1 / 49 Logic and bit operations Computers
More informationCHAPTER 3 Boolean Algebra and Digital Logic
CHAPTER 3 Boolean Algebra and Digital Logic 3.1 Introduction 121 3.2 Boolean Algebra 122 3.2.1 Boolean Expressions 123 3.2.2 Boolean Identities 124 3.2.3 Simplification of Boolean Expressions 126 3.2.4
More informationSwitching Algebra and Logic Gates
Chapter 2 Switching Algebra and Logic Gates The word algebra in the title of this chapter should alert you that more mathematics is coming. No doubt, some of you are itching to get on with digital design
More informationBinary Adders: Half Adders and Full Adders
Binary Adders: Half Adders and Full Adders In this set of slides, we present the two basic types of adders: 1. Half adders, and 2. Full adders. Each type of adder functions to add two binary bits. In order
More informationBasic Logic Gates Richard E. Haskell
BASIC LOGIC GATES 1 E Basic Logic Gates Richard E. Haskell All digital systems are made from a few basic digital circuits that we call logic gates. These circuits perform the basic logic functions that
More informationCH3 Boolean Algebra (cont d)
CH3 Boolean Algebra (cont d) Lecturer: 吳 安 宇 Date:2005/10/7 ACCESS IC LAB v Today, you ll know: Introduction 1. Guidelines for multiplying out/factoring expressions 2. Exclusive-OR and Equivalence operations
More informationCSE140: Components and Design Techniques for Digital Systems
CSE4: Components and Design Techniques for Digital Systems Tajana Simunic Rosing What we covered thus far: Number representations Logic gates Boolean algebra Introduction to CMOS HW#2 due, HW#3 assigned
More informationCDA 3200 Digital Systems. Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012
CDA 3200 Digital Systems Instructor: Dr. Janusz Zalewski Developed by: Dr. Dahai Guo Spring 2012 Outline Multi-Level Gate Circuits NAND and NOR Gates Design of Two-Level Circuits Using NAND and NOR Gates
More informationDigital Logic Design. Basics Combinational Circuits Sequential Circuits. Pu-Jen Cheng
Digital Logic Design Basics Combinational Circuits Sequential Circuits Pu-Jen Cheng Adapted from the slides prepared by S. Dandamudi for the book, Fundamentals of Computer Organization and Design. Introduction
More information3.Basic Gate Combinations
3.Basic Gate Combinations 3.1 TTL NAND Gate In logic circuits transistors play the role of switches. For those in the TTL gate the conducting state (on) occurs when the baseemmiter signal is high, and
More informationLogic Reference Guide
Logic eference Guide Advanced Micro evices INTOUCTION Throughout this data book and design guide we have assumed that you have a good working knowledge of logic. Unfortunately, there always comes a time
More informationBoolean Algebra (cont d) UNIT 3 BOOLEAN ALGEBRA (CONT D) Guidelines for Multiplying Out and Factoring. Objectives. Iris Hui-Ru Jiang Spring 2010
Boolean Algebra (cont d) 2 Contents Multiplying out and factoring expressions Exclusive-OR and Exclusive-NOR operations The consensus theorem Summary of algebraic simplification Proving validity of an
More informationDESIGN OF GATE NETWORKS
DESIGN OF GATE NETWORKS DESIGN OF TWO-LEVEL NETWORKS: and-or and or-and NETWORKS MINIMAL TWO-LEVEL NETWORKS KARNAUGH MAPS MINIMIZATION PROCEDURE AND TOOLS LIMITATIONS OF TWO-LEVEL NETWORKS DESIGN OF TWO-LEVEL
More informationGates, Circuits, and Boolean Algebra
Gates, Circuits, and Boolean Algebra Computers and Electricity A gate is a device that performs a basic operation on electrical signals Gates are combined into circuits to perform more complicated tasks
More informationCHAPTER 2. Logic. 1. Logic Definitions. Notation: Variables are used to represent propositions. The most common variables used are p, q, and r.
CHAPTER 2 Logic 1. Logic Definitions 1.1. Propositions. Definition 1.1.1. A proposition is a declarative sentence that is either true (denoted either T or 1) or false (denoted either F or 0). Notation:
More informationUnit 3 Boolean Algebra (Continued)
Unit 3 Boolean Algebra (Continued) 1. Exclusive-OR Operation 2. Consensus Theorem Department of Communication Engineering, NCTU 1 3.1 Multiplying Out and Factoring Expressions Department of Communication
More information6. BOOLEAN LOGIC DESIGN
6. OOLEN LOGI DESIGN 89 Topics: oolean algebra onverting between oolean algebra and logic gates and ladder logic Logic examples Objectives: e able to simplify designs with oolean algebra 6. INTRODUTION
More informationDigital circuits make up all computers and computer systems. The operation of digital circuits is based on
Digital Logic Circuits Digital circuits make up all computers and computer systems. The operation of digital circuits is based on Boolean algebra, the mathematics of binary numbers. Boolean algebra is
More informationLecture 5: Gate Logic Logic Optimization
Lecture 5: Gate Logic Logic Optimization MAH, AEN EE271 Lecture 5 1 Overview Reading McCluskey, Logic Design Principles- or any text in boolean algebra Introduction We could design at the level of irsim
More informationChapter 11 Number Theory
Chapter 11 Number Theory Number theory is one of the oldest branches of mathematics. For many years people who studied number theory delighted in its pure nature because there were few practical applications
More informationProperties of Real Numbers
16 Chapter P Prerequisites P.2 Properties of Real Numbers What you should learn: Identify and use the basic properties of real numbers Develop and use additional properties of real numbers Why you should
More informationWe can express this in decimal notation (in contrast to the underline notation we have been using) as follows: 9081 + 900b + 90c = 9001 + 100c + 10b
In this session, we ll learn how to solve problems related to place value. This is one of the fundamental concepts in arithmetic, something every elementary and middle school mathematics teacher should
More informationLecture 1. Basic Concepts of Set Theory, Functions and Relations
September 7, 2005 p. 1 Lecture 1. Basic Concepts of Set Theory, Functions and Relations 0. Preliminaries...1 1. Basic Concepts of Set Theory...1 1.1. Sets and elements...1 1.2. Specification of sets...2
More informationUnderstanding Logic Design
Understanding Logic Design ppendix of your Textbook does not have the needed background information. This document supplements it. When you write add DD R0, R1, R2, you imagine something like this: R1
More informationC H A P T E R. Logic Circuits
C H A P T E R Logic Circuits Many important functions are naturally computed with straight-line programs, programs without loops or branches. Such computations are conveniently described with circuits,
More informationFormal Languages and Automata Theory - Regular Expressions and Finite Automata -
Formal Languages and Automata Theory - Regular Expressions and Finite Automata - Samarjit Chakraborty Computer Engineering and Networks Laboratory Swiss Federal Institute of Technology (ETH) Zürich March
More informationGates & Boolean Algebra. Boolean Operators. Combinational Logic. Introduction
Introduction Gates & Boolean lgebra Boolean algebra: named after mathematician George Boole (85 864). 2-valued algebra. digital circuit can have one of 2 values. Signal between and volt =, between 4 and
More informationDigital Electronics Part I Combinational and Sequential Logic. Dr. I. J. Wassell
Digital Electronics Part I Combinational and Sequential Logic Dr. I. J. Wassell Introduction Aims To familiarise students with Combinational logic circuits Sequential logic circuits How digital logic gates
More informationCircuits and Boolean Expressions
Circuits and Boolean Expressions Provided by TryEngineering - Lesson Focus Boolean logic is essential to understanding computer architecture. It is also useful in program construction and Artificial Intelligence.
More informationChapter 1. Computation theory
Chapter 1. Computation theory In this chapter we will describe computation logic for the machines. This topic is a wide interdisciplinary field, so that the students can work in an interdisciplinary context.
More informationLecture 12: More on Registers, Multiplexers, Decoders, Comparators and Wot- Nots
Lecture 12: More on Registers, Multiplexers, Decoders, Comparators and Wot- Nots Registers As you probably know (if you don t then you should consider changing your course), data processing is usually
More informationa 11 x 1 + a 12 x 2 + + a 1n x n = b 1 a 21 x 1 + a 22 x 2 + + a 2n x n = b 2.
Chapter 1 LINEAR EQUATIONS 1.1 Introduction to linear equations A linear equation in n unknowns x 1, x,, x n is an equation of the form a 1 x 1 + a x + + a n x n = b, where a 1, a,..., a n, b are given
More informationGeometry 1. Unit 3: Perpendicular and Parallel Lines
Geometry 1 Unit 3: Perpendicular and Parallel Lines Geometry 1 Unit 3 3.1 Lines and Angles Lines and Angles Parallel Lines Parallel lines are lines that are coplanar and do not intersect. Some examples
More informationKarnaugh Maps (K-map) Alternate representation of a truth table
Karnaugh Maps (K-map) lternate representation of a truth table Red decimal = minterm value Note that is the MS for this minterm numbering djacent squares have distance = 1 Valuable tool for logic minimization
More informationSAT Math Facts & Formulas Review Quiz
Test your knowledge of SAT math facts, formulas, and vocabulary with the following quiz. Some questions are more challenging, just like a few of the questions that you ll encounter on the SAT; these questions
More informationexclusive-or and Binary Adder R eouven Elbaz reouven@uwaterloo.ca Office room: DC3576
exclusive-or and Binary Adder R eouven Elbaz reouven@uwaterloo.ca Office room: DC3576 Outline exclusive OR gate (XOR) Definition Properties Examples of Applications Odd Function Parity Generation and Checking
More informationCOMPUTER SCIENCE. Paper 1 (THEORY)
COMPUTER SCIENCE Paper 1 (THEORY) (Three hours) Maximum Marks: 70 (Candidates are allowed additional 15 minutes for only reading the paper. They must NOT start writing during this time) -----------------------------------------------------------------------------------------------------------------------
More informationPrimes. Name Period Number Theory
Primes Name Period A Prime Number is a whole number whose only factors are 1 and itself. To find all of the prime numbers between 1 and 100, complete the following exercise: 1. Cross out 1 by Shading in
More informationYear 9 set 1 Mathematics notes, to accompany the 9H book.
Part 1: Year 9 set 1 Mathematics notes, to accompany the 9H book. equations 1. (p.1), 1.6 (p. 44), 4.6 (p.196) sequences 3. (p.115) Pupils use the Elmwood Press Essential Maths book by David Raymer (9H
More informationPhiladelphia University Faculty of Information Technology Department of Computer Science ----- Semester, 2007/2008.
Philadelphia University Faculty of Information Technology Department of Computer Science ----- Semester, 2007/2008 Course Syllabus Course Title: Computer Logic Design Course Level: 1 Lecture Time: Course
More informationCombinational circuits
Combinational circuits Combinational circuits are stateless The outputs are functions only of the inputs Inputs Combinational circuit Outputs 3 Thursday, September 2, 3 Enabler Circuit (High-level view)
More informationTake-Home Exercise. z y x. Erik Jonsson School of Engineering and Computer Science. The University of Texas at Dallas
Take-Home Exercise Assume you want the counter below to count mod-6 backward. That is, it would count 0-5-4-3-2-1-0, etc. Assume it is reset on startup, and design the wiring to make the counter count
More informationBasic Proof Techniques
Basic Proof Techniques David Ferry dsf43@truman.edu September 13, 010 1 Four Fundamental Proof Techniques When one wishes to prove the statement P Q there are four fundamental approaches. This document
More informationAlgebraic Properties and Proofs
Algebraic Properties and Proofs Name You have solved algebraic equations for a couple years now, but now it is time to justify the steps you have practiced and now take without thinking and acting without
More informationElementary Logic Gates
Elementary Logic Gates Name Symbol Inverter (NOT Gate) ND Gate OR Gate Truth Table Logic Equation = = = = = + C. E. Stroud Combinational Logic Design (/6) Other Elementary Logic Gates NND Gate NOR Gate
More information3. Mathematical Induction
3. MATHEMATICAL INDUCTION 83 3. Mathematical Induction 3.1. First Principle of Mathematical Induction. Let P (n) be a predicate with domain of discourse (over) the natural numbers N = {0, 1,,...}. If (1)
More informationTwo-level logic using NAND gates
CSE140: Components and Design Techniques for Digital Systems Two and Multilevel logic implementation Tajana Simunic Rosing 1 Two-level logic using NND gates Replace minterm ND gates with NND gates Place
More informationELEC 2210 - EXPERIMENT 1 Basic Digital Logic Circuits
Objectives ELEC - EXPERIMENT Basic Digital Logic Circuits The experiments in this laboratory exercise will provide an introduction to digital electronic circuits. You will learn how to use the IDL-00 Bit
More informationC H A P T E R Regular Expressions regular expression
7 CHAPTER Regular Expressions Most programmers and other power-users of computer systems have used tools that match text patterns. You may have used a Web search engine with a pattern like travel cancun
More information47 Numerator Denominator
JH WEEKLIES ISSUE #22 2012-2013 Mathematics Fractions Mathematicians often have to deal with numbers that are not whole numbers (1, 2, 3 etc.). The preferred way to represent these partial numbers (rational
More informationCounters and Decoders
Physics 3330 Experiment #10 Fall 1999 Purpose Counters and Decoders In this experiment, you will design and construct a 4-bit ripple-through decade counter with a decimal read-out display. Such a counter
More informationHandout #1: Mathematical Reasoning
Math 101 Rumbos Spring 2010 1 Handout #1: Mathematical Reasoning 1 Propositional Logic A proposition is a mathematical statement that it is either true or false; that is, a statement whose certainty or
More informationBasic Concepts of Set Theory, Functions and Relations
March 1, 2006 p. 1 Basic Concepts of Set Theory, Functions and Relations 1. Basic Concepts of Set Theory...1 1.1. Sets and elements...1 1.2. Specification of sets...2 1.3. Identity and cardinality...3
More informationA Course Material on DIGITAL PRINCIPLES AND SYSTEM DESIGN
A Course Material on By MS.G.MANJULA ASSISTANT PROFESSOR DEPARTMENT OF ELECTRONICS AND COMMUNICATION ENGINEERING SASURIE COLLEGE OF ENGINEERING VIJAYAMANGALAM 638 56 QUALITY CERTIFICATE This is to certify
More informationLet s put together a Manual Processor
Lecture 14 Let s put together a Manual Processor Hardware Lecture 14 Slide 1 The processor Inside every computer there is at least one processor which can take an instruction, some operands and produce
More informationBoolean Design of Patterns
123 Boolean Design of Patterns Basic weave structures interlacement patterns can be described in many ways, but they all come down to representing the crossings of warp and weft threads. One or the other
More informationNegative Integral Exponents. If x is nonzero, the reciprocal of x is written as 1 x. For example, the reciprocal of 23 is written as 2
4 (4-) Chapter 4 Polynomials and Eponents P( r) 0 ( r) dollars. Which law of eponents can be used to simplify the last epression? Simplify it. P( r) 7. CD rollover. Ronnie invested P dollars in a -year
More informationPreliminary Mathematics
Preliminary Mathematics The purpose of this document is to provide you with a refresher over some topics that will be essential for what we do in this class. We will begin with fractions, decimals, and
More informationMath Workshop October 2010 Fractions and Repeating Decimals
Math Workshop October 2010 Fractions and Repeating Decimals This evening we will investigate the patterns that arise when converting fractions to decimals. As an example of what we will be looking at,
More information15.062 Data Mining: Algorithms and Applications Matrix Math Review
.6 Data Mining: Algorithms and Applications Matrix Math Review The purpose of this document is to give a brief review of selected linear algebra concepts that will be useful for the course and to develop
More informationBits Superposition Quantum Parallelism
7-Qubit Quantum Computer Typical Ion Oscillations in a Trap Bits Qubits vs Each qubit can represent both a or at the same time! This phenomenon is known as Superposition. It leads to Quantum Parallelism
More information(Refer Slide Time: 2:03)
Control Engineering Prof. Madan Gopal Department of Electrical Engineering Indian Institute of Technology, Delhi Lecture - 11 Models of Industrial Control Devices and Systems (Contd.) Last time we were
More informationClick on the links below to jump directly to the relevant section
Click on the links below to jump directly to the relevant section What is algebra? Operations with algebraic terms Mathematical properties of real numbers Order of operations What is Algebra? Algebra is
More information3 Some Integer Functions
3 Some Integer Functions A Pair of Fundamental Integer Functions The integer function that is the heart of this section is the modulo function. However, before getting to it, let us look at some very simple
More informationDigital Electronics Detailed Outline
Digital Electronics Detailed Outline Unit 1: Fundamentals of Analog and Digital Electronics (32 Total Days) Lesson 1.1: Foundations and the Board Game Counter (9 days) 1. Safety is an important concept
More informationSo let us begin our quest to find the holy grail of real analysis.
1 Section 5.2 The Complete Ordered Field: Purpose of Section We present an axiomatic description of the real numbers as a complete ordered field. The axioms which describe the arithmetic of the real numbers
More informationMathematical Induction
Mathematical Induction In logic, we often want to prove that every member of an infinite set has some feature. E.g., we would like to show: N 1 : is a number 1 : has the feature Φ ( x)(n 1 x! 1 x) How
More information6.080/6.089 GITCS Feb 12, 2008. Lecture 3
6.8/6.89 GITCS Feb 2, 28 Lecturer: Scott Aaronson Lecture 3 Scribe: Adam Rogal Administrivia. Scribe notes The purpose of scribe notes is to transcribe our lectures. Although I have formal notes of my
More informationUnit 6 Trigonometric Identities, Equations, and Applications
Accelerated Mathematics III Frameworks Student Edition Unit 6 Trigonometric Identities, Equations, and Applications nd Edition Unit 6: Page of 3 Table of Contents Introduction:... 3 Discovering the Pythagorean
More informationCONTENTS 1. Peter Kahn. Spring 2007
CONTENTS 1 MATH 304: CONSTRUCTING THE REAL NUMBERS Peter Kahn Spring 2007 Contents 2 The Integers 1 2.1 The basic construction.......................... 1 2.2 Adding integers..............................
More informationPYTHAGOREAN TRIPLES KEITH CONRAD
PYTHAGOREAN TRIPLES KEITH CONRAD 1. Introduction A Pythagorean triple is a triple of positive integers (a, b, c) where a + b = c. Examples include (3, 4, 5), (5, 1, 13), and (8, 15, 17). Below is an ancient
More informationComputational Geometry Lab: FEM BASIS FUNCTIONS FOR A TETRAHEDRON
Computational Geometry Lab: FEM BASIS FUNCTIONS FOR A TETRAHEDRON John Burkardt Information Technology Department Virginia Tech http://people.sc.fsu.edu/ jburkardt/presentations/cg lab fem basis tetrahedron.pdf
More informationCHAPTER 3. Methods of Proofs. 1. Logical Arguments and Formal Proofs
CHAPTER 3 Methods of Proofs 1. Logical Arguments and Formal Proofs 1.1. Basic Terminology. An axiom is a statement that is given to be true. A rule of inference is a logical rule that is used to deduce
More informationElementary Number Theory and Methods of Proof. CSE 215, Foundations of Computer Science Stony Brook University http://www.cs.stonybrook.
Elementary Number Theory and Methods of Proof CSE 215, Foundations of Computer Science Stony Brook University http://www.cs.stonybrook.edu/~cse215 1 Number theory Properties: 2 Properties of integers (whole
More informationKenken For Teachers. Tom Davis tomrdavis@earthlink.net http://www.geometer.org/mathcircles June 27, 2010. Abstract
Kenken For Teachers Tom Davis tomrdavis@earthlink.net http://www.geometer.org/mathcircles June 7, 00 Abstract Kenken is a puzzle whose solution requires a combination of logic and simple arithmetic skills.
More informationCOMPUTER SCIENCE TRIPOS
CST.98.5.1 COMPUTER SCIENCE TRIPOS Part IB Wednesday 3 June 1998 1.30 to 4.30 Paper 5 Answer five questions. No more than two questions from any one section are to be answered. Submit the answers in five
More informationUnit 1 Number Sense. In this unit, students will study repeating decimals, percents, fractions, decimals, and proportions.
Unit 1 Number Sense In this unit, students will study repeating decimals, percents, fractions, decimals, and proportions. BLM Three Types of Percent Problems (p L-34) is a summary BLM for the material
More information. 0 1 10 2 100 11 1000 3 20 1 2 3 4 5 6 7 8 9
Introduction The purpose of this note is to find and study a method for determining and counting all the positive integer divisors of a positive integer Let N be a given positive integer We say d is a
More informationChapter 3. if 2 a i then location: = i. Page 40
Chapter 3 1. Describe an algorithm that takes a list of n integers a 1,a 2,,a n and finds the number of integers each greater than five in the list. Ans: procedure greaterthanfive(a 1,,a n : integers)
More informationJust the Factors, Ma am
1 Introduction Just the Factors, Ma am The purpose of this note is to find and study a method for determining and counting all the positive integer divisors of a positive integer Let N be a given positive
More informationSolution to Homework 2
Solution to Homework 2 Olena Bormashenko September 23, 2011 Section 1.4: 1(a)(b)(i)(k), 4, 5, 14; Section 1.5: 1(a)(b)(c)(d)(e)(n), 2(a)(c), 13, 16, 17, 18, 27 Section 1.4 1. Compute the following, if
More informationMATH 90 CHAPTER 1 Name:.
MATH 90 CHAPTER 1 Name:. 1.1 Introduction to Algebra Need To Know What are Algebraic Expressions? Translating Expressions Equations What is Algebra? They say the only thing that stays the same is change.
More informationCombinational Logic Design
Chapter 4 Combinational Logic Design The foundations for the design of digital logic circuits were established in the preceding chapters. The elements of Boolean algebra (two-element switching algebra
More informationAutomata and Formal Languages
Automata and Formal Languages Winter 2009-2010 Yacov Hel-Or 1 What this course is all about This course is about mathematical models of computation We ll study different machine models (finite automata,
More information