SlideShare a Scribd company logo
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 1
Class 12-Combinational Logic
 Other gate types
 Material from section 3-1 and 3-2 of text
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 2
Combinational Logic Design
 A process with 5 steps
 Specification
 Formulation
 Optimization
 Technology mapping
 Verification
 1st three steps and last best illustrated by example
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 3
Functional Blocks
 Fundamental circuits that are the base building blocks of
most larger digital circuits
 They are reusable and are common to many systems.
 Examples of functional logic circuits
 Decoders
 Encoders
 Code converters
 Multiplexers
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 4
Where they are used
 Multiplexers
 Selectors for routing data to the processor, memory, I/O
 Multiplexers route the data to the correct bus or port.
 Decoders
 are used for selecting things like a bank of memory and then
the address within the bank. This is also the function
needed to ‘decode’ the instruction to determine the operation
to perform.
 Encoders
 are used in various components such as keyboards.
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 5
Specifications step
 Write a specification for the circuits
 Specification includes
 What are the inputs: how many, how many bits in a given
output, how are they grouped,, are they control, are they
active high?
 What are the outputs: how many and how many bits in a
each, active high, active low, tristate output?
 The functional operation that takes place in the chip, i.e., for
given inputs what will appear on the outputs.
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 6
Formulation step
 Convert the specifications into a variety forms for optimal
implementation.
 Possible forms
 Truth Tables
 Expressions
 K-maps
 Binary Decision Diagrams
 IF THE SPECIFCATION IS ERRONOUS OR
INCOMPLETE (open for various interpretation) then the
circuit will perform as specified but will not perform as
desired.
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 7
Last 3 steps
 Best illustrated by example
 A BCD to Excess-3 code converter
 BCD-to-7-segment decoder
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 8
BCD-to-Excess-3 Code converter
 BCD is a code for the decimal digits 0-9
 Excess-3 is also a code for the decimal digits
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 9
Specification of BCD-to-Excess3
 Inputs: a BCD input, A,B,C,D with A as the most
significant bit and D as the least significant bit.
 Outputs: an Excess-3 output W,X,Y,Z that corresponds to
the BCD input.
 Internal operation – circuit to do the conversion in
combinational logic.
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 10
Formulation of BCD-to-Excess-3
 Excess-3 code is easily formed by adding a binary 3 to the
binary or BCD for the digit.
 There are 16 possible inputs for both BCD and Excess-3.
 It can be assumed that only valid BCD inputs will appear
so the six combinations not used can be treated as don’t
cares.
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 11
Optimization – BCD-to-Excess-3
 Lay out K-maps for each output, W X Y Z
 A step in the digital circuit design process.
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 12
Placing 1 on K-maps
 Where are the minterms located on a K-Map?
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 13
Expressions for W X Y Z
 W(A,B,C,D) = Σm(5,6,7,8,9)
+d(10,11,12,13,14,15)
 X(A,B,C,D) = Σm(1,2,3,4,9)
+d(10,11,12,13,14,15)
 Y(A,B,C,D) = Σm(0,3,4,7,8)
+d(10,11,12,13,14,15)
 Z(A,B,C,D) = Σm(0,2,4,6,8)
+d(10,11,12,13,14,15)
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 14
Minimize K-Maps
 W minimization
 Find W = A + BC + BD
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 15
Minimize K-Maps
 X minimization
 Find X = BC’D’+B’C+B’D
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 16
Minimize K-Maps
 Y minimization
 Find Y = CD + C’D’
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 17
Minimize K-Maps
 Z minimization
 Find Z = D’
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 18
Two level circuit implementation
 Have equations
 W = A + BC + BD = A + B(C+D)
 X = B’C + B’D + BC’D’ = B’(C+D) + BC’D’
 Y = CD + C’D’
 Z = D’
 Factoring out (C+D) and call it T
 Then T’ = (C+D)’ = C’D’
 W = A + BT
 X = B’T + BT’
 Y = CD + T’
 Z = D’
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 19
Create the digital circuit
 Implementing the
