SlideShare a Scribd company logo
1 of 50
1
Chapter 3 Gate-Level
Minimization
 The Boolean functions also can be simplified by
map method as Karnaugh map or K-map.
 The map is made up of squares, with each square
representing one minterm of the function.
 This produces a circuit diagram with a minimum
number of gates and the minimum number of
inputs to the gate.
 It is sometimes possible to find two or more
expressions that satisfy the minimization criteria.
2
Two-Variable map
 Two-variable has four minterms, and consists of
four squares.
 m1 + m2 + m3 = x’y + xy’ + xy = x + y
3
Three-Variable map
 Note that the minterms are not arranged in a binary
sequence, but similar to the Gray code.
 For simplifying Boolean functions, we must recognize the
basic property possessed by adjacent squares.
 m5+m7= xy’z + xyz = xz(y’ + y) = xz
y
cancel
4
Simplification of the number of
adjacent squares
 A larger number of adjacent squares are
combined, we obtain a product term with fewer
literals.
1 square = 1 minterm = three literals.
2 adjacent squares = 1 term = two literals.
4 adjacent squares = 1 term = one literal.
8 adjacent squares encompass the entire map and
produce a function that is always equal to 1.
 It is obviously to know the number of adjacent squares is
combined in a power of two such as 1,2,4, and 8.
5
Example
Ex. 3-3 F(x, y, z) = ∑(0, 2, 4, 5, 6)
F = z’ + xy’
6
3-2. Four-variable map
1 square = 1 minterm = 4 literals
2 adjacent squares = 1 term = 3 literals
4 adjacent squares = 1 term = 2 literals
8 adjacent squares = 1 term = 1 literal
16 adjacent squares = 1
7
Example
Ex. 3-6 F = A’B’C’ + B’CD’ + A’BCD’ + AB’C’
= B’D’ B’C’+ A’CD’+
8
Essential prime implicants
 If a minterm in a square is
covered by only one prime
implicant, that the prime
implicant is said to be
essential.
9
Prime implicant
 A prime implicant is a product term
obtained by combining the
maximum possible number of
adjacent squares in the map.
 This shows all possible ways that
the three minterms(m3,m9,m11) can
be covered with prime implicants.
F = BD+B’D’+CD+AD
= BD+B’D’+CD+AB’
= BD+B’D’+B’C+AD
= BD+B’D’+B’C+AB’
10
3-3. Five-variable map
 Fig.3-12, the left-hand four-variable map represents the 16 squares
where A=0, and the other four-variable map represents the squares
where A=1.
 In addition, each square in the A=0 map is adjacent to the
corresponding square in the A=1 map.
11
Five-variable map
 It is possible to show that any 2k
adjacent squares, for
k=(0,1,2,…,n) in an n-variable map, will represent an area
that gives a term of n−k literals(n>k). When n=k, it is identity
function.
12
example
Ex. 3-7 F(A, B, C, D, E) = (0, 2, 4, 6, 9, 13, 21, 23, 25, 29, 31)
Because of both parts of the map have the common term (A’BD’E+ABD’E)
so the sum of products is
F = A’B’E’ + BD’E + ACE
common
13
3-4. Product of sums
simplification
 If we mark the empty squares by 0’s rather than 1’s
and combine them into valid adjacent squares, we
obtain the complement of the function, F’. Use the
DeMorgan’s theorem, we can get the product of
sums.
Ex.3-8 Simplify the Boolean function in
(a) sum of products
(b) product of sums
F(A, B, C, D) = ∑(0, 1, 2, 5, 8, 9, 10)
14
Example
(a) SOPs
F=
(b) POSs
F’=
By DeMorgan’s thm
F=
B’D’ + B’C’ + A’C’D
A
B
+ CD + BD’
(A’+B’) .(C’+D’)
.(B’+D)
15
Gate implementation
16
Exchange minterm and maxterm
 Consider the truth table
that defines the function F
in Table 3-2.
Sum of minterms
F(x, y, z) = ∑(1, 3, 4, 6)
Product of maxterms
F(x, y, z) = ∏(0, 2, 5, 7)
 In the other words, the 1’s
of the function represent
the minterms, and the 0’s
represent the maxterms.
17
3-5. Don’t care conditions
Ex.3-9 Simplify the F (w, x, y, z)= ∑(1, 3, 7, 11, 15) with
don’t-care conditions d(w, x, y, z) = ∑(0, 2, 5)
In part (a) with minterms 0 and 2 F = yz + w’x’
In part (b) with minterm 5  F = yz + w’z
18
3-6. NAND and NOR
implementation
 NAND gate is a universal gate because any digital system
can be implemented with it.
 NAND gate can be used to express the basic gates, NOT,
AND, and OR.
19
Two graphic symbols for NAND
gate
 In part (b), we can place a bubble (NOT) in each
input and apply the DeMorgan’s theorem, then get
a Boolean function in NAND type.
20
Two-level implementation
F = AB + CD
Double
complementation,
so can be removed
=
OR
gate,Fig.3-
18
=
21
Multilevel NAND circuits
 To convert a multilevel AND-OR diagram into an
