(CSC-3501) Lecture 6 (31 Jan 2008) Seung-Jong Park (Jay) CSC S.J. Park. Announcement

Similar documents
Combinational Logic Design CH002

Module 4: Design and Analysis of Combinational Circuits 1. Module-4. Design and Analysis of Combinational Circuits

Combinational Logic. Combinational Logic Design Process, Three State Buffers, Decoders, Multiplexers, Encoders, Demultiplexers, Other Considerations

Formal Foundation of Digital Design

Asst. Prof. Thavatchai Tayjasanant, PhD. Power System Research Lab 12 th Floor, Building 4 Tel: (02)

Digital Logic and Design (Course Code: EE222) Lecture 14: Combinational Contd.. Decoders/Encoders

Unit 3. Logic Design

Encoders. Lecture 23 5

UNIT-2: BOOLEAN EXPRESSIONS AND COMBINATIONAL LOGIC CIRCUITS

2 Logic Gates THE INVERTER. A logic gate is an electronic circuit which makes logic decisions. It has one output and one or more inputs.

University of Technology

Subject: Analog and Digital Electronics Code:15CS32

Logic Design I (17.341) Fall Lecture Outline

Odd-Prime Number Detector The table of minterms is represented. Table 13.1

Chapter 3 Digital Logic Structures

Course Overview. Course Overview

TABLE 3-2 Truth Table for Code Converter Example

CHAPTER 3 BASIC & COMBINATIONAL LOGIC CIRCUIT

EECS 150 Homework 4 Solutions Fall 2008

COMBINATIONAL CIRCUIT

Gates and Circuits 1

Digital Electronic Concepts

LOGIC GATES AND LOGIC CIRCUITS A logic gate is an elementary building block of a Digital Circuit. Most logic gates have two inputs and one output.

COMPUTER ORGANIZATION & ARCHITECTURE DIGITAL LOGIC CSCD211- DEPARTMENT OF COMPUTER SCIENCE, UNIVERSITY OF GHANA

Digital. Design. R. Ananda Natarajan B C D

Analysis procedure. To obtain the output Boolean functions from a logic diagram, proceed as follows:

UNIT III. Designing Combinatorial Circuits. Adders

Chapter 3. H/w s/w interface. hardware software Vijaykumar ECE495K Lecture Notes: Chapter 3 1

Chapter 3 Digital Logic Structures

Logic diagram: a graphical representation of a circuit

Name: Class: Date: 1. As more electronic systems have been designed using digital technology, devices have become smaller and less powerful.

Combinational Logic Circuits. Combinational Logic

Chapter 3 Combinational Logic Design

Dr. Nicola Nicolici COE/EE2DI4 Midterm Test #1 Oct 18, 2006

Function Table of an Odd-Parity Generator Circuit

Gates and and Circuits

Number system: the system used to count discrete units is called number. Decimal system: the number system that contains 10 distinguished

CS302 Digital Logic Design Solved Objective Midterm Papers For Preparation of Midterm Exam

Lecture 2: Digital Logic Basis

Digital Systems Principles and Applications TWELFTH EDITION. 3-3 OR Operation With OR Gates. 3-4 AND Operations with AND gates

EEE 301 Digital Electronics

In this lecture: Lecture 3: Basic Logic Gates & Boolean Expressions

DELD UNIT 3. Question Option A Option B Option C Option D Correct Option A B C

Digital Integrated CircuitDesign

6.1 In this section, you will design (but NOT build) a circuit with 4 inputs,

Multiple input gates. The AND gate

Lecture 02: Digital Logic Review

Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates

Chapter 3 Describing Logic Circuits Dr. Xu

Lab Report: Digital Logic

Experiment # 4. Binary Addition & Subtraction. Eng. Waleed Y. Mousa

Combinational Circuits DC-IV (Part I) Notes

Function Table of 74LS138, 3-to-8 Decoder +5V 6 G1 4 G2A 5 G2B. 4-to-16 Decoder using two 74LS139, 3-to-8 Decoder

Combinational Circuits: Multiplexers, Decoders, Programmable Logic Devices

Positive and Negative Logic

CSCI "Decoders & Demultiplexers"

Digital Electronics 8. Multiplexer & Demultiplexer

Topic Notes: Digital Logic

UNIT-IV Combinational Logic

LOGIC DIAGRAM: HALF ADDER TRUTH TABLE: A B CARRY SUM. 2012/ODD/III/ECE/DE/LM Page No. 1

UC Berkeley CS61C : Machine Structures


