CHAPTER VI COMBINATIONAL LOGIC BUILDING BLOCKS

Similar documents
CHAPTER VI COMBINATIONAL LOGIC BUILDING BLOCKS

CSE 140 Lecture 11 Standard Combinational Modules. CK Cheng and Diba Mirza CSE Dept. UC San Diego

Logic. Combinational. inputs. outputs. the result. system can

ECE 545 Digital System Design with VHDL Lecture 1. Digital Logic Refresher Part A Combinational Logic Building Blocks

ELCT201: DIGITAL LOGIC DESIGN

Combinational Logic. Mantıksal Tasarım BBM231. section instructor: Ufuk Çelikcan

Combinatorial RTL Components

Number System. Decimal to binary Binary to Decimal Binary to octal Binary to hexadecimal Hexadecimal to binary Octal to binary

Chapter 4. Combinational: Circuits with logic gates whose outputs depend on the present combination of the inputs. elements. Dr.

Digital Logic Design ENEE x. Lecture 14

ENGIN 112 Intro to Electrical and Computer Engineering

COMBINATIONAL LOGIC FUNCTIONS

COMBINATIONAL LOGIC CIRCUITS. Dr. Mudathir A. Fagiri

Combinational Logic. By : Ali Mustafa

Unit 3 Session - 9 Data-Processing Circuits

Function of Combinational Logic ENT263

Class Website:

MODULAR CIRCUITS CHAPTER 7

We are here. Assembly Language. Processors Arithmetic Logic Units. Finite State Machines. Circuits Gates. Transistors

IT T35 Digital system desigm y - ii /s - iii

Appendix B. Review of Digital Logic. Baback Izadi Division of Engineering Programs

ECE 2300 Digital Logic & Computer Organization

Chapter 4: Combinational Logic Solutions to Problems: [1, 5, 9, 12, 19, 23, 30, 33]

ว ตถ ประสงค ของบทเร ยน

XI STANDARD [ COMPUTER SCIENCE ] 5 MARKS STUDY MATERIAL.

ECE 545 Digital System Design with VHDL Lecture 1A. Digital Logic Refresher Part A Combinational Logic Building Blocks

Systems I: Computer Organization and Architecture

CHAPTER1: Digital Logic Circuits Combination Circuits

CprE 281: Digital Logic

CprE 281: Digital Logic

DESIGN AND IMPLEMENTATION OF ENCODERS AND DECODERS. To design and implement encoders and decoders using logic gates.

Combinational Logic. Jee-Hwan Ryu. School of Mechanical Engineering Korea University of Technology and Education

Combina-onal Logic Chapter 4. Topics. Combina-on Circuit 10/13/10. EECE 256 Dr. Sidney Fels Steven Oldridge

211: Computer Architecture Summer 2016

Combinational Logic. Lan-Da Van ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C.

Total Time = 90 Minutes, Total Marks = 50. Total /50 /10 /18

Combinational Logic. Lan-Da Van ( 范倫達 ), Ph. D. Department of Computer Science National Chiao Tung University Taiwan, R.O.C.

Fundamentals of Digital Design

Hardware Design I Chap. 4 Representative combinational logic

BOOLEAN ALGEBRA. Introduction. 1854: Logical algebra was published by George Boole known today as Boolean Algebra

Floating Point Representation and Digital Logic. Lecture 11 CS301

CSE140: Components and Design Techniques for Digital Systems. Decoders, adders, comparators, multipliers and other ALU elements. Tajana Simunic Rosing

UNIT II COMBINATIONAL CIRCUITS:

Design of Sequential Circuits

Digital System Design Combinational Logic. Assoc. Prof. Pradondet Nilagupta

XOR - XNOR Gates. The graphic symbol and truth table of XOR gate is shown in the figure.


Building a Computer Adder

Combinational Logic Design Combinational Functions and Circuits

Sample Test Paper - I

ARITHMETIC COMBINATIONAL MODULES AND NETWORKS

CMSC 313 Lecture 18 Midterm Exam returned Assign Homework 3 Circuits for Addition Digital Logic Components Programmable Logic Arrays

Digital Logic. CS211 Computer Architecture. l Topics. l Transistors (Design & Types) l Logic Gates. l Combinational Circuits.

COSC 243. Introduction to Logic And Combinatorial Logic. Lecture 4 - Introduction to Logic and Combinatorial Logic. COSC 243 (Computer Architecture)

COMBINATIONAL CIRCUITS

Design of Combinational Logic