all-NAND diagram using mixed notation is as
follows:
1. Convert all AND gates to NAND gates with AND-invert
graphic symbols.
2. Convert all OR gates to NAND gates with invert-OR
graphic symbols.
3. Check all the bubbles in the diagram. For every bubble
that is not compensated by another small circle along the
same line, insert an inverter or complement the input
literal.
22
Multilevel NAND circuits
,
,
23
NOR implementation
 The NOR operation is the dual of the NAND operation, all
procedures and rules for NOR logic are the dual of NAND
logic.
 NOR gate is also a universal gate.
24
Two graphic symbols for NOR
gate
 In part (b), we can place a bubble (NOT) in each
input and apply the DeMorgan’s theorem, then get
a Boolean function in NOR type.
25
Implementing F with NOR gates
F = (AB’ + A’B)(C + D’)
 To compensate for the bubbles in four inputs, it is
necessary to complement the corresponding input
literals.
26
3-7. Other two-level
implementations
 Some NAND or NOR
gates allow the
possibility of a wire
connection between the
outputs of two gates to
provide a wired logic.
 Open-collector TTL
NAND gates, when tied
together, perform the
wired-AND logic (Fig.3-
28).
 The wired-AND gate is
not a physical gate.
Wired-
And
27
Nondegenerate forms
 We consider four types of gates: AND, OR, NAND,
and NOR. These will have 16 combinations of two-
level forms.
 Eight of these combinations are said to be
degenerate forms, because they degenerate to a
single operation.
 The other eight nondegenerate forms produce an
SOPs or POSs as follows:
AND-OR  3-4 OR-AND  3-4
NAND-NAND  3-6 NOR-NOR  3-6
NOR-OR NAND-AND
OR-NAND AND-NOR
28
AND-OR-INVERT implementation
 The two forms NAND-AND and AND-NOR are equivalent
forms and can be treated together.
F = (AB + CD + E)’
Shift
back
29
OR-AND-INVERT implementation
 The OR-NAND form resembles the OR-AND form, except
for the inversion done by the bubble in the NAND gate.
F = [(A + B)(C + D)E]’
Shift
back
30
Tabular summary and example
 Because of the INVERT part in each case, it is
convenient to use the simplification of F’ of the
function.
31
Example
Ex.3-11 Implement the function of Fig.3-31(a) with the four
two-level forms listed in Table 3-3.
The complement of the function by combining the 0’s:
F’ = x’y + xy’ + z
The normal output for this function
F = (x’y + x’y + z)’
Which is in the AND-OR-INVERT form.
32
Example
 The AND-NOR and NAND-AND implementations
are shown as follows.
33
Example
 The OR-AND-INVERT forms require a simplified expression
of the complement of the function in POSs.
Combine the 1’s in the map
F = x’y’z’ + xyz’
Complement of the function
F’ = (x + y + z)(x’ + y’ + z)
34
Example
The normal output F
F = (x + y + z)(x’ + y’ + z)]’
We can implement the function in the OR-NAND and NOR-OR
forms as follows.
35
3-8. Exclusive-OR function
 The XOR symbol denote as ⊕, the Boolean
operation: x ⊕ y = xy’ + x’y
 The X-NOR symbol denote as ⊙, the Boolean
operation: x ⊙ y = (x ⊕ y )’ = xy + x’y’
 The identities of the XOR operation:
x ⊕ 0 = x x ⊕ 1 = x’ x ⊕ x = 0
x ⊕ x’ = 1 x ⊕ y’ = x’ ⊕ y = (x ⊕ y)’
 Commutative and associative:
A ⊕ B = B ⊕ A
(A ⊕ B) ⊕ C = A ⊕ (B ⊕ C) = A ⊕ B ⊕ C
36
Exclusive-OR
implementations
 Fig.3-32(b), the first NAND gate performs the operation (xy)’ = (x’ + y’).
(x’ + y’)x + (x’ + y’)y = xy’ + x’y = x ⊕ y
37
Odd function
 Boolean expression of three-variable of the XOR:
A ⊕ B ⊕ C = (AB’ + A’B)C’ + (AB + A’B’)C
= AB’C’ + A’BC’ + ABC + A’B’C
=∑(1, 2, 4, 7)
 Odd function defined as the logical sum of the 2n
/2 minterms
whose binary numerical values have an odd number of 1’s.
38
Odd and Even functions
 The 3-input odd function is implemented by means of 2-
input exclusive-OR gates.
39
Parity generation and checking
 Table 3-4, the P make the total number of 1’s
even(including P). P constitutes an odd function.
 A parity bit is an extra bit included with a binary message to
make the number of 1’s either odd or even.
P=x ⊕ y ⊕ z
40
Parity generation and checking
 The circuit that generates the parity bit in the
transmitter(receiver) is called a parity generator(checker).
Transmitter Receiver
41
Example of even parity
 Since the information was
transmitted with even parity, the
four bits received must have an
even number of 1’s.
 An error occurs during the
transmission if the four bits
received have an odd number
of 1’s.
 The output of the parity
checker, denoted by C, will be
equal to 1 if an error occurs,
that is, if the four bits received
have an odd number of 1’s.
 C = x ⊕ y ⊕ z ⊕ P