3.1 There are three basic logic functions from which all circuits can be designed: NOT (invert), OR, and

Fan in: The number of inputs of a logic gate can handle.

Combinational logic. ! Regular logic: multiplexers, decoders, LUTs and FPGAs. ! Switches, basic logic and truth tables, logic functions

UC Berkeley CS61C : Machine Structures

SRV ENGINEERING COLLEGE SEMBODAI RUKMANI VARATHARAJAN ENGINEERING COLLEGE SEMBODAI

EXPERIMENT NO 1 TRUTH TABLE (1)

JEFFERSON COLLEGE COURSE SYLLABUS ETC255 INTRODUCTION TO DIGITAL CIRCUITS. 6 Credit Hours. Prepared by: Dennis Eimer

Subtractor Logic Schematic

UC Berkeley CS61C : Machine Structures

QUIZ. What do these bits represent?

CS/ECE 252: INTRODUCTION TO COMPUTER ENGINEERING UNIVERSITY OF WISCONSIN MADISON

Adder (electronics) - Wikipedia, the free encyclopedia

MAHALAKSHMI ENGINEERING COLLEGE TIRUCHIRAPALLI

Digital Applications (CETT 1415) Credit: 4 semester credit hours (3 hours lecture, 4 hours lab) Prerequisite: CETT 1403 & CETT 1405

Combinational Logic. Rab Nawaz Khan Jadoon DCS. Lecturer COMSATS Lahore Pakistan. Department of Computer Science

A SUBSTRATE BIASED FULL ADDER CIRCUIT

Chapter 4 Combinational Logic Circuits

ECE380 Digital Logic

DIGITAL ELECTRONICS. Methods & diagrams : 1 Graph plotting : - Tables & analysis : - Questions & discussion : 6 Performance : 3

S-[F] NPW-02 June All Syllabus B.Sc. [Electronics] Ist Year Semester-I & II.doc - 1 -

LIST OF EXPERIMENTS. KCTCET/ /Odd/3rd/ETE/CSE/LM

In this lecture: Lecture 8: ROM & Programmable Logic Devices

a b y UC Berkeley CS61C : Machine Structures Hello Helo,world!

Chapter 1: Digital logic

Lecture 3: Logic circuit. Combinational circuit and sequential circuit

Experiment # 3 Combinational Circuits (I) Binary Addition and Subtraction

COURSE LEARNING OUTCOMES AND OBJECTIVES

Chapter 4 Combinational Logic Circuits

DIGITAL ELECTRONICS QUESTION BANK

International Journal of Scientific & Engineering Research, Volume 5, Issue 5, May-2014 ISSN

Data output signals May or may not be same a input signals

WEEK 4.1. ECE124 Digital Circuits and Systems Page 1

This Figure here illustrates the operation for a 2-input OR gate for all four possible input combinations.

Digital Logic Design ELCT 201

Laboratory Manual CS (P) Digital Systems Lab

CHW 261: Logic Design

B.C.A 2017 DIGITAL ELECTRONICS BCA104T MODULE SPECIFICATION SHEET. Course Outline

FUNCTION OF COMBINATIONAL LOGIC CIRCUIT

Transcription:

Seung-Jong Park (Jay) http://www.csc.lsu.edu/~sjpark Computer Architecture (CSC-3501) Lecture 6 (31 Jan 2008) 1 Announcement 2 1

Reminder A logic circuit is composed of: Inputs Outputs Functional specification Timing specification inputs functional spec timing spec outputs Copyright 2007 Elsevier 2-<3> Sum-of-Products (SOP) Form All Boolean equations can be written in SOP form Each row in a truth table has a minterm A minterm is a product (AND) of literals Each minterm is TRUE for that row (and only that row) The function is formed by ORing the minterms for which the output is TRUE Thus, a sum (OR) of products (AND terms) Y = F(A, B, C) = AB + AB A B Y 0 0 0 0 1 1 1 0 0 1 1 1 minterm A B A B A B A B 4 2