Chapter 3 Ctd: Combinational Functions and Circuits

CSEE 3827: Fundamentals of Computer Systems. Combinational Circuits

CMP 334: Seventh Class

3. Combinational Circuit Design

9/29/2016. Task: Checking for a Lower-Case Letter. ECE 120: Introduction to Computing. Change C 5 to C 5 to Obtain L(C) from U(C)

Digital Logic: Boolean Algebra and Gates. Textbook Chapter 3

DIGITAL LOGIC CIRCUITS

Lecture 22 Chapters 3 Logic Circuits Part 1

CSC9R6 Computer Design. Practical Digital Logic

Part 1: Digital Logic and Gates. Analog vs. Digital waveforms. The digital advantage. In real life...

ECE 250 / CPS 250 Computer Architecture. Basics of Logic Design Boolean Algebra, Logic Gates

ECE/CS 250 Computer Architecture

Looking at a two binary digit sum shows what we need to extend addition to multiple binary digits.

Arithmetic Circuits-2

DIGITAL LOGIC CIRCUITS

Computer Science Final Examination Friday December 14 th 2001

Chapter 3 Combinational Logic Design

Computer Science. 19. Combinational Circuits. Computer Science COMPUTER SCIENCE. Section 6.1.

Lecture 2 Review on Digital Logic (Part 1)

DE58/DC58 LOGIC DESIGN DEC 2014

Boolean Algebra and Digital Logic 2009, University of Colombo School of Computing

Chapter 4 (Lect 4) Encoders Multiplexers Three-State Gates More Verilog

Every time has a value associated with it, not just some times. A variable can take on any value within a range

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING CS6201 DIGITAL PRINCIPLES AND SYSTEM DESIGN

UNIT 8A Computer Circuitry: Layers of Abstraction. Boolean Logic & Truth Tables

Chapter 4: Designing Combinational Systems Uchechukwu Ofoegbu

COSC3330 Computer Architecture Lecture 2. Combinational Logic

University of Toronto Faculty of Applied Science and Engineering Final Examination

ECE 341. Lecture # 3

Slides for Lecture 19

Chapter 2 (Lect 2) Canonical and Standard Forms. Standard Form. Other Logic Operators Logic Gates. Sum of Minterms Product of Maxterms

A B D 1 Y D 2 D 3. Truth table for 4 to 1 MUX: A B Y 0 0 D D D D 3

DIGITAL TECHNICS. Dr. Bálint Pődör. Óbuda University, Microelectronics and Technology Institute

Menu. 7-Segment LED. Misc. 7-Segment LED MSI Components >MUX >Adders Memory Devices >D-FF, RAM, ROM Computer/Microprocessor >GCPU

Combinational Logic. Review of Combinational Logic 1

Combinational Logic Design/Circuits

Appendix A: Digital Logic. Principles of Computer Architecture. Principles of Computer Architecture by M. Murdocca and V. Heuring

Digital Techniques. Figure 1: Block diagram of digital computer. Processor or Arithmetic logic unit ALU. Control Unit. Storage or memory unit

ELCT201: DIGITAL LOGIC DESIGN

Philadelphia University Student Name: Student Number:

ECE/CS 250: Computer Architecture. Basics of Logic Design: Boolean Algebra, Logic Gates. Benjamin Lee

LOGIC CIRCUITS. Basic Experiment and Design of Electronics

CSE370 HW3 Solutions (Winter 2010)

Boolean Logic Continued Prof. James L. Frankel Harvard University

Transcription:

CHAPTR VI- CHAPTR VI CHAPTR VI BUILDING BLOCKS R.M. Dansereau; v..

CHAPTR VI- COMBINAT. LOGIC INTRODUCTION -INTRODUCTION Combinational logic Output at any time is determined completely by the current input. We will later consider circuits where the output is determined by the input and the current state (memory) of the system. In this chapter we will consider some useful building blocks that can be pieced together and used in larger designs. This will include: Multiplexers (selectors) and demultiplexers (distributors) ncoders, priority encoders, decoders Adders (full and half) Parity generators and parity checkers Shifters and rotators Comparators R.M. Dansereau; v..

CHAPTR VI- DCODRS BASIC DCODR -INTRODUCTION Standard decoder is an n-to-m-line decoder, where m n. xample: -to-8-line decoder A A -to-8 Decoder 4 5 6 7 D D D D D 4 D 5 D 6 D 7 xample: Input of -to-8 Decoder 4 5 6 7 All outputs are low except for the one corresponding to the binary D m value of the input An AA. R.M. Dansereau; v..