second set of
equations where
T=C+D results in a
lower gate count.
 This gate has a fanout
of 3
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 20
BCD-to-Seven-Segment Decoder
 Specification
 Digital readouts on many digital products often use LED
seven-segment displays.
 Each digit is created by lighting the appropriate segments.
The segments are labeled a,b,c,d,e,f,g
 The decoder takes a BCD input and outputs the correct code
for the seven-segment display.
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 21
Specification
 Input: A 4-bit binary value that is a BCD coded input.
 Outputs: 7 bits, a through g for each of the segments of
the display.
 Operation: Decode the input to activate the correct
segments.
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 22
Formulation
 Construct a truth table
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 23
Optimization
 Create a K-map for each output and get
 A = A’C+A’BD+B’C’D’+AB’C’
 B = A’B’+A’C’D’+A’CD+AB’C’
 C = A’B+A’D+B’C’D’+AB’C’
 D = A’CD’+A’B’C+B’C’D’+AB’C’+A’BC’D
 E = A’CD’+B’C’D’
 F = A’BC’+A’C’D’+A’BD’+AB’C’
 G = A’CD’+A’B’C+A’BC’+AB’C’
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 24
Note on implementation
 Direct implementation would require 27 AND gates and 7
OR gates.
 By sharing terms, can actualize and implementation with
14 less gates.
 Normally decoder in a device name indicates that the
number of outputs is less than the number of inputs.
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 25
4-bit Equality Checker
 Specification
 Input: Two vectors, A(3:0) and B(3:0) each being 4-bits.
The msb bits the A(3) and B(3).
 Output: E which has a value of 1 when A=B and 0 if any bit
of A/=B.
 Operation: Combinational logic to compare the 4 bits of A
with the 4 bits of B to produce E
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 26
4-bit Equality Checker
 Formulation
 For each bit position Ai will be compared with Bi and if they
are equal, a 0 will be output. If they differ a 1 will be
output.
 Thus, if any bit position indicates a 1 then the values are
different. These 1st level comparators outputs can then be
Ored together.
 The ORed output is inverted to produce a 1 when they are
equal.
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 27
4-bit Equality Checker
 Optimization
 Done by implementing two
separate blocks.
 1st the unit MX that compares
two bit and outputs a 0 if they
are equal, i.e., an XOR
operation.
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 28
The second unit
 The ME unit takes the MX outputs and generates a 1 when
all the inputs are 0, i.e., a NOR operation.
 E = (N0+N1+N2+N3)’
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 29
Heirarchical Representation
 Figure 3-5 of text
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 30
Class 12 assignment
 Covered sections 3-1 and 3-2
 Problems for hand in
 3-1 and 3-3 (due Monday)
 Problems for practice
 3-2, 3-8, 3-10, 3-11a
 Reading for next class:
9/15/09 - L12 Combinational
Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 31

More Related Content

PPTX
Combinational Circuits
PPT
Combinational circuit
PPT
Combinational Logic
PDF
Combinational logic
PPTX
Explain Half Adder and Full Adder with Truth Table
PPTX
Combinational logic circuits by Tahir Yasin
PPTX
Digital electronics nandhini kusuma
PDF
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...
Combinational Circuits
Combinational circuit
Combinational Logic
Combinational logic
Explain Half Adder and Full Adder with Truth Table
Combinational logic circuits by Tahir Yasin
Digital electronics nandhini kusuma
FYBSC IT Digital Electronics Unit IV Chapter I Multiplexer, Demultiplexer, AL...

What's hot (19)

