SlideShare a Scribd company logo
1 of 21
Download to read offline
CSE460: VLSI Design
Lecture 2
Review of digital logic design
Background
● Logic gates (AND, OR, NOT, XOR, etc.)
● Boolean algebra
● Truth tables
● Logic functions
● Logic function synthesis by
○ Sum of Products (SOP)
○ Product of Sums (POS)
○ K-maps
● Logic blocks (MUX, DEMUX)
● Sequential elements (Latch, Flip-flop)
Logic gates
Generalized n-input logic gates
Axioms of Boolean Algebra
● 1a. 0 · 0 = 0
● 1b. 1 + 1 = 1
● 2a. 1 · 1 = 1
● 2b. 0 + 0 = 0
● 3a. 0 · 1 = 1 · 0 = 0
● 3b. 1 + 0 = 0 + 1 = 1
● 4a. If x = 0, then x’ = 1
● 4b. If x = 1, then x’ = 0
Boolean Algebra - Single Variable Theorems
● 5a. x · 0 = 0
● 5b. x + 1 = 1
● 6a. x · 1 = x
● 6b. x + 0 = x
● 7a. x · x = x
● 7b. x + x = x
● 8a. x · x’ = 0
● 8b. x + x’ = 1
● 9. (x’)’ = x
● Boolean Algebra - Two Variable Properties
● 10a. x · y = y · x Commutative
● 10b. x + y = y + x
● 11a. x · ( y · z) = (x · y) · z Associative
● 11b. x + ( y + z) = (x + y) + z
● 12a. x · ( y + z) = x · y + x · z Distributive
● 12b. x + y · z = (x + y) · (x + z)
● 13a. x + x · y = x Absorption
● 13b. x · (x + y) = x
● 14a. x · y + x · y’ = x Combining
● 14b. (x + y) · (x + y’) = x
Boolean Algebra - Two & Three Variable Properties
● 15a. (x · y)’ = x’ + y’ DeMorgan’s theorem
● 15b. (x + y)’ = x’ · y’
● 16a. x + x’ · y = x + y
● 16b. x · (x + y) = x · y
● 17a. x · y + y · z + x’ · z = x · y + x’ · z Consensus
● 17b. (x + y) · (y + z) · (x’ + z) = (x + y) · (x’ + z)
Logic Function Synthesis - Three variable SOP & POS
● Function synthesis from truth table
Logic Function Synthesis - 2/3/4 variable k-map
● Function synthesis using k-maps
Logic Function Synthesis - 2/3/4 variable k-map
Function synthesis using k-maps
1. No zeros allowed.
2. No diagonals.
3. Only power of 2 number of cells in each group. (20
=1, 21
=2, 22
=4, 23
=8, etc.)
4. Groups should be as large as possible.
5. Every 1 must be in at least one group.
6. Overlapping allowed.
7. Wrap around allowed.
8. Fewest number of groups possible.
Visit: http://www.ee.surrey.ac.uk/Projects/Labview/minimisation/karrules.html
Multiplexer
● Multiple inputs, single output. Output is chosen by selector pin/s
D Latch
● Level sensitive element
● A positive level triggered D latch
○ copies D to output Q, if Clock=1, else preserves the previous output
● A negative level triggered D latch
○ copies D to output Q, if Clock=0, else preserves the previous output
D Latch
● Level sensitive element
● A positive level triggered D latch
○ copies D to output Q, if Clock=1, else preserves the previous output
● A negative level triggered D latch
○ copies D to output Q, if Clock=0, else preserves the previous output
D Flip-flop
● Edge sensitive element
● A positive edge triggered D flip-flop
○ Sets Q=D at all positive edges (rising edges) of the clock, retains the old
value of Q otherwise
● A negative edge triggered D flip-flop
○ Sets Q=D at all negative edges (falling edges) of the clock, retains the
old value of Q otherwise
Building D Flip-flops using D Latches
● By cascading a positive level triggered D latch and a negative level triggered
D latch we can build a negative edge triggered D flip-flop
Building D Flip-flops using D Latches
● By cascading a positive level triggered D latch and a negative level triggered
D latch we can build a negative edge triggered D flip-flop
Level triggered vs. Edge triggered
● In level triggered elements
○ output is affected by the clock levels (high/low)
● In edge triggered elements
○ output is affected by the clock edges (positive edge/negative edge) (rising edge/falling edge)
Slide references
1. https://instrumentationtools.com/logic-gates/
2. Stephen Brown & Zvonko Vranesic - Fundamentals of Digital Logic with
Verilog Design
Thank you!

More Related Content

Similar to CSE460 Lecture 2.pptx.pdf

Truth, deduction, computation lecture g
Truth, deduction, computation   lecture gTruth, deduction, computation   lecture g
Truth, deduction, computation lecture gVlad Patryshev
 
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
 
Lp and ip programming cp 9
Lp and ip programming cp 9Lp and ip programming cp 9
Lp and ip programming cp 9M S Prasad
 
