1 CSE370, Lecture 8 Lecture 8 u Logistics n Midterm 1 week from today in class. Closed book/closed notes n Sample midterm linked in on calendar n Review.

Slides:



Advertisements
Similar presentations
Digital Design: Combinational Logic Blocks
Advertisements

SOP and POS Forms Notation.
Documentation Standards
Combinational Logic Circuits Is the logic circuit where the output always depends on the inputs irrespective of the previous state with out the feed back.
ECEN 248: INTRODUCTION TO DIGITAL SYSTEMS DESIGN Lecture 6 Dr. Shi Dept. of Electrical and Computer Engineering.
CSE 370 – Winter 2002 – Logic minimization - 1 Overview zLast lecture yExamples of Karnaugh maps, including Don’t cares zToday yDesign Examples yPrime.
1 Designing with MSI Documentation Standards  Block diagrams first step in hierarchical design  Schematic diagrams  Timing diagrams  Circuit descriptions.
Give qualifications of instructors: DAP
ENGIN112 L13: Combinational Design Procedure October 1, 2003 ENGIN 112 Intro to Electrical and Computer Engineering Lecture 13 Combinational Design Procedure.
CS 151 Digital Systems Design Lecture 13 Combinational Design Procedure.
Combinational Logic Building Blocks
ECE 301 – Digital Electronics Multiplexers and Demultiplexers (Lecture #12)
Multiplexer MUX. 2 Multiplexer Multiplexer (Selector)  2 n data inputs,  n control inputs,  1 output  Used to connect 2 n points to a single point.
Week 3- slide 1 EE 231 Digital Electronics Fall 01 Gate Logic: Two-Level Simplification K-Map Method Examples F = A asserted, unchanged B varies G = B’,
Combinational Circuits
Overview of Chapter 3 °K-maps: an alternate approach to representing Boolean functions °K-map representation can be used to minimize Boolean functions.
Combinational Logic Design
Logic Function Optimization. Combinational Logic Circuit Regular SOP and POS designs Do not care expressions Digital logic circuit applications Karnaugh.
1 COMBINATIONAL LOGIC One or more digital signal inputs One or more digital signal outputs Outputs are only functions of current input values (ideal) plus.
Sahar Mosleh PageCalifornia State University San Marcos 1 Multiplexer, Decoder and Circuit Designing.
Digital Electronics Tutorial: Combinational Logic Design Examples
Lecture 23 Final Revision 3. Prof. Sin-Min Lee.
Chapter 3 Simplification of Switching Functions. Simplification Goals Goal -- minimize the cost of realizing a switching function Cost measures and other.
9/16/04UCB EECS150 D. Culler Fa04 1 EECS Components and Design Techniques for Digital Systems Lec 06 – Minimizing Boolean Logic 9/16-04 David Culler.
Combinational Logic By Taweesak Reungpeerakul
WEEK #9 FUNCTIONS OF COMBINATIONAL LOGIC (DECODERS & MUX EXPANSION)
Chapter 2Basic Digital Logic1 Chapter 2. Basic Digital Logic2 Outlines  Basic Digital Logic Gates  Two types of digital logic circuits Combinational.
ENG241 Digital Design Week #4 Combinational Logic Design.
1 Lecture 9 Demultiplexers Programmable Logic Devices  Programmable logic array (PLA)  Programmable array logic (PAL)
Combinational Design, Part 3: Functional Blocks
Kuliah Rangkaian Digital Kuliah 6: Blok Pembangun Logika Kombinasional Teknik Komputer Universitas Gunadarma.
CHAPTER 3: PRINCIPLES OF COMBINATIONAL LOGIC
1 CSE370, Lecture 11 Lecture 11  Logistics  HW3 due now  Lab4 goes on as normal next week  Tuesday review 6pm, place TBD  Last lecture  "Switching-network"
1 CSE370, Lecture 10 Lecture 10 u Logistics n HW3 due Friday (cover materials up to this lecture) n Lab3 going on this week n Midterm 1: a week from today.
Multiplexers. Outline  Larger Multiplexers  Standard MSI Multiplexer  Implementing Functions with Multiplexers  Implementing Functions with Smaller.
CO UNIT-I. 2 Multiplexers: A multiplexer selects information from an input line and directs the information to an output line A typical multiplexer has.
Lecture 11 Combinational Design Procedure
 Seattle Pacific University EE Logic System DesignKMaps-1 Two-Level Simplification All Boolean expressions can be represented in two- level forms.
Combinational Circuit Design. Digital Circuits Combinational CircuitsSequential Circuits Output is determined by current values of inputs only. Output.
CSE 140: Components and Design Techniques for Digital Systems Lecture 3: Incompletely Specified Functions and K Maps CK Cheng Dept. of Computer Science.
Digital Logic (Karnaugh Map). Karnaugh Maps Karnaugh maps (K-maps) are graphical representations of boolean functions. One map cell corresponds to a row.
CSE 370 Spring 2006 Introduction to Digital Design Lecture 10: Multiplexers and Demultiplexers Last Lecture Multilevel Logic Hazards Today Multiplexers.
Company LOGO Edit your slogan here DKT 122/3 DIGITAL SYSTEM 1 WEEK #8 FUNCTIONS OF COMBINATIONAL LOGIC (ENCODER & DECODER, MUX & DEMUX)
School of Computer and Communication Engineering, UniMAP DKT 122/3 - DIGITAL SYSTEM I Chapter 4A:Boolean Algebra and Logic Simplification) Mohd ridzuan.
Chapter4: Combinational Logic Part 4 Originally By Reham S. Al-Majed Imam Muhammad Bin Saud University.
Binary Parallel Adders
1 CSE370, Lecture 10 Lecture 10  Logistics  HW3 due now  Solutions will be available at the midterm review session tomorrow (and at the end of class.
Lecture No. 18 Combinational Functional Devices. Recap Decoder Decoder –3-to-8 Decoder –Cascading of Decoders 4-to-16 decoder –Implementing SOP & POS.
MSI Circuits.
1 CSE370, Lecture 7 Lecture 9 u Logistics n HW3 posted, due on Friday n Lab3 this week u Last lecture n Verilog u Last last lecture n K-maps examples n.
Lecture 3: Incompletely Specified Functions and K Maps
Combinational Logic Circuits
Lecture 9 Logistics Last lecture Today HW3 due Wednesday
Optimized Implementation of Logic Function
Lecture 3: Incompletely Specified Functions and K Maps
Optimized Implementation of Logic Function
CSE 370 – Winter 2002 – Logic minimization - 1
Lecture 8 Logistics Last lecture Last last lecture Today
Lecture 6 Logistics Last lecture Today’s lecture
Lecture 7 Logistics Last lecture Today HW2 due now Lab2 going on
Lecture 10 Logistics Last lecture Today
Lecture 6 Karnaugh maps (K-maps) K-maps with “don’t cares”
Lecture 11 Logistics Last lecture Today HW3 due now
Optimized Implementation of Logic Function
Lecture 9 Logistics Last lecture Last last lecture Today
Overview Last lecture Timing; Hazards/glitches
Digital System Design Combinational Logic
Lecture 7 Logistics Last lecture Today HW2 due now Lab2 going on
Lecture 3: Incompletely Specified Functions and K Maps
Presentation transcript:

1 CSE370, Lecture 8 Lecture 8 u Logistics n Midterm 1 week from today in class. Closed book/closed notes n Sample midterm linked in on calendar n Review session Thursday Jan 29, 4:30. Location TBA u Last lecture n Verilog u Last last lecture n K-map examples n K-map high dimension example n Don’t cares u Today n Don’t care (review) n POS minimization with K-map n Design examples with K-map n "Switching-network" logic blocks (multiplexers/demultiplexers)

2 CSE370, Lecture 8 The “WHY” slide u Don’t cares n Sometimes the logic output doesn’t matter. When we don’t care if the output is 0 or 1, rather than assigning random outputs, it is best to denote it as “Don’t care.” If you learn how to use the “don’t care’s”, you will be able to build even more efficient circuits than without them. u Design examples with K-map n Doing K-map is fun, but when it is combined with an actual design problem you will see how k-map fits into the whole scheme of logic design. u “Switching network” blocks (multiplexers) n Routing method for data paths helps to structure logic design

3 CSE370, Lecture 8 Revisit Don’t cares example: Truth table for a BCD increment-by-1 ABCDWX YZ XXXX 1011XXXX 1100XXXX 1101XXXX 1110XXXX 1111XXXX INPUTS OUTPUTS Function F computes the next number in a BCD sequence If the input is , the output is BCD encodes decimal digits 0–9 as – Don’t care about binary numbers –1111 2

4 CSE370, Lecture 8 Notation u Don't cares in canonical forms n Three distinct logical sets: {on}, {off}, {don’t care} u Canonical representations of a BCD increment-by-1 n Minterm expansion íW = m7+m8+d10+d11+d12+d13+d14+d15 =  m(7,8) + d(10,11,12,13,14,15) n Maxterm expansion íW = M0M1M2M3M4M5M6M9D10D11D12D13D14D15 =  M(0,1,2,3,4,5,6,9) D(10,11,12,13,14,15) u In K-maps, can treat ‘don't cares’ as 0s or 1s n Depending on which is more advantageous

5 CSE370, Lecture 8 Example: with don’t cares  F(A,B,C,D) =  m(1,3,5,7,9) + d(6,12,13) n F = A'D + B'C'Dwithout using don't cares n F = A'D + C'Dusing don't cares 00X011X111000X0000X011X111000X00 AB CD A B D C Assign X == "1"  allows a 2-cube rather than a 1-cube

6 CSE370, Lecture 8 POS minimization using k-maps u Using k-maps for POS minimization n Encircle the zeros in the map n Interpret indices complementary to SOP form AB CD A B D C F = (B’+C+D)(B+C+D’)(A’+B’+C) Same idea as the Truth Table

7 CSE370, Lecture 8 Design example: a two-bit comparator block diagram truth table Need a 4 -variable Karnaugh map for each of the 3 output functions LT EQ GT ABCDLTEQGT AB CD ABCDABCD

8 CSE370, Lecture Design example: a two-bit comparator (con’t) LT = A'B'D+A'C+B'CD D AB CD A C B D AB CD A C B D AB CD A C B GT = BC'D'+AC'+ABD' EQ = A'B'C'D'+A'BC'D+ABCD+AB'CD' = (A xnor C)(B xnor D) K-map for EQK-map for LTK-map for GT

9 CSE370, Lecture 8 u Two ways to implement EQ: Option 1: EQ = A'B'C'D'+A'BC'D+ABCD+AB'CD‘ 5 gates but they require lots of inputs Option 2 EQ = (A xnor C) (B xnor D) XNOR is constructed from 3 simple gates 7 gates but they all have 2 inputs each Design example: a two-bit comparator (con’t)

10 CSE370, Lecture 8 Design example: a two-bit comparator (con’t) Circuit schematics

11 CSE370, Lecture 8 Design example: BCD increment by 1 I8I4I2I1O8O4O2O XXXX 1011XXXX 1100XXXX 1101XXXX 1110XXXX 1111XXXX O1 O2 O4 O8 I1 I2 I4 I8 block diagram truth table Need a 4 -variable Karnaugh map for each of the 4 output functions

12 CSE370, Lecture 8 O8O8 O4O4 O2O2 O1O1 00X100X001XX00XX00X100X001XX00XX I1I1 I8I8 I2I2 I4I4 00X011X000XX11XX00X011X000XX11XX 11X100X000XX11XX11X100X000XX11XX I1I1 I8I8 I2I2 I4I4 I1I1 I8I8 I2I2 I4I4 I1I1 I8I8 I2I2 I4I4 01X001X010XX01XX01X001X010XX01XX We greatly simplify the logic by using the don’t cares O 8 = I 4 I 2 I 1 + I 8 I 1 ‘ O 4 = I 4 I 2 ' + I 4 I 1 ' + I 4 'I 2 I 1 O 2 = I 8 'I 2 'I 1 + I 2 I 1 ‘ O 1 = I 1 ' Design example: BCD increment by 1 (con’t)

13 CSE370, Lecture 8 Design example: a two-bit multiplier A2A1B2B1P8P4P2P P1 P2 P4 P8 A1 A2 B1 B2 block diagram truth table 9 Need a 4 -variable Karnaugh map for each of the 4 output functions

Two-bit multiplier (cont'd) B1 A2A1 B2B1 A B2 A B1 A2A1 B2B1 A B2 A B1 A2A1 B2B1 A B2 A B1 A2A1 B2B1 A B2 A1 P8=A2A1B2B1P8=A2A1B2B1 P 2 =A 2 'A 1 B 2 +A 1 B 2 B 1 ' +A 2 B 2 'B 1 +A 2 A 1 'B 1 P 4 =A 2 B 2 B 1 ' +A 2 A 1 'B 2 P1=A1B1P1=A1B1

15 CSE370, Lecture 8 Switching-network logic blocks u Multiplexer (MUX) n Routes one of many inputs to a single output n Also called a selector u Demultiplexer (DEMUX) n Routes a single input to one of many outputs n Also called a decoder multiplexerdemultiplexer control We construct these devices from: logic gates networks of transistor switches

16 CSE370, Lecture 8 Multiplexers u Basic concept n 2 n data inputs; n control inputs ("selects"); 1 output n Connects one of 2 n inputs to the output n “Selects” decide which input connects to output n Two alternative truth-tables: Functional and Logical Example: A 2:1 Mux Z = SIn 1 + S'In o Functional truth table SZ 0In 0 1In 1 In 1 In 0 SZ Logical truth table I0I0 S I1I1 Z

17 CSE370, Lecture 8 Multiplexers (con't) u 2:1 mux:Z = S 0 'In 0 + S 0 In 1 u 4:1 mux:Z = S 1 'S 0 'In 0 + S 1 'S 0 In 1 + S 1 S 0 'In 2 + S 1 S 0 In 3 u 8:1 mux:Z = S 2 'S 1 'S 0 'In 0 + S 2 'S 1 'S 0 In I0I1I2I3I4I5I6I7I0I1I2I3I4I5I6I7 S 2 S 1 S 0 8:1 mux Z I0I1I2I3I0I1I2I3 S 1 S 0 4:1 mux Z I0I1I0I1 S0S0 2:1 mux Z

18 CSE370, Lecture 8 Logic-gate implementation of multiplexers 2:1 mux4:1 mux I0I1I2I3I0I1I2I3 S 1 S 0 I0I0 S I1I1 Z Z Z

19 CSE370, Lecture 8 Cascading multiplexers u Can form large multiplexers from smaller ones n Many implementation options Z 4:1 mux S2S2 2:1 mux I4I5I6I7I4I5I6I7 S 1 S 0 4:1 mux S0S0 Z S 2 S 1 4:1 mux 2:1 mux I4I5I4I5 I2I3I2I3 I0I1I0I1 I6I7I6I7 8:1 mux I0I1I2I3I0I1I2I3

20 CSE370, Lecture 8 Multiplexers as general-purpose logic u A 2 n :1 mux can implement any function of n variables n A lookup table n A 2 n – 1 :1 mux also can implement any function of n variables u Example: F(A,B,C) = m0 + m2 + m6 + m7 = A'B'C' + A'BC' + ABC' + ABC = A'B'(C') + A'B(C') + AB(0) + AB(1) ABCF ABCF C' C' S2 8:1 MUX S1S0 F A B C S1S0 F :1 MUX C' C' 0 1 A B

21 CSE370, Lecture Multiplexers as general-purpose logic u Implementing a 2 n-1 :1 mux as a function of n variables n (n-1) mux control variables S 0 – S n–2 n One data variable S n-1 n Four possible values for each data input: 0, 1, S n-1, S n-1 ' n Example: F(A,B,C,D) implemented using an 8:1 mux Choose A,B,C as control variables Choose D as a data variable D 0 1 D' D D' D' A 8:1 MUX B C F D AB CD A C B S2 S1 S0

22 CSE370, Lecture 8 Demultiplexers (DEMUX) u Next class