Error
42
3-9. Hardware Description
Language (HDL)
 It resembles a programming language, but is
specifically oriented to describing hardware
structures and behavior.
 There are two applications of HDL processing:
1. Logic simulation: allows the detection of functional errors in
a design without having to physically create the circuit.
2. Logic synthesis: the process of deriving a list of
components and their interconnections (called a netlist)
from the model of a digital system described in HDL.
43
Module representation
 Identifiers must start with an alphabetic character
or an underscore.
HDL Example 3-1
//Description of simple circuit Fig. 3-37
Module smpl_circuit(A,B,C,x,y);
input A,B,C;
output x,y;
wire e;
and g1(e,A,B);
not g2(y,C);
or g3(x,e,y);
endmodule
keywords
44
Gate delays
 The delay is specified in terms of time units and the
symbol #.
‘timescale 1ns/100ps
The first number specifies the unit of measurement for time
delays. The second number specifies the precision for which
the delays are rounded-off.
 If no timescale is specified, the simulator defaults
to a certain time unit, usually 1 ns.
45
Gate delays
46
Stimulus and circuit description
modules
47
Boolean expressions
 Boolean expressions are specified in Verilog HDL with a
continuous assignment statement consisting of the keyword
assign followed by a Boolean expression.
assign x = (A & B) ∣ ~ C ;
48
User-Defined primitives (UDP)
49
User-Defined primitives (UDP)
 With keywords and, or, etc…,are referred to as
system primitives. The user can create additional
primitives by defining them in a tabular form, so-
called UDP.
 UDP use the keyword “primitive” instead of
keyword “module”.
 HDL proceeds according to the following rules:
1. It is declared with the keyword primitive followed by a
name and port list.
2. There can be only one output and it must be listed first in
the ort list and declared with an output keyword.
50
User-Defined primitives (UDP)
3. There can be any number of inputs. The order in which
they are listed in the input declaration must conform to
the order in which they are given values in the table that
follows.
4. The truth table is enclosed within the keywords table and
endtable.
5. The values of the inputs are listed in order ending with a
colon(:). The output is always the last entry in a row
followed by a semicolon(;).
6. It ends with the keyword endprimitive.

More Related Content

What's hot

Tocci ch 6 digital arithmetic operations and circuits
Tocci ch 6 digital arithmetic operations and circuitsTocci ch 6 digital arithmetic operations and circuits
Tocci ch 6 digital arithmetic operations and circuitscairo university
 
1. FPGA architectures.pdf
1. FPGA architectures.pdf1. FPGA architectures.pdf
1. FPGA architectures.pdfTesfuFiseha1
 
Lab 4 Three-Bit Binary Adder
Lab 4 Three-Bit Binary AdderLab 4 Three-Bit Binary Adder
Lab 4 Three-Bit Binary AdderKatrina Little
 
UNIT-II CPLD & FPGA Architectures and Applications
UNIT-II CPLD & FPGA  Architectures   and ApplicationsUNIT-II CPLD & FPGA  Architectures   and Applications
UNIT-II CPLD & FPGA Architectures and ApplicationsDr.YNM
 
Reed Solomon encoder and decoder \ ريد سلمون
Reed Solomon encoder and decoder \ ريد سلمونReed Solomon encoder and decoder \ ريد سلمون
Reed Solomon encoder and decoder \ ريد سلمونMuhammed Abdulmahdi
 
decoder and encoder
 decoder and encoder decoder and encoder
decoder and encoderUnsa Shakir
 
Ripple counter
Ripple counterRipple counter
Ripple counterchandkec
 
Basic gates and boolean algebra
Basic gates and boolean algebraBasic gates and boolean algebra
Basic gates and boolean algebraSudheesh S Madhav
 
Decoders
DecodersDecoders
DecodersRe Man
 
Discrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكرو
Discrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكروDiscrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكرو
Discrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكروDr. Khaled Bakro
 

What's hot (20)

Chapter 4: Combinational Logic
Chapter 4: Combinational LogicChapter 4: Combinational Logic
Chapter 4: Combinational Logic
 
Tocci ch 6 digital arithmetic operations and circuits
Tocci ch 6 digital arithmetic operations and circuitsTocci ch 6 digital arithmetic operations and circuits
Tocci ch 6 digital arithmetic operations and circuits
 
1. FPGA architectures.pdf
1. FPGA architectures.pdf1. FPGA architectures.pdf
1. FPGA architectures.pdf
 
Verilog HDL CODES
Verilog HDL CODES Verilog HDL CODES
Verilog HDL CODES
 
Verilog hdl
Verilog hdlVerilog hdl
Verilog hdl
 
Lab 4 Three-Bit Binary Adder
Lab 4 Three-Bit Binary AdderLab 4 Three-Bit Binary Adder
Lab 4 Three-Bit Binary Adder
 
UNIT-II CPLD & FPGA Architectures and Applications
UNIT-II CPLD & FPGA  Architectures   and ApplicationsUNIT-II CPLD & FPGA  Architectures   and Applications
UNIT-II CPLD & FPGA Architectures and Applications
 