CHAPTR VI-4 DCODRS DCODRS WITH NABL DCODRS -BASIC DCODR Often, combinational logic building blocks will also have an enable line that turns on outputs or leaves them off. -to-8 Decoder with nable A A Module nable -to-8 Decoder 4 5 6 7 D D D D D 4 D 5 D 6 D 7 R.M. Dansereau; v..

R.M. Dansereau; v.. INTRO. TO COMP. NG. CHAPTR VI-5 DCODRS TRUTH TABLS DCODRS -BASIC DCODR -WITH NABL Truth table for a -to-8-line decoder: D D D 4 D D D 5 D 6 D 7 Outputs Inputs A A

CHAPTR VI-6 DCODRS IMPLMNTATION DCODRS -BASIC DCODR -WITH NABL -TRUTH TABLS How can a decoder be implemented? Fill in the circuit! A A D 7 D 6 D 5 D 4 D D D D A A A A A A A A A A A A A A A A R.M. Dansereau; v..

CHAPTR VI-7 DCODRS DSIGNING WITH DCODRS DCODRS -WITH NABL -TRUTH TABLS -IMPLMNTATION Any Boolean function can implemented using a decoder and OR gates by ORing together the function s minterms. Inputs A A Outputs F F A 4 5 6 F 7 -to-8 Decoder F R.M. Dansereau; v..

CHAPTR VI-8 DCODRS DCODR NTWORKS DCODRS -TRUTH TABLS -IMPLMNTATION -DSIGNING W/DCODRS We can also use multiple decoders to form a larger decoder. -to-8 Decoder Implemented with two -to-4 Decoders used with enable input to control which decoder will output the. A A -to-4 Decoder D D D D A and A used to select which output on specific decoder will output. -to-4 Decoder D 4 D 5 D 6 D 7 R.M. Dansereau; v..

CHAPTR VI-9 NCODRS BASIC NCODR DCODRS -IMPLMNTATION -DSIGNING W/DCODRS -DCODR NTWORKS Standard binary encoder is an m-to-n-line encoder, where m n. xample: 8-to--line encoder Module nable D D D D D 4 D 5 D 6 D 7 4 5 6 7 8-to- ncoder Ac A A xample: Input of 4 5 6 7 8-to- ncoder Module Active R.M. Dansereau; v..

R.M. Dansereau; v.. INTRO. TO COMP. NG. CHAPTR VI- NCODRS NCODR TRUTH TABL DCODRS NCODRS -BASIC NCODR Truth table for an 8-to--line encoder: Assumed that only one input is. What happens if more then one is? D D D 4 D D D 5 D 6 D 7 Outputs Inputs A A

CHAPTR VI- NCODRS DSIGNING WITH NCODRS DCODRS NCODRS -BASIC NCODR -TRUTH TABL ncoders are useful when the occurrence of one of several disjoint events needs to be represented by an integer identifying the event. xample: Wind direction encoder N NW N W 4 SW S 5 S 6 7 8-to- ncoder R.M. Dansereau; v.. pp. 5-54 of rcegovac, Lang and Moreno, Introduction to Digital Systems, 999.

CHAPTR VI- NCODRS PRIORITY NCODRS NCODRS -BASIC NCODR -TRUTH TABL -DSIGN W/ NCODRS A priority encoder takes the input of with the highest index and translates that index to the output. Inputs Outputs D 7 D 6 D 5 D 4 D D D D A A R.M. Dansereau; v..

CHAPTR VI- NCODRS DSIGN WITH P-NCODR NCODRS -TRUTH TABL -DSIGN W/ NCODRS -PRIORITY NCODRS Priority encoders are useful when inputs have a predefined priority and we wish to select the input with the highest priority. xample: Resolving interrupt requests Device A Device B Device C Device D Request Lines Lowest Priority Highest Priority -to-4 Priority ncoder Ac Processor pp. 5-56 of rcegovac, Lang and Moreno, Introduction to Digital Systems, 999. R.M. Dansereau; v..

CHAPTR VI-4 MULTIPLRS BASIC MULTIPLR (MU) NCODRS -DSIGN W/ NCODRS -PRIORITY NCODRS -DSIGN W/ P-NCODRS Selects one of many inputs to be directed to an output. A A A Module nable 4x Multiplexer S S Y f Y A A A Inputs Output F A = A = = A = A = A = = A = R.M. Dansereau; v..