PDF
Bds lab 4
PDF
Lec 05 - Combinational Logic
PPTX
DCF-Combinational circuit
PPTX
B sc cs i bo-de u-iii combitional logic circuit
PDF
Computer Organization And Architecture lab manual
PPTX
halfadder & halfsubtractor using 4:1 MUX
PPTX
Code Conversion in 8085 Microprocessor
PDF
Analysis and Implementation of Hard-Decision Viterbi Decoding In Wireless Com...
PPTX
Encoder and decoder
PPT
Digital design chap 3
DOCX
Computer organization and architecture lab manual
PDF
DIGITAL ELECTRONICS LAB
PPT
Principles of Combinational Logic-1
PPT
Chapter 3 instruction set-of-8085
PPTX
memory reference instruction
PDF
Decoders and encoders
PDF
Ece 465 project_1_report_vishesh_shravan
PPTX
Presentation energy efficient code converters using reversible logic gates
Bds lab 4
Lec 05 - Combinational Logic
DCF-Combinational circuit
B sc cs i bo-de u-iii combitional logic circuit
Computer Organization And Architecture lab manual
halfadder & halfsubtractor using 4:1 MUX
Code Conversion in 8085 Microprocessor
Analysis and Implementation of Hard-Decision Viterbi Decoding In Wireless Com...
Encoder and decoder
Digital design chap 3
Computer organization and architecture lab manual
DIGITAL ELECTRONICS LAB
Principles of Combinational Logic-1
Chapter 3 instruction set-of-8085
memory reference instruction
Decoders and encoders
Ece 465 project_1_report_vishesh_shravan
Presentation energy efficient code converters using reversible logic gates
Ad

Similar to Combinational logic circuits (20)

PPT
digital electr Chapter-4-Combinational ckt.ppt
PPT
Logic System Design KTU Chapter-4.ppt
PPT
Lcdf4 chap 03_p2
PPTX
combinational-circuit.pptx it tis creative study of digital electronics for ...
PPTX
combinational-circuit (1).pptx for all the digital electronics data
PPT
combinational-circuit.ppt
PPT
combinational-circuit presenmtation .ppt
PPT
combinational circuits dispositivos .ppt
PPT
Unit 4 dica
PDF
Chapter-04.pdf
PPT
combinational-circuit (1).ppt
PPT
Combinational Logic Design for engineering and many more departments.ppt
PPT
combinational-circuit (1).ppt
PPTX
lecture_19.pptx
PPTX
Digital VLSI - Unit 2.pptx
PPT
3306565.ppt
PPT
STLD-Combinational logic design
PPTX
Chapter 5: Cominational Logic with MSI and LSI
PDF
C–Analysis and Design Procedures–Binary Adder-Subtractor
PDF
Combinational and sequential logic
digital electr Chapter-4-Combinational ckt.ppt
Logic System Design KTU Chapter-4.ppt
Lcdf4 chap 03_p2
combinational-circuit.pptx it tis creative study of digital electronics for ...
combinational-circuit (1).pptx for all the digital electronics data
combinational-circuit.ppt
combinational-circuit presenmtation .ppt
combinational circuits dispositivos .ppt
Unit 4 dica
Chapter-04.pdf
combinational-circuit (1).ppt
Combinational Logic Design for engineering and many more departments.ppt
combinational-circuit (1).ppt
lecture_19.pptx
Digital VLSI - Unit 2.pptx
3306565.ppt
STLD-Combinational logic design
Chapter 5: Cominational Logic with MSI and LSI
C–Analysis and Design Procedures–Binary Adder-Subtractor
Combinational and sequential logic
Ad

Recently uploaded (20)