Decoders.pptx
Decoders.pptxDecoders.pptx
Decoders.pptx
 
Reed Solomon encoder and decoder \ ريد سلمون
Reed Solomon encoder and decoder \ ريد سلمونReed Solomon encoder and decoder \ ريد سلمون
Reed Solomon encoder and decoder \ ريد سلمون
 
decoder and encoder
 decoder and encoder decoder and encoder
decoder and encoder
 
Ripple counter
Ripple counterRipple counter
Ripple counter
 
Coding
CodingCoding
Coding
 
Basic gates and boolean algebra
Basic gates and boolean algebraBasic gates and boolean algebra
Basic gates and boolean algebra
 
Chapter 03 cyclic codes
Chapter 03   cyclic codesChapter 03   cyclic codes
Chapter 03 cyclic codes
 
convolution
convolutionconvolution
convolution
 
Combinational Logic
Combinational LogicCombinational Logic
Combinational Logic
 
Decoders
DecodersDecoders
Decoders
 
Bch codes
Bch codesBch codes
Bch codes
 
Discrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكرو
Discrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكروDiscrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكرو
Discrete mathematics Ch1 sets Theory_Dr.Khaled.Bakro د. خالد بكرو
 
Flipflop
FlipflopFlipflop
Flipflop
 

Viewers also liked

Gate level minimization (1st update)
Gate level minimization (1st update)Gate level minimization (1st update)
Gate level minimization (1st update)Aravir Rose
 
Barry Hatcher Job Review 12_2015
Barry Hatcher Job Review 12_2015Barry Hatcher Job Review 12_2015
Barry Hatcher Job Review 12_2015Barry Hatcher
 
Chap02 solutions-ex-2-5-calculus
Chap02 solutions-ex-2-5-calculusChap02 solutions-ex-2-5-calculus
Chap02 solutions-ex-2-5-calculuskhurram shahzad
 
Band Level of Integration
Band Level of IntegrationBand Level of Integration
Band Level of IntegrationPaulVMcDowell
 
Gate level minimization (2nd update)
Gate level minimization (2nd update)Gate level minimization (2nd update)
Gate level minimization (2nd update)Aravir Rose
 
SENG 6270 - Software-Requirement-Specifications
SENG 6270 - Software-Requirement-SpecificationsSENG 6270 - Software-Requirement-Specifications
SENG 6270 - Software-Requirement-SpecificationsApil Tamang
 
SAMPLE PROCESS - TEMPLATE
SAMPLE PROCESS - TEMPLATESAMPLE PROCESS - TEMPLATE
SAMPLE PROCESS - TEMPLATEArul Nambi
 
Software Requirement Specification
Software Requirement SpecificationSoftware Requirement Specification
Software Requirement Specificationawais mushtaq
 
Software Requirments
Software RequirmentsSoftware Requirments
Software RequirmentsDhunsyam Daji
 
Computer Hardware-Software Requirments In Computer Devices And Mobiles
Computer Hardware-Software Requirments In Computer Devices And MobilesComputer Hardware-Software Requirments In Computer Devices And Mobiles
Computer Hardware-Software Requirments In Computer Devices And MobilesBinTech Services
 
Carry look ahead adder
Carry look ahead adderCarry look ahead adder
Carry look ahead adderdragonpradeep
 
Software requirements specification
Software  requirements specificationSoftware  requirements specification
Software requirements specificationKrishnasai Gudavalli
 
Half adder & full adder
Half adder & full adderHalf adder & full adder
Half adder & full adderGaditek
 

Viewers also liked (15)

Gate level minimization (1st update)
Gate level minimization (1st update)Gate level minimization (1st update)
Gate level minimization (1st update)
 
Barry Hatcher Job Review 12_2015
Barry Hatcher Job Review 12_2015Barry Hatcher Job Review 12_2015
Barry Hatcher Job Review 12_2015
 
Chap02 solutions-ex-2-5-calculus
Chap02 solutions-ex-2-5-calculusChap02 solutions-ex-2-5-calculus
Chap02 solutions-ex-2-5-calculus
 
Band Level of Integration
Band Level of IntegrationBand Level of Integration
Band Level of Integration
 
Gate level minimization (2nd update)
Gate level minimization (2nd update)Gate level minimization (2nd update)
Gate level minimization (2nd update)
 
Vhdl introduction
Vhdl introductionVhdl introduction
Vhdl introduction
 
SENG 6270 - Software-Requirement-Specifications
SENG 6270 - Software-Requirement-SpecificationsSENG 6270 - Software-Requirement-Specifications
SENG 6270 - Software-Requirement-Specifications
 
SAMPLE PROCESS - TEMPLATE
SAMPLE PROCESS - TEMPLATESAMPLE PROCESS - TEMPLATE
SAMPLE PROCESS - TEMPLATE
 
Ripple adder
Ripple adderRipple adder
Ripple adder
 
Software Requirement Specification
Software Requirement SpecificationSoftware Requirement Specification
Software Requirement Specification
 
Software Requirments
Software RequirmentsSoftware Requirments
Software Requirments
 
