Download presentation
1
Functions of Combinational Logic
2
Parallel Binary Adders Comparator Decoders Encoders Code Converters
Outline Basic Adders Parallel Binary Adders Comparator Decoders Encoders Code Converters Multiplexers Parity Generators/Checkers
3
Design Procedure of Combinational Circuits
The design of a combinational circuit starts from the specification of the problem and end up in a logic circuit diagram or a set of Boolean expression (functions) from which the logic diagram can be obtained. The procedure involves the following step: From the specification of the circuit, determine the required number of inputs and outputs and assign a symbol for each. Derive the truth table that defines the required relationship between inputs and outputs. Obtain the simplified Boolean functions for each output as a function of the input variables. Draw the logic diagram and verify the correctness of the design.
4
Design Procedure of Combinational Circuits
Some times the truth table has so many entries and it becomes so difficult to design a circuit based on the previous approach. Combinational circuits (digital functions) that posses an inherent well-defined regularity can usually be designed by means of an algorithmic procedure. An algorithm is a procedure that specifies a finite set of step that, if followed, give the solution to a problem. The algorithm is a direct application of the procedure a person uses to perform a certain task. example: comparator
5
Simple Binary Addition
Half-Adder 0 + 0 = 0 0 + 1 = 1 1 + 0 = 1 1 + 1 = 10 Zero plus zero equals zero Zero plus one equals one One plus zero equals one One plus one equals zero with a carry of one Simple Binary Addition The half adder accepts two binary digits on its inputs and produces two binary digits on its outputs, a sum bit and a carry bit.
6
Half-Adder Logic symbol Logic diagram
7
Full-Adder The full adder accepts two input bits and an input carry and produces a sum and an output carry.
8
Full-Adder Full-adder logic.
9
Full adder from two half-adder circuits
10
Parallel Binary Adders
Two or more full adders are connected to form parallel binary adders Two-bit parallel binary adder
11
Parallel Binary Adders
Four-bit parallel binary adder
12
Application: a voting system using full adders and binary adders
Self study. See pages 281 and 282 in the textbook.
13
Binary Subtractor The Subtraction A – B can be done by taking the 2’s complement (1’s complement + 1) of B and adding it to A. 1’s complement is implemented with inverters. The subtractor A – B is implemented by using adders and inverters. The input carry of Cin of the 1st adder must be equal to 1. The operation becomes: A + 1’s complement of B + 1. Example: Design 2 bit subtractor.
14
4 bit adder subtractor The addition and subtraction operations can be combined into one circuit with one binary adder. Inverter s are implemented by using XOR gates. When M = 0 the circuit is an adder. When M = 1 the circuit is subtractor
15
Comparators The basic function of a comparator is to compare the magnitudes of two binary quantities to determine the relationship of those quantities. 1-Bit Comparator 2-Bit Comparator 4-Bit Comparator
16
Comparators 1-Bit Comparator The output is 1 when the inputs are equal
17
Comparators 2-Bit Comparator The output is 1 when A0 = B0 AND A1 = B1
18
4-Bit Comparator One of three outputs will be HIGH: Comparators
A greater than B (A > B) A equal to B (A = B) A less than B (A < B)
19
Designing the 4-bit comparator
20
BCD-to-decimal decoder BCD-to-7-segement decoder
Decoders Binary decoder 4-bit decoder BCD-to-decimal decoder BCD-to-7-segement decoder
21
Binary decoder The output is 1 only when: A0 = 1 A2 = 0 A3 = 0 A4 = 1
Decoders Binary decoder The output is 1 only when: A0 = 1 A2 = 0 A3 = 0 A4 = 1 This is only one of an infinite number of examples
22
Decoders 4-bit decoder Logic Diagram
23
Decoders 4-bit decoder Binary inputs Active-low outputs Truth Table
24
BCD-to-decimal decoder
Decoders BCD-to-decimal decoder
25
BCD-to-7-segement decoder
Decoders BCD-to-7-segement decoder Logic Diagram
26
BCD-to-7-segement decoder
Decoders BCD-to-7-segement decoder Truth Table
27
Decimal-to-BCD encoder 8-line-to-3-line encoder
Encoders Decimal-to-BCD encoder 8-line-to-3-line encoder
28
Decimal-to-BCD encoder
Encoders Decimal-to-BCD encoder
29
8-line-to-3-line encoder
Encoders 8-line-to-3-line encoder
30
Code Converters
31
BCD-to-binary conversion Binary-Gray conversions
Code Converters BCD-to-binary conversion Binary-Gray conversions
32
BCD-to-binary conversion
Code Converters BCD-to-binary conversion
33
Binary-Gray conversions
Code Converters Binary-Gray conversions
34
Multiplexers (Data Selectors)
35
Multiplexers (Data Selectors)
4-input multiplexer Expanded multiplexers
36
Multiplexers (Data Selectors)
4-input multiplexer
37
Multiplexers (Data Selectors)
Expanded multiplexers
38
Demultiplexers
39
Demultiplexers 2-line-to4-line demux
40
Parity Generator/Checker
41
Parity Generator/Checker
a parity bit is used for the purpose of detecting errors during the transmission of binary information, A parity bit is an extra bit included with a binary massage to make the number of I 's either odd or even. The message, including the parity bit, is transmitted and then checked at the receiving end for errors An error is detected if the checked parity does not correspond with the one transmitted. The circuit that generates the parity bit in the transmitter is called a parity generator. The circuit that checks the parity in the receiver is called a parity checker.
42
3-bit parity Generator Exclusive-OR functions are used in the parity bit generator.
43
3-bit parity Generator/checker
44
Parity Generators/Checkers
Parity generator/checker
45
These slides are based on Digital Fundamentals 9th ed. By Thomas Floyd
Similar presentations
© 2024 SlidePlayer.com. Inc.
All rights reserved.