Product-of-Sums (POS) Form All Boolean equations can be written in POS form Each row in a truth table has a maxterm A maxterm is a sum (OR) of literals Each maxterm is FALSE for that row (and only that row) The function is formed by ANDing the maxterms for which the output is FALSE Thus, a product (AND) of sums (OR terms Y = F(A, B, C) = (A + B)(A + B) A B Y 0 0 0 0 1 1 1 0 0 1 1 1 maxterm A + B A + B A + B A + B 5 Circuit Schematic Rules Wires always connect at a T junction A dot where wires cross indicates a connection between the wires Wires crossing without a dot make no connection wires connect at a T junction wires connect at a dot wires crossing without a dot do not connect Copyright 2007 Elsevier 2-<6> 3

Bubble Pushing Think DeMorgan s law Pushing bubbles backward (from the output) or forward (from the inputs) changes the body of the gate from AND to OR or vice versa. Pushing a bubble from the output back to the inputs puts bubbles on all gate inputs. A B Y A B Y Pushing bubbles on all gate inputs forward toward the output puts a bubble on the output and changes the gate body. A B Y A B Y 2-<7> NANDs are special! The NAND gate is universal: it can replace all other gates! NOT (xx) = x [ because xx = x ] AND ((xy) (xy) ) = xy [ from NOT above ] OR ((xx) (yy) ) = (x y ) [ xx = x, and yy = y ] = x + y [ DeMorgan s law ] 8 4

Making NAND circuits The easiest way to make a NAND circuit is to start with a regular, primitive gate-based diagram. Two-level circuits are trivial to convert, so here is a slightly more complex random example. 9 Converting to a NAND circuit Step 1: Convert all AND gates to NAND gates using AND-NOT symbols, and convert all OR gates to NAND gates using NOT- OR symbols. 10 5

Converting to NAND, concluded Step 2: Make sure you added bubbles along lines in pairs ((x ) = x). If not, then either add inverters or complement the input variables. ab 11 Combinational vs. Sequential Logic Combinational Logic Memoryless Outputs determined by current values of inputs Sequential Logic Has memory Outputs determined by previous and current values of inputs Reference Logic and Computer Design Fundamentals by Mano http://www.writphotec.com/mano/ 12 6

Combinational Logic Every circuit element is itself combinational Every node of the circuit is either designated as an input to the circuit or connects to exactly one output terminal of a circuit element The circuit contains no cyclic paths: every path through the circuit visits each circuit node at most once Example: 13 Basic Combinational Logics Arithmetic Functions ADD, Subtract, Multiply, Division Encoder/Decoder Multiplexer(Selector) /Demultiplexer 14 7

Half Adder Combinational logic One of the simplest is the half adder, which finds the sum of two bits. We can gain some insight as to the construction of a half adder by looking at its truth table, shown at the right. As we see, the sum can be found using the XOR operation and the carry using the AND operation. 15 Full Adder We can change our half adder into to a full adder by including gates for processing the carry bit. The truth table for a full adder is shown at the right. 16 8

Ripple Carry Adder Just as we combined half adders to make a full adder, full adders can connected in series. The carry bit ripples from one adder to the next; hence, this configuration is called a ripple-carry adder. Should wait for previous results Today s systems employ more efficient adders. Carry look-ahead adder 17 Enable Enable is a common input to logic functions See it in memories, and today s blocks Change value inside buffer or memory 18 9

Decoder Decoders are another important type of combinational circuit. Among other things, they are useful in selecting a memory location according a binary value placed on the address lines of a memory bus. Address decoders with n inputs can select any of 2 n locations. 19 2-to-4 Decoder Truth table for 2-to-4 decoder? x y xy xy xy xy 0 0 0 1 1 0 1 1 20 10

3-to-8 Decoder Notice that outputs are minterms 21 Encoder Encoder is the opposite of decoder 2 n inputs n outputs 22 11

Truth Table of 8-to-3 Encoder 23 Inputs are Minterms Can OR them together appropriately A 0 = D 1 + D 3 + D 5 + D 7 24 12

What s the Problem? What if D3 and D6 both high? 25 Priority Encoder Chooses one with highest priority Largest number, usually Note don t t cares What if all inputs are zero? 26 13

Need Another Output A Valid output 27 Valid is OR of inputs 28 14

Multiplexer A multiplexer does just the opposite of a decoder. It selects a single output from several inputs. The particular input chosen for output is determined by the value of the multiplexer s control lines. To be able to select among n inputs, log 2 n control lines are needed. If S 0 = 1 and S 1 = 0, which input is transferred to the output? 29 Combinational vs. Sequential? Combinational logic circuits are perfect for situations when we require the immediate application of a Boolean function to a set of inputs. There are other times, however, when we need a circuit to change its value with consideration to its current state as well as its inputs. These circuits have to remember their current state. Sequential logic circuits provide this functionality for us. Example: design vending machine which sells something for 4 coins Vending machine A with 4 input holes Vending machine B with 1 input hole 30 15