SlideShare a Scribd company logo
1 of 12
Download to read offline
Carc 03.01
alessandro.bogliolo@uniurb.it
03. Logic Networks
03.01. Boolean algebra and logic synthesis
• Definitions
• Boolean functions
• Properties
• Canonical forms
• Synthesis and minimization
Computer Architecture
alessandro.bogliolo@uniurb.it
Carc 03.01
alessandro.bogliolo@uniurb.it
Definitions
• Boolean set:
• Boolean constants: 0, 1
• Boolean variable:
• Boolean functions: z=f(x1,x2,...,xn)
• Operations:
 10,B
xyyxz)y,x(
:and

 BBB
yxz)y,x(
:or

 BBB
x'xzx
:not

 BB
 10,x
x y xy
0 0 0
0 1 0
1 0 0
1 1 1
x y x+y
0 0 0
0 1 1
1 0 1
1 1 1
x x'
0 1
1 0
BB n
:f
Carc 03.01
alessandro.bogliolo@uniurb.it
Boolean functions
• Truth table:
Table of 2n rows that associates
a Boolean value to each configuration
of n independent variables
There are 22n
different functions of n
variables
• Boolean expression:
Expression of Boolean variables,
Boolean constants and operators
c)ab(cab'cbaf 
BB n
:f a b c f
0 0 0 1
0 0 1 0
0 1 0 1
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 1
Carc 03.01
alessandro.bogliolo@uniurb.it
Properties
xxx  xxx 
)zx()yx()zy(x  )zx()yx()zy(x 
z)xy()yz(xxyz  z)yx()zy(xzyx 
xyyx yxxy
xx 1 xx 0
00x 11x
0 'xx 1 'xx
xxyx  x)yx(x 
'y'x)'xy(  'y'x)'yx( 
Idempotent laws
Distributive laws
Associative laws
Commutative laws
Identity elements
Null laws (forcing elements)
Complement laws
Absorption laws
De Morgan’s laws (duality principle)
Carc 03.01
alessandro.bogliolo@uniurb.it
Idempotent laws
xxx  xxx 
Idempotent laws
x y xy
0 0 0
0 1 0
1 0 0
1 1 1
x x*x
0 0*0 0
1 1*1 1
x y x+y
0 0 0
0 1 1
1 0 1
1 1 1
x x+x
0 0+0 0
1 1+1 1
By perfect induction:
Carc 03.01
alessandro.bogliolo@uniurb.it
xxyx  x)yx(x 
Absorption laws
Absorption laws
xx)y(xyxx  11
xyxxyxxx)yx(x 
By Boolean manipulation:
Carc 03.01
alessandro.bogliolo@uniurb.it
'y'x)'xy(  'y'x)'yx( 
De Morgan’s laws
De Morgan’s laws
By perfect induction:
x=0, y=0  (00)’=0’=1 0’+0’=1+1=1
x=0, y=1  (01)’=0’=1 0’+1’=1+0=1
x=1, y=0  (10)’=0’=1 1’+0’=0+1=1
x=1, y=1  (11)’=1’=0 1’+1’=0+0=0
x=0, y=0  (0+0)’=0’=1 0’0’=11=1
x=0, y=1  (0+1)’=1’=0 0’1’=10=0
x=1, y=0  (1+0)’=1’=0 1’0’=01=0
x=1, y=1  (1+1)’=1’=0 1’1’=00=0
Carc 03.01
alessandro.bogliolo@uniurb.it
Canonical forms
• There are infinite equivalent Boolean expressions.
• The equivalence (i.e., identity) between two expressions
can be demonstrated:
1. By perfect induction
2. By Boolean manipulation
• Canonical forms associate unique expressions to each
function
• Checking the equivalence between two functions
reduces to a comparison of their canonical
representations
Carc 03.01
alessandro.bogliolo@uniurb.it
Canonical forms (Sum of Products)
• Literal: independent variable taken either in true or
complemented form (e.g., x, x’)
• Minterm: Product of all independent variables taken
either in true or complemented form
• A minterm represents a Boolean function that takes value 1
corresponding to a unique configuration of input variables (e.g.,
f(a,b,c)=ab’c takes vale 1 for abc=101)
• A Boolean function that takes value 1 for M different
configurations (that has M 1’s in the truth table) can be
expressed as the sum of the M minterms associated with the M
1’s
• Any Boolean function can be expressed as a sum of
products
• A sum of minterms, with fixed variable order, is a
canonical form
Carc 03.01
alessandro.bogliolo@uniurb.it
From truth tables to SoPs
a b c f
0 0 0 1
0 0 1 0
0 1 0 1
0 1 1 0
1 0 0 1
1 0 1 0
1 1 0 1
1 1 1 1
f = a’b’c’+ a’bc’+ ab’c’+ abc’+ abc
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
1
= + + + +
Carc 03.01
alessandro.bogliolo@uniurb.it
Boolean minimization
Given a Boolean function,
find a Boolean expression that represents the function
using a minimum number of literals
• In general, this is not an easy task
• There is a closed-form solution for 2-level SoP expressions
• There is no closed-form solution for general multi-level
expressions.
• Heuristic solutions found by Boolean manipulation
f = a’b’c’+ a’bc’+ ab’c’+ abc’+ abc 15 literals
f = a’c’+ ab’c’+ ab 7 literals
f = a’c’+ ab’c’+ abc’+ abc 11 literals
Carc 03.01
alessandro.bogliolo@uniurb.it
Boolean minimization (example)
f = a’b’c’+ a’bc’+ ab’c’+ abc’+ abc 15 literals (SoP)
= a’c’(b’+ b) + ab’c’+ ab (c’+ c) 11 literals (distributive)
= a’c’+ ab’c’+ ab 7 literals (complement)
= a’c’+ a (b’c’+ b) 6 literals (distributive)
= a’c’+ a (b’c’+ b c’+ b) 8 literals (absorption)
= a’c’+ a ((b’+b) c’+ b) 7 literals (distributive)
= a’c’+ a (c’+ b) 5 literals (complement)
= a’c’+ a c’+ ab 6 literals (distributive)
= (a’+ a) c’+ ab 5 literals (distributive)
= c’+ ab 3 literals (complement)
Remark: the number of literals doesn’t decrease at every step.
This makes the process non trivial

More Related Content

What's hot

Top School in Delhi NCR
Top School in Delhi NCRTop School in Delhi NCR
Top School in Delhi NCREdhole.com
 
BBMP1103 - Sept 2011 exam workshop - part 8
BBMP1103 - Sept 2011 exam workshop - part 8BBMP1103 - Sept 2011 exam workshop - part 8
BBMP1103 - Sept 2011 exam workshop - part 8Richard Ng
 
Mba admission in india
Mba admission in indiaMba admission in india
Mba admission in indiaEdhole.com
 
Math powerpoint- Polynomial equations and graph of polynomial functions
Math powerpoint- Polynomial equations and graph of polynomial functionsMath powerpoint- Polynomial equations and graph of polynomial functions
Math powerpoint- Polynomial equations and graph of polynomial functionsJana Marie Aguilar
 
Probability cheatsheet
Probability cheatsheetProbability cheatsheet
Probability cheatsheetSuvrat Mishra
 
Additional notes EC220
Additional notes EC220Additional notes EC220
Additional notes EC220Guo Xu
 
Integration
IntegrationIntegration
IntegrationRipaBiba
 
Complex form fourier series
Complex form fourier seriesComplex form fourier series
Complex form fourier seriesderry92
 
Stuff You Must Know Cold for the AP Calculus BC Exam!
Stuff You Must Know Cold for the AP Calculus BC Exam!Stuff You Must Know Cold for the AP Calculus BC Exam!
Stuff You Must Know Cold for the AP Calculus BC Exam!A Jorge Garcia
 
8.2 integration by parts
8.2 integration by parts8.2 integration by parts
8.2 integration by partsdicosmo178
 
Longest Common Subsequence
Longest Common SubsequenceLongest Common Subsequence
Longest Common SubsequenceSyeda
 
Hyperbolic functions dfs
Hyperbolic functions dfsHyperbolic functions dfs
Hyperbolic functions dfsFarhana Shaheen
 
Calculus cheat sheet_integrals
Calculus cheat sheet_integralsCalculus cheat sheet_integrals
Calculus cheat sheet_integralsUrbanX4
 

What's hot (18)

Top School in Delhi NCR
Top School in Delhi NCRTop School in Delhi NCR
Top School in Delhi NCR
 
BBMP1103 - Sept 2011 exam workshop - part 8
BBMP1103 - Sept 2011 exam workshop - part 8BBMP1103 - Sept 2011 exam workshop - part 8
BBMP1103 - Sept 2011 exam workshop - part 8
 
Maxwell's equations
Maxwell's equationsMaxwell's equations
Maxwell's equations
 
Mba admission in india
Mba admission in indiaMba admission in india
Mba admission in india
 
8 vo meme
8 vo meme8 vo meme
8 vo meme
 
Math powerpoint- Polynomial equations and graph of polynomial functions
Math powerpoint- Polynomial equations and graph of polynomial functionsMath powerpoint- Polynomial equations and graph of polynomial functions
Math powerpoint- Polynomial equations and graph of polynomial functions
 
Probability cheatsheet
Probability cheatsheetProbability cheatsheet
Probability cheatsheet
 
Hyperbolic functions
Hyperbolic functionsHyperbolic functions
Hyperbolic functions
 
Additional notes EC220
Additional notes EC220Additional notes EC220
Additional notes EC220
 
Integration
IntegrationIntegration
Integration
 
Complex form fourier series
Complex form fourier seriesComplex form fourier series
Complex form fourier series
 
Stuff You Must Know Cold for the AP Calculus BC Exam!
Stuff You Must Know Cold for the AP Calculus BC Exam!Stuff You Must Know Cold for the AP Calculus BC Exam!
Stuff You Must Know Cold for the AP Calculus BC Exam!
 
8.2 integration by parts
8.2 integration by parts8.2 integration by parts
8.2 integration by parts
 
Calculus of variations
Calculus of variationsCalculus of variations
Calculus of variations
 
Longest Common Subsequence
Longest Common SubsequenceLongest Common Subsequence
Longest Common Subsequence
 
Hyperbolic functions dfs
Hyperbolic functions dfsHyperbolic functions dfs
Hyperbolic functions dfs
 
Calculus cheat sheet_integrals
Calculus cheat sheet_integralsCalculus cheat sheet_integrals
Calculus cheat sheet_integrals
 
Integration by parts
Integration by partsIntegration by parts
Integration by parts
 

Viewers also liked

CArcMOOC 03.02 - Switching networks and combinational circuits
CArcMOOC 03.02 - Switching networks and combinational circuitsCArcMOOC 03.02 - Switching networks and combinational circuits
CArcMOOC 03.02 - Switching networks and combinational circuitsAlessandro Bogliolo
 
CArcMOOC 01.01 - Automated information processing
CArcMOOC 01.01 - Automated information processingCArcMOOC 01.01 - Automated information processing
CArcMOOC 01.01 - Automated information processingAlessandro Bogliolo
 
CArcMOOC 02.04 - Special encodings
CArcMOOC 02.04 - Special encodingsCArcMOOC 02.04 - Special encodings
CArcMOOC 02.04 - Special encodingsAlessandro Bogliolo
 
CArcMOOC 02.02 - Encodings of numerical sets
CArcMOOC 02.02 - Encodings of numerical setsCArcMOOC 02.02 - Encodings of numerical sets
CArcMOOC 02.02 - Encodings of numerical setsAlessandro Bogliolo
 
CArcMOOC 02.03 - Encodings of non-numerical sets
CArcMOOC 02.03 - Encodings of non-numerical setsCArcMOOC 02.03 - Encodings of non-numerical sets
CArcMOOC 02.03 - Encodings of non-numerical setsAlessandro Bogliolo
 

Viewers also liked (7)

CArcMOOC 03.05 - RTL design
CArcMOOC 03.05 - RTL designCArcMOOC 03.05 - RTL design
CArcMOOC 03.05 - RTL design
 
CArcMOOC 03.02 - Switching networks and combinational circuits
CArcMOOC 03.02 - Switching networks and combinational circuitsCArcMOOC 03.02 - Switching networks and combinational circuits
CArcMOOC 03.02 - Switching networks and combinational circuits
 
CArcMOOC 01.01 - Automated information processing
CArcMOOC 01.01 - Automated information processingCArcMOOC 01.01 - Automated information processing
CArcMOOC 01.01 - Automated information processing
 
CArcMOOC 02.04 - Special encodings
CArcMOOC 02.04 - Special encodingsCArcMOOC 02.04 - Special encodings
CArcMOOC 02.04 - Special encodings
 
CArcMOOC 02.02 - Encodings of numerical sets
CArcMOOC 02.02 - Encodings of numerical setsCArcMOOC 02.02 - Encodings of numerical sets
CArcMOOC 02.02 - Encodings of numerical sets
 
CArcMOOC 02.03 - Encodings of non-numerical sets
CArcMOOC 02.03 - Encodings of non-numerical setsCArcMOOC 02.03 - Encodings of non-numerical sets
CArcMOOC 02.03 - Encodings of non-numerical sets
 
CodyRoby at INTED2015
CodyRoby at INTED2015CodyRoby at INTED2015
CodyRoby at INTED2015
 

Similar to CArcMOOC 03.01 - Boolean algebra and Logic Synthesis

B sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gatesB sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gatesRai University
 
DM2020 boolean algebra
DM2020 boolean algebraDM2020 boolean algebra
DM2020 boolean algebraRobert Geofroy
 
Bca 2nd sem-u-1.5 digital logic circuits, digital component
Bca 2nd sem-u-1.5 digital logic circuits, digital componentBca 2nd sem-u-1.5 digital logic circuits, digital component
Bca 2nd sem-u-1.5 digital logic circuits, digital componentRai University
 
B.sc cs-ii-u-1.5 digital logic circuits, digital component
B.sc cs-ii-u-1.5 digital logic circuits, digital componentB.sc cs-ii-u-1.5 digital logic circuits, digital component
B.sc cs-ii-u-1.5 digital logic circuits, digital componentRai University
 
digital logic circuits, digital component
 digital logic circuits, digital component digital logic circuits, digital component
digital logic circuits, digital componentRai University
 
boolean algebra and logic simplification
boolean algebra and logic simplificationboolean algebra and logic simplification
boolean algebra and logic simplificationUnsa Shakir
 
Boolean algebra And Logic Gates
Boolean algebra And Logic GatesBoolean algebra And Logic Gates
Boolean algebra And Logic GatesKumar
 
Boolean Algebra logic and De Morgan theorem
Boolean Algebra logic and De Morgan theoremBoolean Algebra logic and De Morgan theorem
Boolean Algebra logic and De Morgan theorembalafet
 
booleanalgebra-140914001141-phpapp01 (1).ppt
booleanalgebra-140914001141-phpapp01 (1).pptbooleanalgebra-140914001141-phpapp01 (1).ppt
booleanalgebra-140914001141-phpapp01 (1).pptmichaelaaron25322
 
Lect 2 boolean algebra (4 5-21)
Lect 2 boolean algebra (4 5-21)Lect 2 boolean algebra (4 5-21)
Lect 2 boolean algebra (4 5-21)MeghaSharma513
 
Introduction-to-Boolean-Algebra.ppt
Introduction-to-Boolean-Algebra.pptIntroduction-to-Boolean-Algebra.ppt
Introduction-to-Boolean-Algebra.pptSanjay446332
 
Boolean expression org.
Boolean expression org.Boolean expression org.
Boolean expression org.mshoaib15
 
Logic design basics
Logic design basicsLogic design basics
Logic design basicsharishnn
 

Similar to CArcMOOC 03.01 - Boolean algebra and Logic Synthesis (20)

B sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gatesB sc cs i bo-de u-ii logic gates
B sc cs i bo-de u-ii logic gates
 
DM2020 boolean algebra
DM2020 boolean algebraDM2020 boolean algebra
DM2020 boolean algebra
 
Bca 2nd sem-u-1.5 digital logic circuits, digital component
Bca 2nd sem-u-1.5 digital logic circuits, digital componentBca 2nd sem-u-1.5 digital logic circuits, digital component
Bca 2nd sem-u-1.5 digital logic circuits, digital component
 
B.sc cs-ii-u-1.5 digital logic circuits, digital component
B.sc cs-ii-u-1.5 digital logic circuits, digital componentB.sc cs-ii-u-1.5 digital logic circuits, digital component
B.sc cs-ii-u-1.5 digital logic circuits, digital component
 
Boolean Algebra
Boolean AlgebraBoolean Algebra
Boolean Algebra
 
digital logic circuits, digital component
 digital logic circuits, digital component digital logic circuits, digital component
digital logic circuits, digital component
 
boolean algebra and logic simplification
boolean algebra and logic simplificationboolean algebra and logic simplification
boolean algebra and logic simplification
 
Boolean algebra And Logic Gates
Boolean algebra And Logic GatesBoolean algebra And Logic Gates
Boolean algebra And Logic Gates
 
Boolean algebra
Boolean algebraBoolean algebra
Boolean algebra
 
Boolean Algebra DLD
Boolean Algebra DLDBoolean Algebra DLD
Boolean Algebra DLD
 
Boolean Algebra logic and De Morgan theorem
Boolean Algebra logic and De Morgan theoremBoolean Algebra logic and De Morgan theorem
Boolean Algebra logic and De Morgan theorem
 
Boolean alebra
Boolean alebraBoolean alebra
Boolean alebra
 
booleanalgebra-140914001141-phpapp01 (1).ppt
booleanalgebra-140914001141-phpapp01 (1).pptbooleanalgebra-140914001141-phpapp01 (1).ppt
booleanalgebra-140914001141-phpapp01 (1).ppt
 
Lect 2 boolean algebra (4 5-21)
Lect 2 boolean algebra (4 5-21)Lect 2 boolean algebra (4 5-21)
Lect 2 boolean algebra (4 5-21)
 
Minimizing boolean
Minimizing booleanMinimizing boolean
Minimizing boolean
 
Minimizing boolean
Minimizing booleanMinimizing boolean
Minimizing boolean
 
2dig circ
2dig circ2dig circ
2dig circ
 
Introduction-to-Boolean-Algebra.ppt
Introduction-to-Boolean-Algebra.pptIntroduction-to-Boolean-Algebra.ppt
Introduction-to-Boolean-Algebra.ppt
 
Boolean expression org.
Boolean expression org.Boolean expression org.
Boolean expression org.
 
Logic design basics
Logic design basicsLogic design basics
Logic design basics
 

More from Alessandro Bogliolo

BIBMOOC 05.03 - Codici in biblioteca
BIBMOOC 05.03 - Codici in bibliotecaBIBMOOC 05.03 - Codici in biblioteca
BIBMOOC 05.03 - Codici in bibliotecaAlessandro Bogliolo
 
BIBMOOC 06.02 - Buone pratiche: Il caso di Settimo Torinese - Lisa Marcenaro ...
BIBMOOC 06.02 - Buone pratiche: Il caso di Settimo Torinese - Lisa Marcenaro ...BIBMOOC 06.02 - Buone pratiche: Il caso di Settimo Torinese - Lisa Marcenaro ...
BIBMOOC 06.02 - Buone pratiche: Il caso di Settimo Torinese - Lisa Marcenaro ...Alessandro Bogliolo
 
BIBMOOC 5.2 - Algoritmi in biblioteca
BIBMOOC 5.2 - Algoritmi in bibliotecaBIBMOOC 5.2 - Algoritmi in biblioteca
BIBMOOC 5.2 - Algoritmi in bibliotecaAlessandro Bogliolo
 
BIBMOOC 05.01 - Installazioni di coding e gamification
BIBMOOC 05.01 - Installazioni di coding e gamificationBIBMOOC 05.01 - Installazioni di coding e gamification
BIBMOOC 05.01 - Installazioni di coding e gamificationAlessandro Bogliolo
 
BIBMOOC 06.01 - Buone pratiche: il caso di CSBNO - Giovanni Mojoli
BIBMOOC 06.01 - Buone pratiche: il caso di CSBNO - Giovanni MojoliBIBMOOC 06.01 - Buone pratiche: il caso di CSBNO - Giovanni Mojoli
BIBMOOC 06.01 - Buone pratiche: il caso di CSBNO - Giovanni MojoliAlessandro Bogliolo
 
BIBMOOC 04.04 - Progettualità e opportunità di finanziamento - Simona Villa
BIBMOOC 04.04 - Progettualità e opportunità di finanziamento - Simona VillaBIBMOOC 04.04 - Progettualità e opportunità di finanziamento - Simona Villa
BIBMOOC 04.04 - Progettualità e opportunità di finanziamento - Simona VillaAlessandro Bogliolo
 
BIBMOOC 04.03 - Progettare spazi per la cultura - Marco Muscogiuri
BIBMOOC 04.03 - Progettare spazi per la cultura - Marco MuscogiuriBIBMOOC 04.03 - Progettare spazi per la cultura - Marco Muscogiuri
BIBMOOC 04.03 - Progettare spazi per la cultura - Marco MuscogiuriAlessandro Bogliolo
 
BIBMOOC 04.02 - Marketing culturale - Anna Busa
BIBMOOC 04.02 - Marketing culturale - Anna BusaBIBMOOC 04.02 - Marketing culturale - Anna Busa
BIBMOOC 04.02 - Marketing culturale - Anna BusaAlessandro Bogliolo
 
BIBMOOC 3.2 - Coding unplugged fai-da-te
BIBMOOC 3.2 - Coding unplugged fai-da-teBIBMOOC 3.2 - Coding unplugged fai-da-te
BIBMOOC 3.2 - Coding unplugged fai-da-teAlessandro Bogliolo
 
BIBMOOC 03.01 - Programmazione visuale a blocchi
BIBMOOC 03.01 - Programmazione visuale a blocchiBIBMOOC 03.01 - Programmazione visuale a blocchi
BIBMOOC 03.01 - Programmazione visuale a blocchiAlessandro Bogliolo
 
BIBMOOC 02.01 - Esecutore ideale e istruzioni elementari
BIBMOOC 02.01 - Esecutore ideale e istruzioni elementariBIBMOOC 02.01 - Esecutore ideale e istruzioni elementari
BIBMOOC 02.01 - Esecutore ideale e istruzioni elementariAlessandro Bogliolo
 
BIBMOOC 02.02 - Sequenze di istruzioni ripetizione e condizioni
BIBMOOC 02.02 - Sequenze di istruzioni ripetizione e condizioniBIBMOOC 02.02 - Sequenze di istruzioni ripetizione e condizioni
BIBMOOC 02.02 - Sequenze di istruzioni ripetizione e condizioniAlessandro Bogliolo
 
BIBMOOC 01.03 - Le biblioteche e la loro funzione sociale - Chiara Faggiolani
BIBMOOC 01.03 - Le biblioteche e la loro funzione sociale - Chiara FaggiolaniBIBMOOC 01.03 - Le biblioteche e la loro funzione sociale - Chiara Faggiolani
BIBMOOC 01.03 - Le biblioteche e la loro funzione sociale - Chiara FaggiolaniAlessandro Bogliolo
 
BIBMOOC 1.2 - Coding e pensiero computazionale
BIBMOOC 1.2 - Coding e pensiero computazionaleBIBMOOC 1.2 - Coding e pensiero computazionale
BIBMOOC 1.2 - Coding e pensiero computazionaleAlessandro Bogliolo
 
BIBMOOC 1.1 - Informazione e rappresentazioni digitali
BIBMOOC 1.1 - Informazione e rappresentazioni digitaliBIBMOOC 1.1 - Informazione e rappresentazioni digitali
BIBMOOC 1.1 - Informazione e rappresentazioni digitaliAlessandro Bogliolo
 
AIMOOC 7.3 - Per una IA etica - Claudia Chiavarino
AIMOOC 7.3 - Per una IA etica - Claudia ChiavarinoAIMOOC 7.3 - Per una IA etica - Claudia Chiavarino
AIMOOC 7.3 - Per una IA etica - Claudia ChiavarinoAlessandro Bogliolo
 
AIMOOC 7.2 - La strategia europea per l'I.A. - Lucilla Sioli
AIMOOC 7.2 - La strategia europea per l'I.A. - Lucilla SioliAIMOOC 7.2 - La strategia europea per l'I.A. - Lucilla Sioli
AIMOOC 7.2 - La strategia europea per l'I.A. - Lucilla SioliAlessandro Bogliolo
 
AIMOOC 5.5 - Programmazione o addestramento? - Alessandro Bogliolo
AIMOOC 5.5 - Programmazione o addestramento? - Alessandro BoglioloAIMOOC 5.5 - Programmazione o addestramento? - Alessandro Bogliolo
AIMOOC 5.5 - Programmazione o addestramento? - Alessandro BoglioloAlessandro Bogliolo
 

More from Alessandro Bogliolo (20)

BIBMOOC 05.03 - Codici in biblioteca
BIBMOOC 05.03 - Codici in bibliotecaBIBMOOC 05.03 - Codici in biblioteca
BIBMOOC 05.03 - Codici in biblioteca
 
BIBMOOC 06.02 - Buone pratiche: Il caso di Settimo Torinese - Lisa Marcenaro ...
BIBMOOC 06.02 - Buone pratiche: Il caso di Settimo Torinese - Lisa Marcenaro ...BIBMOOC 06.02 - Buone pratiche: Il caso di Settimo Torinese - Lisa Marcenaro ...
BIBMOOC 06.02 - Buone pratiche: Il caso di Settimo Torinese - Lisa Marcenaro ...
 
BIBMOOC 5.2 - Algoritmi in biblioteca
BIBMOOC 5.2 - Algoritmi in bibliotecaBIBMOOC 5.2 - Algoritmi in biblioteca
BIBMOOC 5.2 - Algoritmi in biblioteca
 
BIBMOOC 05.01 - Installazioni di coding e gamification
BIBMOOC 05.01 - Installazioni di coding e gamificationBIBMOOC 05.01 - Installazioni di coding e gamification
BIBMOOC 05.01 - Installazioni di coding e gamification
 
BIBMOOC 06.01 - Buone pratiche: il caso di CSBNO - Giovanni Mojoli
BIBMOOC 06.01 - Buone pratiche: il caso di CSBNO - Giovanni MojoliBIBMOOC 06.01 - Buone pratiche: il caso di CSBNO - Giovanni Mojoli
BIBMOOC 06.01 - Buone pratiche: il caso di CSBNO - Giovanni Mojoli
 
Nuovi LIDI - Lezione 1
Nuovi LIDI - Lezione 1Nuovi LIDI - Lezione 1
Nuovi LIDI - Lezione 1
 
BIBMOOC 04.04 - Progettualità e opportunità di finanziamento - Simona Villa
BIBMOOC 04.04 - Progettualità e opportunità di finanziamento - Simona VillaBIBMOOC 04.04 - Progettualità e opportunità di finanziamento - Simona Villa
BIBMOOC 04.04 - Progettualità e opportunità di finanziamento - Simona Villa
 
BIBMOOC 04.03 - Progettare spazi per la cultura - Marco Muscogiuri
BIBMOOC 04.03 - Progettare spazi per la cultura - Marco MuscogiuriBIBMOOC 04.03 - Progettare spazi per la cultura - Marco Muscogiuri
BIBMOOC 04.03 - Progettare spazi per la cultura - Marco Muscogiuri
 
BIBMOOC 04.02 - Marketing culturale - Anna Busa
BIBMOOC 04.02 - Marketing culturale - Anna BusaBIBMOOC 04.02 - Marketing culturale - Anna Busa
BIBMOOC 04.02 - Marketing culturale - Anna Busa
 
BIBMOOC 3.2 - Coding unplugged fai-da-te
BIBMOOC 3.2 - Coding unplugged fai-da-teBIBMOOC 3.2 - Coding unplugged fai-da-te
BIBMOOC 3.2 - Coding unplugged fai-da-te
 
BIBMOOC 03.01 - Programmazione visuale a blocchi
BIBMOOC 03.01 - Programmazione visuale a blocchiBIBMOOC 03.01 - Programmazione visuale a blocchi
BIBMOOC 03.01 - Programmazione visuale a blocchi
 
BIBMOOC 02.01 - Esecutore ideale e istruzioni elementari
BIBMOOC 02.01 - Esecutore ideale e istruzioni elementariBIBMOOC 02.01 - Esecutore ideale e istruzioni elementari
BIBMOOC 02.01 - Esecutore ideale e istruzioni elementari
 
BIBMOOC 02.02 - Sequenze di istruzioni ripetizione e condizioni
BIBMOOC 02.02 - Sequenze di istruzioni ripetizione e condizioniBIBMOOC 02.02 - Sequenze di istruzioni ripetizione e condizioni
BIBMOOC 02.02 - Sequenze di istruzioni ripetizione e condizioni
 
BIBMOOC 01.03 - Le biblioteche e la loro funzione sociale - Chiara Faggiolani
BIBMOOC 01.03 - Le biblioteche e la loro funzione sociale - Chiara FaggiolaniBIBMOOC 01.03 - Le biblioteche e la loro funzione sociale - Chiara Faggiolani
BIBMOOC 01.03 - Le biblioteche e la loro funzione sociale - Chiara Faggiolani
 
BIBMOOC 1.2 - Coding e pensiero computazionale
BIBMOOC 1.2 - Coding e pensiero computazionaleBIBMOOC 1.2 - Coding e pensiero computazionale
BIBMOOC 1.2 - Coding e pensiero computazionale
 
BIBMOOC 1.1 - Informazione e rappresentazioni digitali
BIBMOOC 1.1 - Informazione e rappresentazioni digitaliBIBMOOC 1.1 - Informazione e rappresentazioni digitali
BIBMOOC 1.1 - Informazione e rappresentazioni digitali
 
CodyTrip a BTO2021
CodyTrip a BTO2021CodyTrip a BTO2021
CodyTrip a BTO2021
 
AIMOOC 7.3 - Per una IA etica - Claudia Chiavarino
AIMOOC 7.3 - Per una IA etica - Claudia ChiavarinoAIMOOC 7.3 - Per una IA etica - Claudia Chiavarino
AIMOOC 7.3 - Per una IA etica - Claudia Chiavarino
 
AIMOOC 7.2 - La strategia europea per l'I.A. - Lucilla Sioli
AIMOOC 7.2 - La strategia europea per l'I.A. - Lucilla SioliAIMOOC 7.2 - La strategia europea per l'I.A. - Lucilla Sioli
AIMOOC 7.2 - La strategia europea per l'I.A. - Lucilla Sioli
 
AIMOOC 5.5 - Programmazione o addestramento? - Alessandro Bogliolo
AIMOOC 5.5 - Programmazione o addestramento? - Alessandro BoglioloAIMOOC 5.5 - Programmazione o addestramento? - Alessandro Bogliolo
AIMOOC 5.5 - Programmazione o addestramento? - Alessandro Bogliolo
 

Recently uploaded

DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersSabitha Banu
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxiammrhaywood
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...jaredbarbolino94
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxRaymartEstabillo3
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerunnathinaik
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,Virag Sontakke
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 

Recently uploaded (20)

DATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginnersDATA STRUCTURE AND ALGORITHM for beginners
DATA STRUCTURE AND ALGORITHM for beginners
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptxECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
ECONOMIC CONTEXT - PAPER 1 Q3: NEWSPAPERS.pptx
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...Historical philosophical, theoretical, and legal foundations of special and i...
Historical philosophical, theoretical, and legal foundations of special and i...
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptxEPANDING THE CONTENT OF AN OUTLINE using notes.pptx
EPANDING THE CONTENT OF AN OUTLINE using notes.pptx
 
internship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developerinternship ppt on smartinternz platform as salesforce developer
internship ppt on smartinternz platform as salesforce developer
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,भारत-रोम व्यापार.pptx, Indo-Roman Trade,
भारत-रोम व्यापार.pptx, Indo-Roman Trade,
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 

CArcMOOC 03.01 - Boolean algebra and Logic Synthesis

  • 1. Carc 03.01 alessandro.bogliolo@uniurb.it 03. Logic Networks 03.01. Boolean algebra and logic synthesis • Definitions • Boolean functions • Properties • Canonical forms • Synthesis and minimization Computer Architecture alessandro.bogliolo@uniurb.it
  • 2. Carc 03.01 alessandro.bogliolo@uniurb.it Definitions • Boolean set: • Boolean constants: 0, 1 • Boolean variable: • Boolean functions: z=f(x1,x2,...,xn) • Operations:  10,B xyyxz)y,x( :and   BBB yxz)y,x( :or   BBB x'xzx :not   BB  10,x x y xy 0 0 0 0 1 0 1 0 0 1 1 1 x y x+y 0 0 0 0 1 1 1 0 1 1 1 1 x x' 0 1 1 0 BB n :f
  • 3. Carc 03.01 alessandro.bogliolo@uniurb.it Boolean functions • Truth table: Table of 2n rows that associates a Boolean value to each configuration of n independent variables There are 22n different functions of n variables • Boolean expression: Expression of Boolean variables, Boolean constants and operators c)ab(cab'cbaf  BB n :f a b c f 0 0 0 1 0 0 1 0 0 1 0 1 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 1 1 1 1 1
  • 4. Carc 03.01 alessandro.bogliolo@uniurb.it Properties xxx  xxx  )zx()yx()zy(x  )zx()yx()zy(x  z)xy()yz(xxyz  z)yx()zy(xzyx  xyyx yxxy xx 1 xx 0 00x 11x 0 'xx 1 'xx xxyx  x)yx(x  'y'x)'xy(  'y'x)'yx(  Idempotent laws Distributive laws Associative laws Commutative laws Identity elements Null laws (forcing elements) Complement laws Absorption laws De Morgan’s laws (duality principle)
  • 5. Carc 03.01 alessandro.bogliolo@uniurb.it Idempotent laws xxx  xxx  Idempotent laws x y xy 0 0 0 0 1 0 1 0 0 1 1 1 x x*x 0 0*0 0 1 1*1 1 x y x+y 0 0 0 0 1 1 1 0 1 1 1 1 x x+x 0 0+0 0 1 1+1 1 By perfect induction:
  • 6. Carc 03.01 alessandro.bogliolo@uniurb.it xxyx  x)yx(x  Absorption laws Absorption laws xx)y(xyxx  11 xyxxyxxx)yx(x  By Boolean manipulation:
  • 7. Carc 03.01 alessandro.bogliolo@uniurb.it 'y'x)'xy(  'y'x)'yx(  De Morgan’s laws De Morgan’s laws By perfect induction: x=0, y=0  (00)’=0’=1 0’+0’=1+1=1 x=0, y=1  (01)’=0’=1 0’+1’=1+0=1 x=1, y=0  (10)’=0’=1 1’+0’=0+1=1 x=1, y=1  (11)’=1’=0 1’+1’=0+0=0 x=0, y=0  (0+0)’=0’=1 0’0’=11=1 x=0, y=1  (0+1)’=1’=0 0’1’=10=0 x=1, y=0  (1+0)’=1’=0 1’0’=01=0 x=1, y=1  (1+1)’=1’=0 1’1’=00=0
  • 8. Carc 03.01 alessandro.bogliolo@uniurb.it Canonical forms • There are infinite equivalent Boolean expressions. • The equivalence (i.e., identity) between two expressions can be demonstrated: 1. By perfect induction 2. By Boolean manipulation • Canonical forms associate unique expressions to each function • Checking the equivalence between two functions reduces to a comparison of their canonical representations
  • 9. Carc 03.01 alessandro.bogliolo@uniurb.it Canonical forms (Sum of Products) • Literal: independent variable taken either in true or complemented form (e.g., x, x’) • Minterm: Product of all independent variables taken either in true or complemented form • A minterm represents a Boolean function that takes value 1 corresponding to a unique configuration of input variables (e.g., f(a,b,c)=ab’c takes vale 1 for abc=101) • A Boolean function that takes value 1 for M different configurations (that has M 1’s in the truth table) can be expressed as the sum of the M minterms associated with the M 1’s • Any Boolean function can be expressed as a sum of products • A sum of minterms, with fixed variable order, is a canonical form
  • 10. Carc 03.01 alessandro.bogliolo@uniurb.it From truth tables to SoPs a b c f 0 0 0 1 0 0 1 0 0 1 0 1 0 1 1 0 1 0 0 1 1 0 1 0 1 1 0 1 1 1 1 1 f = a’b’c’+ a’bc’+ ab’c’+ abc’+ abc 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 1 = + + + +
  • 11. Carc 03.01 alessandro.bogliolo@uniurb.it Boolean minimization Given a Boolean function, find a Boolean expression that represents the function using a minimum number of literals • In general, this is not an easy task • There is a closed-form solution for 2-level SoP expressions • There is no closed-form solution for general multi-level expressions. • Heuristic solutions found by Boolean manipulation f = a’b’c’+ a’bc’+ ab’c’+ abc’+ abc 15 literals f = a’c’+ ab’c’+ ab 7 literals f = a’c’+ ab’c’+ abc’+ abc 11 literals
  • 12. Carc 03.01 alessandro.bogliolo@uniurb.it Boolean minimization (example) f = a’b’c’+ a’bc’+ ab’c’+ abc’+ abc 15 literals (SoP) = a’c’(b’+ b) + ab’c’+ ab (c’+ c) 11 literals (distributive) = a’c’+ ab’c’+ ab 7 literals (complement) = a’c’+ a (b’c’+ b) 6 literals (distributive) = a’c’+ a (b’c’+ b c’+ b) 8 literals (absorption) = a’c’+ a ((b’+b) c’+ b) 7 literals (distributive) = a’c’+ a (c’+ b) 5 literals (complement) = a’c’+ a c’+ ab 6 literals (distributive) = (a’+ a) c’+ ab 5 literals (distributive) = c’+ ab 3 literals (complement) Remark: the number of literals doesn’t decrease at every step. This makes the process non trivial