PDF
Classroom Observation Tools for Teachers
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
Hazard Identification & Risk Assessment .pdf
PDF
What if we spent less time fighting change, and more time building what’s rig...
PPTX
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
PDF
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
PDF
Empowerment Technology for Senior High School Guide
PPTX
Orientation - ARALprogram of Deped to the Parents.pptx
PPTX
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PDF
LDMMIA Reiki Yoga Finals Review Spring Summer
PDF
IGGE1 Understanding the Self1234567891011
PPTX
A powerpoint presentation on the Revised K-10 Science Shaping Paper
PDF
Trump Administration's workforce development strategy
PDF
Complications of Minimal Access Surgery at WLH
PDF
1_English_Language_Set_2.pdf probationary
Classroom Observation Tools for Teachers
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
Paper A Mock Exam 9_ Attempt review.pdf.
Chinmaya Tiranga quiz Grand Finale.pdf
Hazard Identification & Risk Assessment .pdf
What if we spent less time fighting change, and more time building what’s rig...
Chinmaya Tiranga Azadi Quiz (Class 7-8 )
RTP_AR_KS1_Tutor's Guide_English [FOR REPRODUCTION].pdf
Empowerment Technology for Senior High School Guide
Orientation - ARALprogram of Deped to the Parents.pptx
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Final Presentation General Medicine 03-08-2024.pptx
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
LDMMIA Reiki Yoga Finals Review Spring Summer
IGGE1 Understanding the Self1234567891011
A powerpoint presentation on the Revised K-10 Science Shaping Paper
Trump Administration's workforce development strategy
Complications of Minimal Access Surgery at WLH
1_English_Language_Set_2.pdf probationary

