Logic Design CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.

Slides:



Advertisements
Similar presentations
Logic Gates.
Advertisements

Computer Science 210 Computer Organization Introduction to Logic Circuits.
Digital Circuits. Review – Getting the truth table The first step in designing a digital circuit usually is to get the truth table. That is, for every.
Chapter 4 Gates and Circuits.
Lecture 14 Today we will Learn how to implement mathematical logical functions using logic gate circuitry, using Sum-of-products formulation NAND-NAND.
9/19/06 Hofstra University – Overview of Computer Science, CSC005 1 Chapter 4 Gates and Circuits.
Combinational Logic1 DIGITAL LOGIC DESIGN by Dr. Fenghui Yao Tennessee State University Department of Computer Science Nashville, TN.
ECE 301 – Digital Electronics
Lecture 3. Boolean Algebra, Logic Gates
Propositional Calculus Math Foundations of Computer Science.
Part 2: DESIGN CIRCUIT. LOGIC CIRCUIT DESIGN x y z F F = x + y’z x y z F Truth Table Boolean Function.
Propositional Calculus Math Foundations of Computer Science.
Today’s Topics Digital Logic Design Digital Logic Design Boolean Logic Boolean Logic Digital Logic Circuits Digital Logic Circuits.
Lecture 3. Boolean Algebra, Logic Gates Prof. Sin-Min Lee Department of Computer Science 2x.
Chapter 4 Gates and Circuits. 4–2 Chapter Goals Identify the basic gates and describe the behavior of each Describe how gates are implemented using transistors.
1 CHAPTER 4: PART I ARITHMETIC FOR COMPUTERS. 2 The MIPS ALU We’ll be working with the MIPS instruction set architecture –similar to other architectures.
Logic Design CS221 1 st Term combinational circuits Cairo University Faculty of Computers and Information.
Systems Architecture I1 Propositional Calculus Objective: To provide students with the concepts and techniques from propositional calculus so that they.
Binary Addition CSC 103 September 17, 2007.
Chapter 4 The Building Blocks: Binary Numbers, Boolean Logic, and Gates.
Transistors and Logic Circuits. Transistor control voltage in voltage out control high allows current to flow -- switch is closed (on) control low stops.
Binary Addition Section 4.5. Binary Addition Example.
+ CS 325: CS Hardware and Software Organization and Architecture Combinational Circuits 1.
Apr. 3, 2000Systems Architecture I1 Systems Architecture I (CS ) Lecture 3: Review of Digital Circuits and Logic Design Jeremy R. Johnson Mon. Apr.
Module 9.  Digital logic circuits can be categorized based on the nature of their inputs either: Combinational logic circuit It consists of logic gates.
Digital Electronics Lecture 6 Combinational Logic Circuit Design.
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.
IT253: Computer Organization Lecture 7: Logic and Gates: Digital Design Tonga Institute of Higher Education.
4. Computer Maths and Logic 4.2 Boolean Logic Logic Circuits.
Digital Logic. 2 Abstractions in CS (gates) Basic Gate: Inverter IO IO GNDI O Vcc Resister (limits conductivity) Truth Table.
ES 244: Digital Logic Design Chapter 4 Chapter 4: Combinational Logic Uchechukwu Ofoegbu Temple University.
1 Lecture 6 BOOLEAN ALGEBRA and GATES Building a 32 bit processor PH 3: B.1-B.5.
Propositional Calculus CS 270: Mathematical Foundations of Computer Science Jeremy Johnson.
Lecture 18: Hardware for Arithmetic Today’s topic –Intro to Boolean functions (Continued) –Designing an ALU 1.
1 Ethics of Computing MONT 113G, Spring 2012 Session 5 Binary Addition.
Logic Gates Informatics INFO I101 February 3, 2003 John C. Paolillo, Instructor.
Appendix C Basics of Digital Logic Part I. Florida A & M University - Department of Computer and Information Sciences Modern Computer Digital electronics.
1 Fundamentals of Computer Science Combinational Circuits.
Apr. 3, 2000Systems Architecture I1 Introduction to VHDL (CS 570) Jeremy R. Johnson Wed. Nov. 8, 2000.
Module 11.  In Module 9, we have been introduced to the concept of combinational logic circuits through the examples of binary adders.  Meanwhile, in.
May 9, 2001Systems Architecture I1 Systems Architecture I (CS ) Lab 5: Introduction to VHDL Jeremy R. Johnson May 9, 2001.
Chapter 3 Digital Logic Structures
Gates AND, OR, NOT NAND, NOR Combinational logic No memory A set of inputs uniquely and unambiguously specifies.
President UniversityErwin SitompulDigital Systems 7/1 Lecture 7 Digital Systems Dr.-Ing. Erwin Sitompul President University
4–1. BSCS 5 th Semester Introduction Logic diagram: a graphical representation of a circuit –Each type of gate is represented by a specific graphical.
LOGIC CIRCUITLOGIC CIRCUIT. Goal To understand how digital a computer can work, at the lowest level. To understand what is possible and the limitations.
Programming for GCSE Topic 9.2: Circuits for Adding T eaching L ondon C omputing William Marsh School of Electronic Engineering and Computer Science Queen.
L OGIC G ATES Computer Organization – week 3. W HAT ’ S ALU? 1. ALU stands for: Arithmetic Logic Unit 2. ALU is a digital circuit that performs Arithmetic.
Chapter 12. Chapter Summary Boolean Functions Representing Boolean Functions Logic Gates Minimization of Circuits (not currently included in overheads)
Dr.Ahmed Bayoumi Dr.Shady Elmashad
CS 270: Mathematical Foundations of Computer Science
ECE 3130 Digital Electronics and Design
Systems Architecture Lab: Introduction to VHDL
Transistors and Logic Circuits
Jeremy R. Johnson Wed. Sept. 29, 1999
Computer Science 210 Computer Organization
Jeremy R. Johnson Anatole D. Ruslanov William M. Mongan
Propositional Calculus: Boolean Algebra and Simplification
Logic Gates.
Boolean Algebra.
Week 7: Gates and Circuits: PART II
Digital Logic.
Lecture 11: Hardware for Arithmetic
COSC 2021: Computer Organization Instructor: Dr. Amir Asif
Logic Gates.
Digital Logic.
DIGITAL ELECTRONICS B.SC FY
Logic Gates.
XOR Function Logic Symbol  Description  Truth Table 
LOGIC Circuits.
Presentation transcript:

Logic Design CS 270: Mathematical Foundations of Computer Science Jeremy Johnson

2 Logic Design  Objective: To provide an important application of propositional logic to the design and simplification of logic circuits.

3 Topics  Logic gates  and, or, inverter  nand  Logic circuits  Encoder, decoder, multiplexor  Simplification of logic circuits  Full adder

4 Logic Circuits  A single line labeled x is a logic circuit. One end is the input and the other is the output. If A and B are logic circuits so are:  and gate  or gate  inverter (not) A B A A B

5 Logic Circuits  Given a boolean expression it is easy to write down the corresponding logic circuit  Here is the circuit for the original multiplexor expression x0x0 x1x1 s

6 Logic Circuits  Here is the circuit for the simplified multiplexor expression x0x0 x1x1 s

7 Nand  Nand – negation of the conjunction operation:  A nand gate is an inverted and gate: x y x | y

Nand is functionally complete  All boolean functions can be implemented using nand gates (and, or and not can be implemented using nand)  not:  and:  or:

9 Implementing Logic Gates with Transistors output gate +V ground A Transistor NOT Gate A NAND B A +V ground A Transistor NAND Gate B

10 Decoder  A decoder is a logic circuit that has n inputs (think of this as a binary number) and 2 n outputs. The output corresponding to the binary input is set to 1 and all other outputs are set to 0. d0d0 d1d1 d2d2 d3d3 b0b0 b1b1

11 Encoder  An encoder is the opposite of a decoder. It is a logic circuit that has 2 n inputs and n outputs. The output equal to the input line (in binary) that is set to 1 is set to 1. d0d0 d1d1 d2d2 d3d3 b0b0 b1b1

12 Multiplexor  A multiplexor is a switch which routes n inputs to one output. The input is selected using a decoder. d0d0 d1d1 d2d2 d3d3 s0s0 s1s1

XOR  “One or the other, but not both”  Notation for circuits: x y x y x  y

14 Full Adder  Used to add to binary numbers stored as an array of bits using carry ripple addition  Three binary inputs  a, b and CarryIn  Two binary outputs  Sum and CarryOut such that a + b + CarryIn = 2*CarryOut + Sum Carry 110 A 101 B 111 A+B = 1100

15 Exercise  Derive a truth table for the output bits (Sum and CarryOut) of a full adder.  Using the truth table derive a sum of products expression for Sum and CarryOut. Draw a circuit for these expressions.  Using properties of Boolean algebra simplify your expressions. Draw the simplified circuits.

16 Solution

17 Solution

18 Solution

19 Full Adder  Sum = parity(a,b,CarryIn)  a  b  c + a  b  c  a  b  c  CarryOut = majority(a,b,CarryIn)  b  CarryIn + a  CarryIn + a  b + a  b  CarryIn   b  CarryIn + a  CarryIn + a  b b a CarryIn Sum