Computer Hardware-Software Requirments In Computer Devices And Mobiles
Computer Hardware-Software Requirments In Computer Devices And MobilesComputer Hardware-Software Requirments In Computer Devices And Mobiles
Computer Hardware-Software Requirments In Computer Devices And Mobiles
 
Carry look ahead adder
Carry look ahead adderCarry look ahead adder
Carry look ahead adder
 
Software requirements specification
Software  requirements specificationSoftware  requirements specification
Software requirements specification
 
Half adder & full adder
Half adder & full adderHalf adder & full adder
Half adder & full adder
 

Similar to Chapter 3 2

DLD BOOLEAN EXPRESSIONS
DLD BOOLEAN EXPRESSIONSDLD BOOLEAN EXPRESSIONS
DLD BOOLEAN EXPRESSIONSnaresh414857
 
شيت دمحمددسوقى
شيت دمحمددسوقىشيت دمحمددسوقى
شيت دمحمددسوقىabdoo2020
 
FPGA based BCH Decoder
FPGA based BCH DecoderFPGA based BCH Decoder
FPGA based BCH Decoderijsrd.com
 
Boolean Algebra by SUKHDEEP SINGH
Boolean Algebra by SUKHDEEP SINGHBoolean Algebra by SUKHDEEP SINGH
Boolean Algebra by SUKHDEEP SINGHSukhdeep Bisht
 
FYBSC IT Digital Electronics Unit II Chapter II Minterm, Maxterm and Karnaugh...
FYBSC IT Digital Electronics Unit II Chapter II Minterm, Maxterm and Karnaugh...FYBSC IT Digital Electronics Unit II Chapter II Minterm, Maxterm and Karnaugh...
FYBSC IT Digital Electronics Unit II Chapter II Minterm, Maxterm and Karnaugh...Arti Parab Academics
 
Logic System Design KTU Chapter-4.ppt
Logic System Design KTU Chapter-4.pptLogic System Design KTU Chapter-4.ppt
Logic System Design KTU Chapter-4.pptAlbin562191
 
ECE 2103_L6 Boolean Algebra Canonical Forms [Autosaved].pptx
ECE 2103_L6 Boolean Algebra Canonical Forms [Autosaved].pptxECE 2103_L6 Boolean Algebra Canonical Forms [Autosaved].pptx
ECE 2103_L6 Boolean Algebra Canonical Forms [Autosaved].pptxMdJubayerFaisalEmon
 
Ec2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.orgEc2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.organnaunivedu
 
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theoremsarunachalamr16
 
Chapter 3: Simplification of Boolean Function
Chapter 3: Simplification of Boolean FunctionChapter 3: Simplification of Boolean Function
Chapter 3: Simplification of Boolean FunctionEr. Nawaraj Bhandari
 
DLD Lecture No 15 Prime and Essential Implicants, Five Variable Map.pptx
DLD Lecture No 15 Prime and Essential Implicants, Five Variable Map.pptxDLD Lecture No 15 Prime and Essential Implicants, Five Variable Map.pptx
DLD Lecture No 15 Prime and Essential Implicants, Five Variable Map.pptxSaveraAyub2
 
B sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebraB sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebraMahiboobAliMulla
 
ECE 3rd_Unit No. 1_K-Map_DSD.ppt
ECE 3rd_Unit No. 1_K-Map_DSD.pptECE 3rd_Unit No. 1_K-Map_DSD.ppt
ECE 3rd_Unit No. 1_K-Map_DSD.pptsonusreekumar
 
WEEK 4- DLD-GateLvelMinimization.pptx
WEEK 4- DLD-GateLvelMinimization.pptxWEEK 4- DLD-GateLvelMinimization.pptx
WEEK 4- DLD-GateLvelMinimization.pptxTaoqeerRajput
 

Similar to Chapter 3 2 (20)

Chapter-3.pptx
Chapter-3.pptxChapter-3.pptx
Chapter-3.pptx
 
DLD BOOLEAN EXPRESSIONS
DLD BOOLEAN EXPRESSIONSDLD BOOLEAN EXPRESSIONS
DLD BOOLEAN EXPRESSIONS
 
Digital Logic
Digital LogicDigital Logic
Digital Logic
 
شيت دمحمددسوقى
شيت دمحمددسوقىشيت دمحمددسوقى
شيت دمحمددسوقى
 
FPGA based BCH Decoder
FPGA based BCH DecoderFPGA based BCH Decoder
FPGA based BCH Decoder
 
Boolean Algebra by SUKHDEEP SINGH
Boolean Algebra by SUKHDEEP SINGHBoolean Algebra by SUKHDEEP SINGH
Boolean Algebra by SUKHDEEP SINGH
 
FYBSC IT Digital Electronics Unit II Chapter II Minterm, Maxterm and Karnaugh...
FYBSC IT Digital Electronics Unit II Chapter II Minterm, Maxterm and Karnaugh...FYBSC IT Digital Electronics Unit II Chapter II Minterm, Maxterm and Karnaugh...
FYBSC IT Digital Electronics Unit II Chapter II Minterm, Maxterm and Karnaugh...
 