Combinational logic circuits

  • 1. 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 1
  • 2. Class 12-Combinational Logic  Other gate types  Material from section 3-1 and 3-2 of text 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 2
  • 3. Combinational Logic Design  A process with 5 steps  Specification  Formulation  Optimization  Technology mapping  Verification  1st three steps and last best illustrated by example 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 3
  • 4. Functional Blocks  Fundamental circuits that are the base building blocks of most larger digital circuits  They are reusable and are common to many systems.  Examples of functional logic circuits  Decoders  Encoders  Code converters  Multiplexers 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 4
  • 5. Where they are used  Multiplexers  Selectors for routing data to the processor, memory, I/O  Multiplexers route the data to the correct bus or port.  Decoders  are used for selecting things like a bank of memory and then the address within the bank. This is also the function needed to ‘decode’ the instruction to determine the operation to perform.  Encoders  are used in various components such as keyboards. 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 5
  • 6. Specifications step  Write a specification for the circuits  Specification includes  What are the inputs: how many, how many bits in a given output, how are they grouped,, are they control, are they active high?  What are the outputs: how many and how many bits in a each, active high, active low, tristate output?  The functional operation that takes place in the chip, i.e., for given inputs what will appear on the outputs. 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 6
  • 7. Formulation step  Convert the specifications into a variety forms for optimal implementation.  Possible forms  Truth Tables  Expressions  K-maps  Binary Decision Diagrams  IF THE SPECIFCATION IS ERRONOUS OR INCOMPLETE (open for various interpretation) then the circuit will perform as specified but will not perform as desired. 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 7
  • 8. Last 3 steps  Best illustrated by example  A BCD to Excess-3 code converter  BCD-to-7-segment decoder 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 8
  • 9. BCD-to-Excess-3 Code converter  BCD is a code for the decimal digits 0-9  Excess-3 is also a code for the decimal digits 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 9
  • 10. Specification of BCD-to-Excess3  Inputs: a BCD input, A,B,C,D with A as the most significant bit and D as the least significant bit.  Outputs: an Excess-3 output W,X,Y,Z that corresponds to the BCD input.  Internal operation – circuit to do the conversion in combinational logic. 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 10
  • 11. Formulation of BCD-to-Excess-3  Excess-3 code is easily formed by adding a binary 3 to the binary or BCD for the digit.  There are 16 possible inputs for both BCD and Excess-3.  It can be assumed that only valid BCD inputs will appear so the six combinations not used can be treated as don’t cares. 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 11
  • 12. Optimization – BCD-to-Excess-3  Lay out K-maps for each output, W X Y Z  A step in the digital circuit design process. 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 12
  • 13. Placing 1 on K-maps  Where are the minterms located on a K-Map? 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 13
  • 14. Expressions for W X Y Z  W(A,B,C,D) = Σm(5,6,7,8,9) +d(10,11,12,13,14,15)  X(A,B,C,D) = Σm(1,2,3,4,9) +d(10,11,12,13,14,15)  Y(A,B,C,D) = Σm(0,3,4,7,8) +d(10,11,12,13,14,15)  Z(A,B,C,D) = Σm(0,2,4,6,8) +d(10,11,12,13,14,15) 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 14
  • 15. Minimize K-Maps  W minimization  Find W = A + BC + BD 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 15
  • 16. Minimize K-Maps  X minimization  Find X = BC’D’+B’C+B’D 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 16
  • 17. Minimize K-Maps  Y minimization  Find Y = CD + C’D’ 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 17
  • 18. Minimize K-Maps  Z minimization  Find Z = D’ 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 18
  • 19. Two level circuit implementation  Have equations  W = A + BC + BD = A + B(C+D)  X = B’C + B’D + BC’D’ = B’(C+D) + BC’D’  Y = CD + C’D’  Z = D’  Factoring out (C+D) and call it T  Then T’ = (C+D)’ = C’D’  W = A + BT  X = B’T + BT’  Y = CD + T’  Z = D’ 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 19
  • 20. Create the digital circuit  Implementing the second set of equations where T=C+D results in a lower gate count.  This gate has a fanout of 3 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 20
  • 21. BCD-to-Seven-Segment Decoder  Specification  Digital readouts on many digital products often use LED seven-segment displays.  Each digit is created by lighting the appropriate segments. The segments are labeled a,b,c,d,e,f,g  The decoder takes a BCD input and outputs the correct code for the seven-segment display. 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 21
  • 22. Specification  Input: A 4-bit binary value that is a BCD coded input.  Outputs: 7 bits, a through g for each of the segments of the display.  Operation: Decode the input to activate the correct segments. 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 22
  • 23. Formulation  Construct a truth table 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 23
  • 24. Optimization  Create a K-map for each output and get  A = A’C+A’BD+B’C’D’+AB’C’  B = A’B’+A’C’D’+A’CD+AB’C’  C = A’B+A’D+B’C’D’+AB’C’  D = A’CD’+A’B’C+B’C’D’+AB’C’+A’BC’D  E = A’CD’+B’C’D’  F = A’BC’+A’C’D’+A’BD’+AB’C’  G = A’CD’+A’B’C+A’BC’+AB’C’ 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 24
  • 25. Note on implementation  Direct implementation would require 27 AND gates and 7 OR gates.  By sharing terms, can actualize and implementation with 14 less gates.  Normally decoder in a device name indicates that the number of outputs is less than the number of inputs. 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 25
  • 26. 4-bit Equality Checker  Specification  Input: Two vectors, A(3:0) and B(3:0) each being 4-bits. The msb bits the A(3) and B(3).  Output: E which has a value of 1 when A=B and 0 if any bit of A/=B.  Operation: Combinational logic to compare the 4 bits of A with the 4 bits of B to produce E 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 26
  • 27. 4-bit Equality Checker  Formulation  For each bit position Ai will be compared with Bi and if they are equal, a 0 will be output. If they differ a 1 will be output.  Thus, if any bit position indicates a 1 then the values are different. These 1st level comparators outputs can then be Ored together.  The ORed output is inverted to produce a 1 when they are equal. 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 27
  • 28. 4-bit Equality Checker  Optimization  Done by implementing two separate blocks.  1st the unit MX that compares two bit and outputs a 0 if they are equal, i.e., an XOR operation. 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 28
  • 29. The second unit  The ME unit takes the MX outputs and generates a 1 when all the inputs are 0, i.e., a NOR operation.  E = (N0+N1+N2+N3)’ 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 29
  • 30. Heirarchical Representation  Figure 3-5 of text 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 30
  • 31. Class 12 assignment  Covered sections 3-1 and 3-2  Problems for hand in  3-1 and 3-3 (due Monday)  Problems for practice  3-2, 3-8, 3-10, 3-11a  Reading for next class: 9/15/09 - L12 Combinational Logic Design Copyright 2009 - Joanne DeGroat, ECE, OSU 31