Chapter 2 Boolean Algebra (part 2)
Chapter 2 Boolean Algebra (part 2)Chapter 2 Boolean Algebra (part 2)
Chapter 2 Boolean Algebra (part 2)Frankie Jones
 
Support Vector Machines is the the the the the the the the the
Support Vector Machines is the the the the the the the the theSupport Vector Machines is the the the the the the the the the
Support Vector Machines is the the the the the the the the thesanjaibalajeessn
 
digital logic circuits, digital component
 digital logic circuits, digital component digital logic circuits, digital component
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
 
zkStudyClub: PLONKUP & Reinforced Concrete [Luke Pearson, Joshua Fitzgerald, ...
zkStudyClub: PLONKUP & Reinforced Concrete [Luke Pearson, Joshua Fitzgerald, ...zkStudyClub: PLONKUP & Reinforced Concrete [Luke Pearson, Joshua Fitzgerald, ...
zkStudyClub: PLONKUP & Reinforced Concrete [Luke Pearson, Joshua Fitzgerald, ...Alex Pruden
 
Modular arithmetic
Modular arithmeticModular arithmetic
Modular arithmeticsangeetha s
 
April 10, 2015
April 10, 2015April 10, 2015
April 10, 2015khyps13
 
INTRODUCTION TO MATLAB presentation.pptx
INTRODUCTION TO MATLAB presentation.pptxINTRODUCTION TO MATLAB presentation.pptx
INTRODUCTION TO MATLAB presentation.pptxDevaraj Chilakala
 
Trigonometric ratios and identities 1
Trigonometric ratios and identities 1Trigonometric ratios and identities 1
Trigonometric ratios and identities 1Sudersana Viswanathan
 

Similar to CSE460 Lecture 2.pptx.pdf (20)

Truth, deduction, computation lecture g
Truth, deduction, computation   lecture gTruth, deduction, computation   lecture g
Truth, deduction, computation lecture g
 
Quadratic equation.pptx
Quadratic equation.pptxQuadratic equation.pptx
Quadratic equation.pptx
 
3306565.ppt
3306565.ppt3306565.ppt
3306565.ppt
 
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
 
Crypto lecture PDF
Crypto lecture PDFCrypto lecture PDF
Crypto lecture PDF
 
Lp and ip programming cp 9
Lp and ip programming cp 9Lp and ip programming cp 9
Lp and ip programming cp 9
 
Chapter 2 Boolean Algebra (part 2)
Chapter 2 Boolean Algebra (part 2)Chapter 2 Boolean Algebra (part 2)
Chapter 2 Boolean Algebra (part 2)
 
Support Vector Machines is the the the the the the the the the
Support Vector Machines is the the the the the the the the theSupport Vector Machines is the the the the the the the the the
Support Vector Machines is the the the the the the the the the
 
digital logic circuits, digital component
 digital logic circuits, digital component digital logic circuits, digital component
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
 
Singlevaropt
SinglevaroptSinglevaropt
Singlevaropt
 
ikh323-05
ikh323-05ikh323-05
ikh323-05
 
zkStudyClub: PLONKUP & Reinforced Concrete [Luke Pearson, Joshua Fitzgerald, ...
zkStudyClub: PLONKUP & Reinforced Concrete [Luke Pearson, Joshua Fitzgerald, ...zkStudyClub: PLONKUP & Reinforced Concrete [Luke Pearson, Joshua Fitzgerald, ...
zkStudyClub: PLONKUP & Reinforced Concrete [Luke Pearson, Joshua Fitzgerald, ...
 
Modular arithmetic
Modular arithmeticModular arithmetic
Modular arithmetic
 
April 10, 2015
April 10, 2015April 10, 2015
April 10, 2015
 
Functions
FunctionsFunctions
Functions
 
INTRODUCTION TO MATLAB presentation.pptx
INTRODUCTION TO MATLAB presentation.pptxINTRODUCTION TO MATLAB presentation.pptx
INTRODUCTION TO MATLAB presentation.pptx
 
Trigonometric ratios and identities 1
Trigonometric ratios and identities 1Trigonometric ratios and identities 1
Trigonometric ratios and identities 1
 
new 2.ppt
new 2.pptnew 2.ppt
new 2.ppt
 
2d transformations
2d transformations2d transformations
2d transformations
 

Recently uploaded

Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoordharasingh5698
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptDineshKumar4165
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Bookingdharasingh5698
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...tanu pandey
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf203318pmpc
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfRagavanV2
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086anil_gaur
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . pptDineshKumar4165
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayEpec Engineered Technologies
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaOmar Fathy
 

Recently uploaded (20)

Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf22-prompt engineering noted slide shown.pdf
22-prompt engineering noted slide shown.pdf
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Thermal Engineering Unit - I & II . ppt
Thermal Engineering  Unit - I & II . pptThermal Engineering  Unit - I & II . ppt
Thermal Engineering Unit - I & II . ppt
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Standard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power PlayStandard vs Custom Battery Packs - Decoding the Power Play
Standard vs Custom Battery Packs - Decoding the Power Play
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 

CSE460 Lecture 2.pptx.pdf

  • 2. Review of digital logic design
  • 3. Background ● Logic gates (AND, OR, NOT, XOR, etc.) ● Boolean algebra ● Truth tables ● Logic functions ● Logic function synthesis by ○ Sum of Products (SOP) ○ Product of Sums (POS) ○ K-maps ● Logic blocks (MUX, DEMUX) ● Sequential elements (Latch, Flip-flop)
  • 6. Axioms of Boolean Algebra ● 1a. 0 · 0 = 0 ● 1b. 1 + 1 = 1 ● 2a. 1 · 1 = 1 ● 2b. 0 + 0 = 0 ● 3a. 0 · 1 = 1 · 0 = 0 ● 3b. 1 + 0 = 0 + 1 = 1 ● 4a. If x = 0, then x’ = 1 ● 4b. If x = 1, then x’ = 0
  • 7. Boolean Algebra - Single Variable Theorems ● 5a. x · 0 = 0 ● 5b. x + 1 = 1 ● 6a. x · 1 = x ● 6b. x + 0 = x ● 7a. x · x = x ● 7b. x + x = x ● 8a. x · x’ = 0 ● 8b. x + x’ = 1 ● 9. (x’)’ = x
  • 8. ● Boolean Algebra - Two Variable Properties ● 10a. x · y = y · x Commutative ● 10b. x + y = y + x ● 11a. x · ( y · z) = (x · y) · z Associative ● 11b. x + ( y + z) = (x + y) + z ● 12a. x · ( y + z) = x · y + x · z Distributive ● 12b. x + y · z = (x + y) · (x + z) ● 13a. x + x · y = x Absorption ● 13b. x · (x + y) = x ● 14a. x · y + x · y’ = x Combining ● 14b. (x + y) · (x + y’) = x
  • 9. Boolean Algebra - Two & Three Variable Properties ● 15a. (x · y)’ = x’ + y’ DeMorgan’s theorem ● 15b. (x + y)’ = x’ · y’ ● 16a. x + x’ · y = x + y ● 16b. x · (x + y) = x · y ● 17a. x · y + y · z + x’ · z = x · y + x’ · z Consensus ● 17b. (x + y) · (y + z) · (x’ + z) = (x + y) · (x’ + z)
  • 10. Logic Function Synthesis - Three variable SOP & POS ● Function synthesis from truth table
  • 11. Logic Function Synthesis - 2/3/4 variable k-map ● Function synthesis using k-maps
  • 12. Logic Function Synthesis - 2/3/4 variable k-map Function synthesis using k-maps 1. No zeros allowed. 2. No diagonals. 3. Only power of 2 number of cells in each group. (20 =1, 21 =2, 22 =4, 23 =8, etc.) 4. Groups should be as large as possible. 5. Every 1 must be in at least one group. 6. Overlapping allowed. 7. Wrap around allowed. 8. Fewest number of groups possible. Visit: http://www.ee.surrey.ac.uk/Projects/Labview/minimisation/karrules.html
  • 13. Multiplexer ● Multiple inputs, single output. Output is chosen by selector pin/s
  • 14. D Latch ● Level sensitive element ● A positive level triggered D latch ○ copies D to output Q, if Clock=1, else preserves the previous output ● A negative level triggered D latch ○ copies D to output Q, if Clock=0, else preserves the previous output
  • 15. D Latch ● Level sensitive element ● A positive level triggered D latch ○ copies D to output Q, if Clock=1, else preserves the previous output ● A negative level triggered D latch ○ copies D to output Q, if Clock=0, else preserves the previous output
  • 16. D Flip-flop ● Edge sensitive element ● A positive edge triggered D flip-flop ○ Sets Q=D at all positive edges (rising edges) of the clock, retains the old value of Q otherwise ● A negative edge triggered D flip-flop ○ Sets Q=D at all negative edges (falling edges) of the clock, retains the old value of Q otherwise
  • 17. Building D Flip-flops using D Latches ● By cascading a positive level triggered D latch and a negative level triggered D latch we can build a negative edge triggered D flip-flop
  • 18. Building D Flip-flops using D Latches ● By cascading a positive level triggered D latch and a negative level triggered D latch we can build a negative edge triggered D flip-flop
  • 19. Level triggered vs. Edge triggered ● In level triggered elements ○ output is affected by the clock levels (high/low) ● In edge triggered elements ○ output is affected by the clock edges (positive edge/negative edge) (rising edge/falling edge)
  • 20. Slide references 1. https://instrumentationtools.com/logic-gates/ 2. Stephen Brown & Zvonko Vranesic - Fundamentals of Digital Logic with Verilog Design