Logic System Design KTU Chapter-4.ppt
Logic System Design KTU Chapter-4.pptLogic System Design KTU Chapter-4.ppt
Logic System Design KTU Chapter-4.ppt
 
Combinational circuit
Combinational circuitCombinational circuit
Combinational circuit
 
ECE 2103_L6 Boolean Algebra Canonical Forms [Autosaved].pptx
ECE 2103_L6 Boolean Algebra Canonical Forms [Autosaved].pptxECE 2103_L6 Boolean Algebra Canonical Forms [Autosaved].pptx
ECE 2103_L6 Boolean Algebra Canonical Forms [Autosaved].pptx
 
internal assement 3
internal assement 3internal assement 3
internal assement 3
 
Ec2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.orgEc2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.org
 
B sc ii sem unit 2(b) ba
B sc ii sem unit 2(b) baB sc ii sem unit 2(b) ba
B sc ii sem unit 2(b) ba
 
Goldie chapter 4 function
Goldie chapter 4 functionGoldie chapter 4 function
Goldie chapter 4 function
 
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
18 pc09 1.2_ digital logic gates _ boolean algebra_basic theorems
 
Chapter 3: Simplification of Boolean Function
Chapter 3: Simplification of Boolean FunctionChapter 3: Simplification of Boolean Function
Chapter 3: Simplification of Boolean Function
 
DLD Lecture No 15 Prime and Essential Implicants, Five Variable Map.pptx
DLD Lecture No 15 Prime and Essential Implicants, Five Variable Map.pptxDLD Lecture No 15 Prime and Essential Implicants, Five Variable Map.pptx
DLD Lecture No 15 Prime and Essential Implicants, Five Variable Map.pptx
 
B sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebraB sc3 unit 3 boolean algebra
B sc3 unit 3 boolean algebra
 
ECE 3rd_Unit No. 1_K-Map_DSD.ppt
ECE 3rd_Unit No. 1_K-Map_DSD.pptECE 3rd_Unit No. 1_K-Map_DSD.ppt
ECE 3rd_Unit No. 1_K-Map_DSD.ppt
 
WEEK 4- DLD-GateLvelMinimization.pptx
WEEK 4- DLD-GateLvelMinimization.pptxWEEK 4- DLD-GateLvelMinimization.pptx
WEEK 4- DLD-GateLvelMinimization.pptx
 

Recently uploaded

Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerAnamika Sarkar
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineeringmalavadedarshan25
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...RajaP95
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZTE
 

