Computer Science 101 Circuit Design Algorithm. Circuit Design - The Problem The problem is to design a circuit that accomplishes a specified task. The.

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

Logic Gates.
Computer Science 210 Computer Organization Introduction to Logic Circuits.
Programming for GCSE Topic 9.1: Logic Circuits T eaching L ondon C omputing William Marsh School of Electronic Engineering and Computer Science Queen Mary.
INTRODUCTION LOGICAL OPERATIONS TRUTH TABLE AND RULES.
Digital Circuits.
ECE 301 – Digital Electronics Minterm and Maxterm Expansions and Incompletely Specified Functions (Lecture #6) The slides included herein were taken from.
CK Cheng Tuesday 10/2/02 CS 140 Lecture 2. Part I. Combinational Logic I) Specification –a. Language –b. Truth Table –c. Boolean Algebra –d. Incompletely.
Chapter 4 Logic Gates and Boolean Algebra. Introduction Logic gates are the actual physical implementations of the logical operators. These gates form.
TOPIC : Truth tables and Primitive Cubes
ECE 301 – Digital Electronics Multiplexers and Demultiplexers (Lecture #12)
Boolean Logic & Truth Tables In today’s lesson we will look at: a reminder about truth values and NOT, AND, OR and EOR truth tables operator precedence.
Digital Logic and Design Vishal Jethva Lecture No. 10 svbitec.wordpress.com.
Constructing A Truth Table XYZF1F InputsOutput Input Combinations 3 – Inputs 8 – Combinations (8 = 2 3 ) Note the binary counting order.
Computer Science 101 Boolean Algebra. What’s next? A new type of algebra – Helps us A new type of algebra – Helps us With logical reasoningWith logical.
Computer Science 101 The Boolean System. George Boole British mathematician ( ) Boolean algebra –Logic –Set theory –Circuits –Conditions in if.
CPSC 171 Introduction to Computer Science Boolean Logic, Gates, & Circuits.
XOR and XNOR Logic Gates. XOR Function Output Y is TRUE if input A OR input B are TRUE Exclusively, else it is FALSE. Logic Symbol  Description  Truth.
Logic gates & Boolean Algebra. Introduction Certain components (called logic elements) of the computer combine electric pulses using a set of rules. Electric.
Computer Science 210 Computer Organization Introduction to Boolean Algebra.
Lecture 22: 11/19/2002CS170 Fall CS170 Computer Organization and Architecture I Ayman Abdel-Hamid Department of Computer Science Old Dominion University.
Computer Science 101 Circuit Design - Examples. Sum of Products Algorithm Identify each row of the output that has a 1. Identify each row of the output.
Circuit Simplification Truth Table  Minimized Logic Gates.
Linear Algebra. Circuits The circuits in computers and other input devices have inputs, each of which is either a 0 or 1, the output is also 0s and 1s.
CHAPTER 1 SETS, FUNCTIONs, ELEMENTARY LOGIC & BOOLEAN ALGEBRAs
Computer Science 101 More Devices: Arithmetic. From 1-Bit Equality to N-Bit Equality = A B A = B Two bit strings.
1 GCSE Computing Binary Logic. GCSE Computing 2 Candidates should be able to understand and produce simple logic diagrams using the operations NOT, AND,
Circuits & Boolean Expressions. A ABC BC ABC C B A Example # 1: Boolean Expression: Develop a Boolean expression from a circuit.
Computer Organization CSC 405 Decoders and Multiplexers.
CO5023 Building Circuits from Truth Tables. Build the following… Let’s say we want a circuit which acts as described by the following truth table: We.
School of Computer and Communication Engineering, UniMAP DKT 122/3 - DIGITAL SYSTEM I Chapter 4A:Boolean Algebra and Logic Simplification) Mohd ridzuan.
Digital Logic Design. Truth Table  Logic Circuit 1. Start with truth table 2. When your output is a 1, figure out the combination of inputs, ANDs, and.
Computer Organization CS345 David Monismith Based upon notes by Dr. Bill Siever and notes from the Patternson and Hennessy Text.
Logic Gates Learning Objectives Learn that there is a one-to-one relationship between logic gates and Boolean expressions Learn how logic gates are combined.
Digital Logic.
Logic Gates Binary Day 3 PEOPLE 2016.
Logic Gates and Boolean Algebra
Computer Science 210 Computer Organization
University of Maryland Baltimore County Department of Computer Science and Electrical Engineering   CMPE 212 Laboratory (Discussion 6) Hasib Hasan
CHAPTER 2 Boolean Algebra
Logic Gates.
Logic Gates Benchmark Companies Inc PO Box Aurora CO
Chapter 2.3 Binary Logic.
Boolean Expressions Lecture No. 10.
Circuits & Boolean Expressions
Karnaugh Maps (K-Maps)
Computer Science 210 Computer Organization
Karnaugh Maps References:
Karnaugh Maps References: Lecture 4 from last semester
Computers & Programming Languages
Agenda – 2/12/18 Questions? Readings: CSI 4, P
3.4 Computer systems Boolean logic Lesson 2.
DESICION TABLE Decision tables are precise and compact way to model complicated logic. Decision table is useful when input and output data can be.
Computer Science 210 Computer Organization
Logic Gates.
Boolean Algebra.
Gates Type AND denoted by X.Y OR denoted by X + Y NOR denoted by X + Y
GCSE Computer Science – Logic Gates & Boolean Expressions
Binary Logic.
Lecture 5 Binary Operation Boolean Logic. Binary Operations Addition Subtraction Multiplication Division.
Some basic electronics and truth tables
XOR Function Logic Symbol  Description  Truth Table 
Truth tables Mrs. Palmer.
Evaluating Boolean expressions
Selection—Making Decisions
Topics discussed in this section:
Copyright © Cengage Learning. All rights reserved.
Principles & Applications
Circuits & Boolean Expressions
Lesson 3.3 Writing functions.
Presentation transcript:

Computer Science 101 Circuit Design Algorithm

Circuit Design - The Problem The problem is to design a circuit that accomplishes a specified task. The problem is to design a circuit that accomplishes a specified task. What does this mean? What does this mean? What kind of task? What kind of task? We would like to specify We would like to specify The number of inputs to the circuit.The number of inputs to the circuit. The number of outputs.The number of outputs. What value each output should have for each setting of the inputs.What value each output should have for each setting of the inputs.

Circuit Design - Observations We can deal with one output at a time. We can deal with one output at a time. The truth table is a good way to organize the specifications. The truth table is a good way to organize the specifications. If we can come up with a Boolean expression for the output, we’re home free. If we can come up with a Boolean expression for the output, we’re home free.

Circuit Design and Truth Table The problem reduces to this: The problem reduces to this: Given a truth table with all values for inputs. Given a truth table with all values for inputs. And given a column of values for the output. And given a column of values for the output. Find a Boolean expression that yields the specified column. Find a Boolean expression that yields the specified column. If we can do this, we can get the circuit from the Boolean expression. If we can do this, we can get the circuit from the Boolean expression. We now develop an algorithm, the Sum of Products algorithm, to find the expression. We now develop an algorithm, the Sum of Products algorithm, to find the expression.

Circuit Design - Typical Problem Find Boolean expression for the output. Find Boolean expression for the output. Note that this is a “Majority Rules” circuit. Note that this is a “Majority Rules” circuit. The output reflects the majority input. The output reflects the majority input.

Circuit Design - First Case Consider case where output column has only one 1. Consider case where output column has only one 1. Want expression which is true when Want expression which is true when A is false _ (A true) and B is true and C is true _ ABC does the trick. _ ABC does the trick.

Sum of Products Algorithm- Single 1 Note row in which the 1 occurs. Note row in which the 1 occurs. Make a product of all the input variables. Make a product of all the input variables. Put a bar over each variable that has a value of 0 in this row. Put a bar over each variable that has a value of 0 in this row.

Sum of Products - Single 1 Note row where the 1 occurs. Note row where the 1 occurs. Make product of all variables. ABC Make product of all variables. ABC Put bar over variables with 0 value. _ ABC Put bar over variables with 0 value. _ ABC

Sum of Products - General Case Want BE that is true if Want BE that is true if _ ABC is true OR _ ABC is true _ _ _ ABC+ABC+ABC _ _ _ ABC+ABC+ABC

Sum of Products Algorithm Identify each row of the output that has a 1. Identify each row of the output that has a 1. For each such row For each such row Make a product of all the input variables. Make a product of all the input variables. Put bar over each variable with a 0 in this row. Put bar over each variable with a 0 in this row. Make a sum of all of these product terms. Make a sum of all of these product terms.

Sum of Products - Example Problem: Design a logic circuit with Problem: Design a logic circuit with 3 input lines, 1 output line 3 input lines, 1 output line Anytime we change the value of any one of the inputs, the output value changes. Anytime we change the value of any one of the inputs, the output value changes. Think of a single light bulb controlled by three light switches that work independently. Think of a single light bulb controlled by three light switches that work independently. Note: Once we set the output for one set of inputs, the rest is determined. Note: Once we set the output for one set of inputs, the rest is determined. We’ll start with all inputs 0 giving output 0. We’ll start with all inputs 0 giving output 0.

Example continued 1’s in output give _ _ _ _ ABC + ABC _ _ + ABC + ABC 1’s in output give _ _ _ _ ABC + ABC _ _ + ABC + ABC

Circuit for the example A B Boolean Expression _ _ _ _ _ _ ABC+ABC+ABC+ABC C