Top-down modular design

Slides:



Advertisements
Similar presentations
5.5 Encoders A encoder is a multiple-input, multiple-output logic circuit that converts coded inputs into coded outputs, where the input and output codes.
Advertisements

Give qualifications of instructors: DAP
Princess Sumaya University
Modular Combinational Logic
Logical Design.
Combinational Circuits
Functions and Functional Blocks
Chapter 4 -- Modular Combinational Logic. Decoders.
Combinational Circuits. Analysis Diagram Designing Combinational Circuits In general we have to do following steps: 1. Problem description 2. Input/output.
Decoders/DeMUXs CS370 – Spring Decoder: single data input, n control inputs, 2 outputs control inputs (called select S) represent Binary index of.
1 KU College of Engineering Elec 204: Digital Systems Design Lecture 9 Programmable Configurations Read Only Memory (ROM) – –a fixed array of AND gates.
ECE C03 Lecture 61 Lecture 6 Arithmetic Logic Circuits Hai Zhou ECE 303 Advanced Digital Design Spring 2002.
Lecture 8 Arithmetic Logic Circuits
1 EE365 Three-state Outputs Encoders Multiplexers XOR gates.
COMBINATIONAL CIRCUITS USING TTL 74XX ICS
DIGITAL SYSTEMS TCE OTHER COMBINATIONAL LOGIC CIRCUITS DECODERS ENCODERS.
Digital Logic Design Lecture 19. Announcements Homework 6 due Thursday 11/6 Recitation quiz on Monday, 11/10 – Will cover material from lectures 18,19,20.
EE365 Adv. Digital Circuit Design Clarkson University Lecture #8 Buffers, Drivers, Encoders, MUXs & XORs.
Logic Gates Combinational Circuits
Adders, subtractors, ALUs
CS 105 Digital Logic Design
Chapter 3 Digital Logic Structures. Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 3-2 Building Functions.
Combinational Circuits
Morgan Kaufmann Publishers
Combinational Circuits Chapter 3 S. Dandamudi To be used with S. Dandamudi, “Fundamentals of Computer Organization and Design,” Springer, 2003.
Combinational Logic Design
Combinational and Sequential Logic Circuits.
Decoders.
Logical Circuit Design Week 8: Arithmetic Circuits Mentor Hamiti, MSc Office ,
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Combinational Circuit – Arithmetic Circuit
+ CS 325: CS Hardware and Software Organization and Architecture Combinational Circuits 1.
Functions of Combinational Logic
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Logic Circuits I.
Combinational Design, Part 3: Functional Blocks
Kuliah Rangkaian Digital Kuliah 6: Blok Pembangun Logika Kombinasional Teknik Komputer Universitas Gunadarma.
Multiplexers and Demultiplexers, and Encoders and Decoders
1 EE121 John Wakerly Lecture #6 Three-state Outputs Encoders Multiplexers XOR gates.
ECE 3110: Introduction to Digital Systems Chapter 5 Combinational Logic Design Practices X-OR gates and Parity circuits Comparators Adders, subtractors,
4. Computer Maths and Logic 4.2 Boolean Logic Logic Circuits.
ES 244: Digital Logic Design Chapter 4 Chapter 4: Combinational Logic Uchechukwu Ofoegbu Temple University.
1 CS 151: Digital Design Chapter 4: Arithmetic Functions and Circuits 4-1,2: Iterative Combinational Circuits and Binary Adders.
CS 105 DIGITAL LOGIC DESIGN Chapter 4 Combinational Logic 1.
Kavita Bala CS 3410, Spring 2014 Computer Science Cornell University.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 7 Dr. Shi Dept. of Electrical and Computer Engineering.
1 Chapter 4 Combinational Logic Logic circuits for digital systems may be combinational or sequential. A combinational circuit consists of input variables,
CHAPTER 2 Digital Combinational Logic/Arithmetic Circuits
1 Combinational Logic EE 208 – Logic Design Chapter 4 Sohaib Majzoub.
Combinational Circuit Design. Digital Circuits Combinational CircuitsSequential Circuits Output is determined by current values of inputs only. Output.
Module 11.  In Module 9, we have been introduced to the concept of combinational logic circuits through the examples of binary adders.  Meanwhile, in.
Digital System Design Multiplexers and Demultiplexers, and Encoders and Decoders.
1 Digital Design Debdeep Mukhopadhyay Associate Professor Dept of Computer Science and Engineering NYU Shanghai and IIT Kharagpur.
1 DLD Lecture 16 More Multiplexers, Encoders and Decoders.
ECE 3110: Introduction to Digital Systems Chapter 5 Combinational Logic Design Practices Adders,subtractors, ALUs.
CS151 Introduction to Digital Design Chapter 4: Arithmetic Functions and HDLs 4-1: Iterative Combinational Circuits 4-2: Binary Adders 1Created by: Ms.Amany.
Discrete Systems I Lecture 10 Adder and ALU Profs. Koike and Yukita.
Combinational Circuits
Combinational Circuit Design
Combinational Logic Circuits
FUNCTION OF COMBINATIONAL LOGIC CIRCUIT
5. Combinational circuits
FIGURE 4.1 Block diagram of combinational circuit
Ch 4. Combinational logic
DIGITAL ELECTRONICS B.SC FY
Logic Circuits I Lecture 3.
Combinational Circuits
Electronics for Physicists
XOR Function Logic Symbol  Description  Truth Table 
Presentation transcript:

Top-down modular design

Decoders n-to-2n decoder: logic network with n inputs and 2n outputs. One output is active for each of the 2n input combinations  each minterm Decoder  minterm generator Most common use: Memory selection

Decoders Parallel decoders (a) active-high (b) active-low

Decoders Parallel is expensive Problem extending for larger n 2n decoders require n-input ANDs: fan-in Alternative: (c) alternate structure

Decoders: (a) parallel (b) tree

Decoders Tree decoders – constant fan-in: 2-input gates throughout Compare the number of gates required for (a) and (b) Dual tree decoders n inputs divided into 2 groups j and k; n = j+k j-input decoder  2j outputs k-input decoder  2k outputs Array of 2j * 2k = 2n 2-input ANDs

Decoders Why decision tree: @a @ a @ a @ a @a @a @ a @ a @a @a @a @a

Decoders: (c) dual tree n=4 j=k=2

Implementing logic functions using Decoders Since , each output can be considered a maxterm.

Logic functions using Decoders

Logic functions using Decoders Active-high decoder with OR gate (a) Active-low decoder with NAND gate (b)

Logic functions using Decoders Active-high decoder with NOR gate (c) Active-low decoder with AND gate (d)

Decoders Active-high decoder with enable (a) Symbol (b) Function:

Decoders 3  8 decoder using two 2  4 decoders with enable

Decoders 4  16 decoder using 2  4 decoders with enable

Encoders Opposite of decoder: one output code (binary) for each input; assumes one input active at a time n inputs; s outputs n ≤ 2s s ≥ log2n; usually s = log2n 4:2 encoder with exclusive inputs: functional diagram

Encoders K-Maps of the 4:2 encoder outputs

Encoders Logic diagram and Truth table of the 4:2 encoder

Encoders Functional diagram and Truth table of the 4:3 encoder Outputs Zero unless exactly one line is active high

Encoders K-Maps of the outputs of the 4:3 encoder

Encoders Logic diagram of the 4:3 encoder

Encoders 4:2 priority encoder No input active  EO = 1 At least one input active  GS = 1 If more than one input active  output the one with highest priority 3 > 2 > 1 > 0 Useful in resource management request / acknowledge circuits in computers

Encoders K-Maps of the 4:2 priority encoder outputs

Encoders Logic diagram and Truth table of the 4:2 priority encoder

Multiplexers Connects one of the inputs to the output Needs log2n select lines

Multiplexers Easy to realize in CMOS

Multiplexers Question: we want a 8:1 MUX using 4:1s as building blocks

Demultiplexers Connects the input to one of the outputs Needs log2n select lines

Demultiplexers Where is it useful?

Adders Often realized as “bit slice”s Bit slice: Half Adder Bit slice: module that handles one bit position Can be replicated (arrayed) Array handles n bits (the whole number) Bit slice: Half Adder Given two input bits, produces sum and carry

Adders Bit slice: Full Adder Given two input bits and carry in, produces sum and carry

Adders Pseudo parallel (ripple carry) Adder

Adders Two-bit “parallel” Adder

Adders Four-bit “parallel” Adder What is the difficulty with n-bit parallel adders?

Adders Parallel Adder carry logic: growing impractically Generate Propagate

Adders Expanding the carry expressions yields or, generalized:

Adders When there is carry-in, it becomes c0, and renumbering the terms yields: Can form groups of 4:

Adders Using the group carries: Generate and propagate are from one bit so far Can extend the idea to groups of bit positions

Adders The group carry, generate and propagate are: The groups can be adjoining or overlapping e.g.

Adders Subtraction is addition Two-s complement Bitwise invert B and set the carry-in c0=1

Adders Overflow detection

Adders Overflow detection

Comparators

Comparators Example: 2-bit comparator

Comparators K-Maps of the comparator outputs

Comparators Example: MIS 4-bit magnitude comparator

Comparators 4-bit magnitude comparator function table

Comparators Cascading 4-bit comparators to obtain a 16-bit comparator