CHAPTR VI-5 MULTIPLRS USING PASS GATS NCODRS MULTIPLRS -BASIC MULTIPLR The 4x mux can be implemented with pass gates as follows. Y A A Out (f) A Only one of A n gets passed to output. Depends on the value of and Y. R.M. Dansereau; v..

CHAPTR VI-6 MULTIPLRS DSIGN WITH MULTIPLRS NCODRS MULTIPLRS -BASIC MULTIPLR -USING PASS GATS Any Boolean function can be implemented by setting the inputs corresponding to the function and the selectors as the variables. xample: Y Z F Module nable 4 5 6 7 8x Multiplexer S S Y S Z f R.M. Dansereau; v..

CHAPTR VI-7 DMULTIPLRS BASIC DMULTIPLR MULTIPLRS -BASIC MULTIPLR -USING PASS GATS -DSIGN W/ MULTIPL. Takes one input and selects one of many outputs to direct the input. W Module nable x4 Demultiplexer S S Y D D D D Inputs Y W D D D D Outputs W= W= W= W= W= W= W= W= R.M. Dansereau; v..

CHAPTR VI-8 DMULTIPLRS DSIGN W/ DMULTIPLRS MULTIPLRS DMULTIPLRS -BASIC DMULTIPLR A demultiplexer is useful for routing an input to a desired location. xample: Input Data x4 Demultiplexer Processing Unit Processing Unit Processing Unit S S Processing Unit Selects which PU to send the input data. Y R.M. Dansereau; v..

CHAPTR VI- ADDRS HALF- AND FULL-ADDRS DMULTIPLRS SHIFTRS ROTATORS -BASIC ROTATOR Two basic building blocks for arithmetic are half- and full-adders as depicted by the block diagrams below. A B A B C OUT Carry-out HA C OUT Carry-out FA C IN Carry-in S Sum S Sum Half-adder Full-adder R.M. Dansereau; v..

CHAPTR VI- ADDRS HALF-ADDR (HA) SHIFTRS ROTATORS ADDRS -HALF- & FULL-ADDRS First of all, how do we add? s complement arithmetic allows us to add numbers normally. Inputs A B Sum Carry-out S = AB+ AB = A B S C OUT A B C OUT = AB S C OUT R.M. Dansereau; v..

CHAPTR VI-4 ADDRS FULL-ADDR (FA) () ROTATORS ADDRS -HALF- & FULL-ADDRS -HALF-ADDR (HA) Half-adder missed a possible carry-in. A full-adder (FA) includes this additional carry-in. Inputs Carry-in Sum Carry-out A B C IN S C OUT S = ( A B) C IN C OUT = AB + C IN ( A B) R.M. Dansereau; v..

CHAPTR VI-5 ADDRS FULL-ADDR (FA) () ADDRS -HALF- & FULL-ADDRS -HALF-ADDR (HA) -FULL-ADDR (FA) Half-adder S = ( A B) C IN C OUT = AB + C IN ( A B) Half-adder A B S C OUT C IN R.M. Dansereau; v..

CHAPTR VI-6 ADDRS BINARY ADDITION ADDRS -HALF- & FULL-ADDRS -HALF-ADDR (HA) -FULL-ADDR (FA) A 4-bit binary adder can be formed with four full-adders as follows. A B B A B A B FA C FA C FA C FA C S S S S C 4 R.M. Dansereau; v..

CHAPTR VI-7 COMPARATORS MAGNITUD COMPARATOR ADDRS -HALF-ADDR (HA) -FULL-ADDR (FA) -BINARY ADDITION Given two n-bit magnitudes, A and B, a comparator indicates whether A = B, A > B, or A < B n-bit input magnitudes Cascaded input values from other comparators n A n B Results of comparisons Greater qual Less c in G c in c in L 4-Bit Comparator G Greater (A > B) qual (A = B) L Less (A < B) R.M. Dansereau; v..

CHAPTR VI-8 COMPARATORS MAGNITUD COMPARATOR ADDRS COMPARATORS -MAG. COMPARATOR The approach is to use the NOR function (equivalence) on each of the n- bits as follows x i = A i B i + A i B I = A i B i The Boolean functions for a 4-bit magnitude comparator is as follows ( A = B) = x x x x ( A> B) = A B + x B + x x A B + x x x A B ( A< B) = A B + x B + x x A B + x x x A B Note: A i B i indicates whether A i > B i, A i B i indicates whether A i < B i, and x i indicates whether A i = B i. R.M. Dansereau; v..