Recently uploaded (20)

Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube ExchangerStudy on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
Study on Air-Water & Water-Water Heat Exchange in a Finned Tube Exchanger
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Internship report on mechanical engineering
Internship report on mechanical engineeringInternship report on mechanical engineering
Internship report on mechanical engineering
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
IMPLICATIONS OF THE ABOVE HOLISTIC UNDERSTANDING OF HARMONY ON PROFESSIONAL E...
 
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
ZXCTN 5804 / ZTE PTN / ZTE POTN / ZTE 5804 PTN / ZTE POTN 5804 ( 100/200 GE Z...
 

Chapter 3 2

  • 1. 1 Chapter 3 Gate-Level Minimization  The Boolean functions also can be simplified by map method as Karnaugh map or K-map.  The map is made up of squares, with each square representing one minterm of the function.  This produces a circuit diagram with a minimum number of gates and the minimum number of inputs to the gate.  It is sometimes possible to find two or more expressions that satisfy the minimization criteria.
  • 2. 2 Two-Variable map  Two-variable has four minterms, and consists of four squares.  m1 + m2 + m3 = x’y + xy’ + xy = x + y
  • 3. 3 Three-Variable map  Note that the minterms are not arranged in a binary sequence, but similar to the Gray code.  For simplifying Boolean functions, we must recognize the basic property possessed by adjacent squares.  m5+m7= xy’z + xyz = xz(y’ + y) = xz y cancel
  • 4. 4 Simplification of the number of adjacent squares  A larger number of adjacent squares are combined, we obtain a product term with fewer literals. 1 square = 1 minterm = three literals. 2 adjacent squares = 1 term = two literals. 4 adjacent squares = 1 term = one literal. 8 adjacent squares encompass the entire map and produce a function that is always equal to 1.  It is obviously to know the number of adjacent squares is combined in a power of two such as 1,2,4, and 8.
  • 5. 5 Example Ex. 3-3 F(x, y, z) = ∑(0, 2, 4, 5, 6) F = z’ + xy’
  • 6. 6 3-2. Four-variable map 1 square = 1 minterm = 4 literals 2 adjacent squares = 1 term = 3 literals 4 adjacent squares = 1 term = 2 literals 8 adjacent squares = 1 term = 1 literal 16 adjacent squares = 1
  • 7. 7 Example Ex. 3-6 F = A’B’C’ + B’CD’ + A’BCD’ + AB’C’ = B’D’ B’C’+ A’CD’+
  • 8. 8 Essential prime implicants  If a minterm in a square is covered by only one prime implicant, that the prime implicant is said to be essential.
  • 9. 9 Prime implicant  A prime implicant is a product term obtained by combining the maximum possible number of adjacent squares in the map.  This shows all possible ways that the three minterms(m3,m9,m11) can be covered with prime implicants. F = BD+B’D’+CD+AD = BD+B’D’+CD+AB’ = BD+B’D’+B’C+AD = BD+B’D’+B’C+AB’
  • 10. 10 3-3. Five-variable map  Fig.3-12, the left-hand four-variable map represents the 16 squares where A=0, and the other four-variable map represents the squares where A=1.  In addition, each square in the A=0 map is adjacent to the corresponding square in the A=1 map.
  • 11. 11 Five-variable map  It is possible to show that any 2k adjacent squares, for k=(0,1,2,…,n) in an n-variable map, will represent an area that gives a term of n−k literals(n>k). When n=k, it is identity function.
  • 12. 12 example Ex. 3-7 F(A, B, C, D, E) = (0, 2, 4, 6, 9, 13, 21, 23, 25, 29, 31) Because of both parts of the map have the common term (A’BD’E+ABD’E) so the sum of products is F = A’B’E’ + BD’E + ACE common
  • 13. 13 3-4. Product of sums simplification  If we mark the empty squares by 0’s rather than 1’s and combine them into valid adjacent squares, we obtain the complement of the function, F’. Use the DeMorgan’s theorem, we can get the product of sums. Ex.3-8 Simplify the Boolean function in (a) sum of products (b) product of sums F(A, B, C, D) = ∑(0, 1, 2, 5, 8, 9, 10)
  • 14. 14 Example (a) SOPs F= (b) POSs F’= By DeMorgan’s thm F= B’D’ + B’C’ + A’C’D A B + CD + BD’ (A’+B’) .(C’+D’) .(B’+D)
  • 16. 16 Exchange minterm and maxterm  Consider the truth table that defines the function F in Table 3-2. Sum of minterms F(x, y, z) = ∑(1, 3, 4, 6) Product of maxterms F(x, y, z) = ∏(0, 2, 5, 7)  In the other words, the 1’s of the function represent the minterms, and the 0’s represent the maxterms.
  • 17. 17 3-5. Don’t care conditions Ex.3-9 Simplify the F (w, x, y, z)= ∑(1, 3, 7, 11, 15) with don’t-care conditions d(w, x, y, z) = ∑(0, 2, 5) In part (a) with minterms 0 and 2 F = yz + w’x’ In part (b) with minterm 5  F = yz + w’z
  • 18. 18 3-6. NAND and NOR implementation  NAND gate is a universal gate because any digital system can be implemented with it.  NAND gate can be used to express the basic gates, NOT, AND, and OR.
  • 19. 19 Two graphic symbols for NAND gate  In part (b), we can place a bubble (NOT) in each input and apply the DeMorgan’s theorem, then get a Boolean function in NAND type.
  • 20. 20 Two-level implementation F = AB + CD Double complementation, so can be removed = OR gate,Fig.3- 18 =
  • 21. 21 Multilevel NAND circuits  To convert a multilevel AND-OR diagram into an all-NAND diagram using mixed notation is as follows: 1. Convert all AND gates to NAND gates with AND-invert graphic symbols. 2. Convert all OR gates to NAND gates with invert-OR graphic symbols. 3. Check all the bubbles in the diagram. For every bubble that is not compensated by another small circle along the same line, insert an inverter or complement the input literal.
  • 23. 23 NOR implementation  The NOR operation is the dual of the NAND operation, all procedures and rules for NOR logic are the dual of NAND logic.  NOR gate is also a universal gate.
  • 24. 24 Two graphic symbols for NOR gate  In part (b), we can place a bubble (NOT) in each input and apply the DeMorgan’s theorem, then get a Boolean function in NOR type.
  • 25. 25 Implementing F with NOR gates F = (AB’ + A’B)(C + D’)  To compensate for the bubbles in four inputs, it is necessary to complement the corresponding input literals.
  • 26. 26 3-7. Other two-level implementations  Some NAND or NOR gates allow the possibility of a wire connection between the outputs of two gates to provide a wired logic.  Open-collector TTL NAND gates, when tied together, perform the wired-AND logic (Fig.3- 28).  The wired-AND gate is not a physical gate. Wired- And
  • 27. 27 Nondegenerate forms  We consider four types of gates: AND, OR, NAND, and NOR. These will have 16 combinations of two- level forms.  Eight of these combinations are said to be degenerate forms, because they degenerate to a single operation.  The other eight nondegenerate forms produce an SOPs or POSs as follows: AND-OR  3-4 OR-AND  3-4 NAND-NAND  3-6 NOR-NOR  3-6 NOR-OR NAND-AND OR-NAND AND-NOR
  • 28. 28 AND-OR-INVERT implementation  The two forms NAND-AND and AND-NOR are equivalent forms and can be treated together. F = (AB + CD + E)’ Shift back
  • 29. 29 OR-AND-INVERT implementation  The OR-NAND form resembles the OR-AND form, except for the inversion done by the bubble in the NAND gate. F = [(A + B)(C + D)E]’ Shift back
  • 30. 30 Tabular summary and example  Because of the INVERT part in each case, it is convenient to use the simplification of F’ of the function.
  • 31. 31 Example Ex.3-11 Implement the function of Fig.3-31(a) with the four two-level forms listed in Table 3-3. The complement of the function by combining the 0’s: F’ = x’y + xy’ + z The normal output for this function F = (x’y + x’y + z)’ Which is in the AND-OR-INVERT form.
  • 32. 32 Example  The AND-NOR and NAND-AND implementations are shown as follows.
  • 33. 33 Example  The OR-AND-INVERT forms require a simplified expression of the complement of the function in POSs. Combine the 1’s in the map F = x’y’z’ + xyz’ Complement of the function F’ = (x + y + z)(x’ + y’ + z)
  • 34. 34 Example The normal output F F = (x + y + z)(x’ + y’ + z)]’ We can implement the function in the OR-NAND and NOR-OR forms as follows.
  • 35. 35 3-8. Exclusive-OR function  The XOR symbol denote as ⊕, the Boolean operation: x ⊕ y = xy’ + x’y  The X-NOR symbol denote as ⊙, the Boolean operation: x ⊙ y = (x ⊕ y )’ = xy + x’y’  The identities of the XOR operation: x ⊕ 0 = x x ⊕ 1 = x’ x ⊕ x = 0 x ⊕ x’ = 1 x ⊕ y’ = x’ ⊕ y = (x ⊕ y)’  Commutative and associative: A ⊕ B = B ⊕ A (A ⊕ B) ⊕ C = A ⊕ (B ⊕ C) = A ⊕ B ⊕ C
  • 36. 36 Exclusive-OR implementations  Fig.3-32(b), the first NAND gate performs the operation (xy)’ = (x’ + y’). (x’ + y’)x + (x’ + y’)y = xy’ + x’y = x ⊕ y
  • 37. 37 Odd function  Boolean expression of three-variable of the XOR: A ⊕ B ⊕ C = (AB’ + A’B)C’ + (AB + A’B’)C = AB’C’ + A’BC’ + ABC + A’B’C =∑(1, 2, 4, 7)  Odd function defined as the logical sum of the 2n /2 minterms whose binary numerical values have an odd number of 1’s.
  • 38. 38 Odd and Even functions  The 3-input odd function is implemented by means of 2- input exclusive-OR gates.
  • 39. 39 Parity generation and checking  Table 3-4, the P make the total number of 1’s even(including P). P constitutes an odd function.  A parity bit is an extra bit included with a binary message to make the number of 1’s either odd or even. P=x ⊕ y ⊕ z
  • 40. 40 Parity generation and checking  The circuit that generates the parity bit in the transmitter(receiver) is called a parity generator(checker). Transmitter Receiver
  • 41. 41 Example of even parity  Since the information was transmitted with even parity, the four bits received must have an even number of 1’s.  An error occurs during the transmission if the four bits received have an odd number of 1’s.  The output of the parity checker, denoted by C, will be equal to 1 if an error occurs, that is, if the four bits received have an odd number of 1’s.  C = x ⊕ y ⊕ z ⊕ P Error
  • 42. 42 3-9. Hardware Description Language (HDL)  It resembles a programming language, but is specifically oriented to describing hardware structures and behavior.  There are two applications of HDL processing: 1. Logic simulation: allows the detection of functional errors in a design without having to physically create the circuit. 2. Logic synthesis: the process of deriving a list of components and their interconnections (called a netlist) from the model of a digital system described in HDL.
  • 43. 43 Module representation  Identifiers must start with an alphabetic character or an underscore. HDL Example 3-1 //Description of simple circuit Fig. 3-37 Module smpl_circuit(A,B,C,x,y); input A,B,C; output x,y; wire e; and g1(e,A,B); not g2(y,C); or g3(x,e,y); endmodule keywords
  • 44. 44 Gate delays  The delay is specified in terms of time units and the symbol #. ‘timescale 1ns/100ps The first number specifies the unit of measurement for time delays. The second number specifies the precision for which the delays are rounded-off.  If no timescale is specified, the simulator defaults to a certain time unit, usually 1 ns.
  • 46. 46 Stimulus and circuit description modules
  • 47. 47 Boolean expressions  Boolean expressions are specified in Verilog HDL with a continuous assignment statement consisting of the keyword assign followed by a Boolean expression. assign x = (A & B) ∣ ~ C ;
  • 49. 49 User-Defined primitives (UDP)  With keywords and, or, etc…,are referred to as system primitives. The user can create additional primitives by defining them in a tabular form, so- called UDP.  UDP use the keyword “primitive” instead of keyword “module”.  HDL proceeds according to the following rules: 1. It is declared with the keyword primitive followed by a name and port list. 2. There can be only one output and it must be listed first in the ort list and declared with an output keyword.
  • 50. 50 User-Defined primitives (UDP) 3. There can be any number of inputs. The order in which they are listed in the input declaration must conform to the order in which they are given values in the table that follows. 4. The truth table is enclosed within the keywords table and endtable. 5. The values of the inputs are listed in order ending with a colon(:). The output is always the last entry in a row followed by a semicolon(;). 6. It ends with the keyword endprimitive.