Computer Science 210 Computer Organization

Slides:



Advertisements
Similar presentations
Logic Gates.
Advertisements

CT455: Computer Organization Logic gate
Computer Science 210 Computer Organization Introduction to Logic Circuits.
Programmable Logic Controllers.
L14: Boolean Logic and Basic Gates
Chapter 4 Logic Gates and Boolean Algebra. Introduction Logic gates are the actual physical implementations of the logical operators. These gates form.
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Fourth Edition.
Logic Gate A logic gate is an electronic circuit which makes logic decisions. It has one output and one or more inputs. The output signal appears only.
Computer Science 101 Circuit Design Algorithm. Circuit Design - The Problem The problem is to design a circuit that accomplishes a specified task. The.
CPSC 171 Introduction to Computer Science Boolean Logic, Gates, & Circuits.
BUILDING COMPUTER CIRCUITS prepared by Burak Galip ASLAN September, 2006 BOOLEAN LOGIC AND GATES CONTROL CIRCUITS.
Logic gates & Boolean Algebra. Introduction Certain components (called logic elements) of the computer combine electric pulses using a set of rules. Electric.
Chapter 2: Fundamentals of Digital Electronics Dr Mohamed Menacer Taibah University
Transistors and Logic Circuits. Transistor control voltage in voltage out control high allows current to flow -- switch is closed (on) control low stops.
CSCI-235 Micro-Computers in Science Hardware Design Part I.
Computer Science 101 Logic Gates and Simple Circuits.
1 The Chinese University of Hong Kong Faculty of Education Diploma in Education (Part-Time) Winter 1997 Educational Communications and Technology Assignment.
Introduction to Digital Logic and Circuits EE 101, Fall 2015 University of Kentucky.
Apr. 3, 2000Systems Architecture I1 Systems Architecture I (CS ) Lecture 3: Review of Digital Circuits and Logic Design Jeremy R. Johnson Mon. Apr.
Computer Science 210 Computer Organization Introduction to Boolean Algebra.
LOGIC GATES.
Week 6: Gates and Circuits: PART I READING: Chapter 4.
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.
CSCI-100 Introduction to Computing Hardware Design Part I.
Circuit Simplification Truth Table  Minimized Logic Gates.
4. Computer Maths and Logic 4.2 Boolean Logic Logic Circuits.
Combination of logic gates  Logic gates can be combined to produce more complex functions.  They can also be combined to substitute one type of gate.
Logic Design CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
CHAPTER 1 SETS, FUNCTIONs, ELEMENTARY LOGIC & BOOLEAN ALGEBRAs
CMOS Logic Gates. NMOS transistor acts as a switch 2 When gate voltage is 0 V No channel is formed current does not flow easily “open switch” When gate.
CHAPTER 1 INTRODUCTION TO DIGITAL LOGIC. De Morgan’s Theorem De Morgan’s Theorem.
Binary Logic Derrington KCL CPD/SKE Binary We’ve seen how data of all different sorts and kinds can be represented as binary bits… 0s and 1s 1 is.
Logic Gates and Boolean Algebra Introduction to Logic II.
Circuits, Truth Tables & Boolean Algebra. Expressions Can describe circuits in terms of Boolean expression.
LOGIC GATES. INTRODUCTION TO LOGIC GATES Boolean functions may be practically implemented by using electronic gates. The following points are important.
Logic gates.
Invitation to Computer Science, C++ Version, Fourth Edition
Digital Logic.
Introductory Lecture on Digital Electronics
Logic Gates and Boolean Algebra
Computer Science 210 Computer Organization
Transistors and Logic Circuits
Transistors and Logic Circuits
Logic Gates.
Logic Gates Benchmark Companies Inc PO Box Aurora CO
CSCI-100 Introduction to Computing
Chapter 2.3 Binary Logic.
CHAPTER 3 SETS AND BOOLEAN ALGEBRA
Digital Signals Digital Signals have two basic states:
Jeremy R. Johnson Wed. Sept. 29, 1999
Fundamentals & Ethics of Information Systems IS 201
Invitation to Computer Science, Java Version, Third Edition
Jeremy R. Johnson Anatole D. Ruslanov William M. Mongan
SOLIDS AND SEMICONDUCTOR DEVICES - IV
Agenda – 2/12/18 Questions? Readings: CSI 4, P
Circuits, Truth Tables & Boolean Algebra
Computer Science 210 Computer Organization
Logic Gates.
Logic Gates.
SOLIDS AND SEMICONDUCTOR DEVICES - IV
Gates Type AND denoted by X.Y OR denoted by X + Y NOR denoted by X + Y
GCSE Computer Science – Logic Gates & Boolean Expressions
Chapter 10.3 and 10.4: Combinatorial Circuits
Binary Logic.
Lecture 5 Binary Operation Boolean Logic. Binary Operations Addition Subtraction Multiplication Division.
Truth tables Mrs. Palmer.
SOLIDS AND SEMICONDUCTOR DEVICES - IV
Digital Logic Design Basics Combinational Circuits Sequential Circuits.
Further binary, Logic diagrams and truth tables
DIGITAL ELECTRONICS AND LOGIC GATES. ANALOG SIGNAL:- Analog signal is continuous time varying current or voltage signal.
Presentation transcript:

Computer Science 210 Computer Organization Introduction to Logic Circuits (Chapter 3)

From Boolean Logic to Hardware Boolean values true and false map to binary values 1 and 0 Binary values 1 and 0 map to discrete states on and off Discrete states on and off map to voltage levels +5V and 0V on an analog device Connect these devices to perform logical operations

Transistor - Electronic Switch Collector Base Emitter Switch Base High (+5v or 1) Makes connection Base Low (0v or 0) Disconnects

AND Gate Output is 1 only if Output = Input1 AND Input2 +5v Input-1 is 1 and Input-2 is 1 Output = Input1 AND Input2 Input-1 Input-2 AND Gate A AB B Output

OR Gate Output is 1 if Output = A OR B A is 1 or if B is 1 +5v A B

NOT Gate Input High (+5v or 1) Output Low (0v or 0) Input Low (0v or 0) Output High (+5v or 1) Output is opposite of Input +5v Output Input NOT Gate A _ Ground

Basic Gates AND Gate A AB B NAND Gate A B ___ AB OR Gate A A + B B NOR Gate A B _____ A + B NOT Gate A _

Boolean Exp  Logic Circuit To draw a circuit from a Boolean expression: From the left, make an input line for each variable. Next, put a NOT gate in for each variable that appears negated in the expression. Still working from left to right, build up circuits for the subexpressions, from simple to complex.

Logic Circuit A~B + ~(A+B)B Input Lines for Variables A B

Logic Circuit A~B + ~(A+B)B NOT Gate for B A B _ B

Logic Circuit A~B + ~(A+B)B _ Subexpression AB _ AB A B _ B

Logic Circuit A~B + ~(A+B)B Subexpression A+B _ AB A B A+B _ B

Logic Circuit A~B + ~(A+B)B ___ Subexpression A+B _ AB A ____ A+B B A+B _ B

Logic Circuit A~B + ~(A+B)B ___ Subexpression (A+B)B _ AB A ____ A+B B A+B _ B ____ (A+B)B

Logic Circuit A~B + ~(A+B)B Entire Expression _ AB A B A+B ____ A+B _ B ____ (A+B)B

Designing a Circuit from a Truth Table The problem reduces to this: Given a truth table with all values for inputs. And given a column of values for the output. Find a Boolean expression that gives the column. If we can do this, we can get the circuit from the Boolean expression. The Sum of Products algorithm finds the expression.

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

Sum of Products Example https://www.allaboutcircuits.com/textbook/digital/chpt-7/converting-truth-tables-boolean-expressions/

The Boolean Triangle Boolean Expression Logic Circuit Truth Table