數(shù)字電子技術(shù)(Floyd第十版)Chapter5分析解析課件_第1頁
數(shù)字電子技術(shù)(Floyd第十版)Chapter5分析解析課件_第2頁
數(shù)字電子技術(shù)(Floyd第十版)Chapter5分析解析課件_第3頁
數(shù)字電子技術(shù)(Floyd第十版)Chapter5分析解析課件_第4頁
數(shù)字電子技術(shù)(Floyd第十版)Chapter5分析解析課件_第5頁
已閱讀5頁,還剩39頁未讀, 繼續(xù)免費閱讀

下載本文檔

版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)

文檔簡介

1、Digital FundamentalsTenth EditionFloydChapter 4 2008 Pearson EducationIn Boolean algebra, a variable is a symbol used to represent an action, a condition, or data. A single variable can only have a value of 1 or 0. SummaryBoolean AdditionThe complement represents the inverse of a variable and is ind

2、icated with an overbar. Thus, the complement of A is A.A literal is a variable or its complement.Addition is equivalent to the OR operation. The sum term is 1 if one or more if the literals are 1. The sum term is zero only if each literal is 0.ExampleDetermine the values of A, B, and C that make the

3、 sum term of the expression A + B + C = 0?SolutionEach literal must = 0; therefore A = 1, B = 0 and C = 1.In Boolean algebra, multiplication is equivalent to the AND operation. The product of literals forms a product term. The product term will be 1 only if all of the literals are 1.SummaryBoolean M

4、ultiplicationExampleWhat are the values of the A, B and C if the product term of A.B.C = 1?SolutionEach literal must = 1; therefore A = 1, B = 0 and C = 0.SummaryCommutative LawsIn terms of the result, the order in which variables are ORed makes no difference.The commutative laws are applied to addi

5、tion and multiplication. For addition, the commutative law statesA + B = B + AIn terms of the result, the order in which variables are ANDed makes no difference.For multiplication, the commutative law statesAB = BASummaryAssociative LawsWhen ORing more than two variables, the result is the same rega

6、rdless of the grouping of the variables.The associative laws are also applied to addition and multiplication. For addition, the associative law statesA + (B +C) = (A + B) + CFor multiplication, the associative law statesWhen ANDing more than two variables, the result is the same regardless of the gr

7、ouping of the variables.A(BC) = (AB)CSummaryDistributive LawThe distributive law is the factoring law. A common variable can be factored from an expression just as in ordinary algebra. That isAB + AC = A(B+ C)The distributive law can be illustrated with equivalent circuits:AB + ACA(B+ C)SummaryRules

8、 of Boolean Algebra1. A + 0 = A2. A + 1 = 13. A . 0 = 04. A . 1 = 15. A + A = A7. A . A = A6. A + A = 18. A . A = 09. A = A=10. A + AB = A12. (A + B)(A + C) = A + BC11. A + AB = A + BSummaryRules of Boolean AlgebraRules of Boolean algebra can be illustrated with Venn diagrams. The variable A is show

9、n as an area.The rule A + AB = A can be illustrated easily with a diagram. Add an overlapping area to represent the variable B.The overlap region between A and B represents AB. The diagram visually shows that A + AB = A. Other rules can be illustrated with the diagrams as well.=ASummaryRules of Bool

10、ean AlgebraA + AB = A + BThis time, A is represented by the blue area and B again by the red circle. The intersection represents AB.Notice that A + AB = A + BExampleSolutionIllustrate the rule with a Venn diagram.SummaryRules of Boolean AlgebraRule 12, which states that (A + B)(A + C) = A + BC, can

11、be proven by applying earlier rules as follows:(A + B)(A + C) = AA + AC + AB + BC = A + AC + AB + BC = A(1 + C + B) + BC = A . 1 + BC = A + BCThis rule is a little more complicated, but it can also be shown with a Venn diagram, as given on the following slideSummaryThe area representing A + B is sho

12、wn in yellow.The area representing A + C is shown in red.Three areas represent the variables A, B, and C.The overlap of red and yellow is shown in orange.ORing with A gives the same area as before.=(A + B)(A + C) A + BCThe overlapping area between B and C represents BC.SummaryDeMorgans TheoremThe co

13、mplement of a product of variables is equal to the sum of the complemented variables.DeMorgans 1st TheoremAB = A + BApplying DeMorgans first theorem to gates:SummaryDeMorgans TheoremDeMorgans 2nd TheoremThe complement of a sum of variables is equal to the product of the complemented variables.A + B

14、= A . BApplying DeMorgans second theorem to gates:SummaryApply DeMorgans theorem to remove the overbar covering both terms from the expression X = C + D.DeMorgans TheoremExampleSolutionTo apply DeMorgans theorem to the expression, you can break the overbar covering both terms and change the sign bet

15、ween the terms. This results inX = C . D. Deleting the double bar gives X = C . D. =SummaryBoolean Analysis of Logic CircuitsCombinational logic circuits can be analyzed by writing the expression for each gate and combining the expressions according to the rules for Boolean algebra.Apply Boolean alg

16、ebra to derive the expression for X.ExampleSolutionWrite the expression for each gate:Applying DeMorgans theorem and the distribution law:C (A + B ) = C (A + B )+ D(A + B )X = C (A B) + D = A B C + DXSummaryBoolean Analysis of Logic CircuitsUse Multisim to generate the truth table for the circuit in

17、 the previous example.ExampleSolutionSet up the circuit using the Logic Converter as shown. (Note that the logic converter has no “real-world” counterpart.)Double-click the Logic Converter top open it. Then click on the conversion bar on the right side to see the truth table for the circuit (see nex

18、t slide).SummaryBoolean Analysis of Logic CircuitsThe simplified logic expression can be viewed by clickingSimplified expressionSummarySOP and POS formsBoolean expressions can be written in the sum-of-products form (SOP) or in the product-of-sums form (POS). These forms can simplify the implementati

19、on of combinational logic, particularly with PLDs. In both forms, an overbar cannot extend over more than one variable.An expression is in SOP form when two or more product terms are summed as in the following examples:An expression is in POS form when two or more sum terms are multiplied as in the

20、following examples:A B C + A B A B C + C DC D + E(A + B)(A + C) (A + B + C)(B + D) (A + B)CSummarySOP Standard formIn SOP standard form, every variable in the domain must appear in each term. This form is useful for constructing truth tables or for implementing logic in PLDs.You can expand a nonstan

21、dard term to standard form by multiplying the term by a term consisting of the sum of the missing variable and its complement.ExampleSolutionConvert X = A B + A B C to standard form. The first term does not include the variable C. Therefore, multiply it by the (C + C), which = 1:X = A B (C + C) + A

22、B C = A B C + A B C + A B CSummarySOP Standard formThe Logic Converter in Multisim can convert a circuit into standard SOP form. ExampleSolutionClick the truth table to logic button on the Logic Converter.Use Multisim to view the logic for the circuit in standard SOP form.See next slide SummarySOP S

23、tandard formSOP Standard formSummaryPOS Standard formIn POS standard form, every variable in the domain must appear in each sum term of the expression. You can expand a nonstandard POS expression to standard form by adding the product of the missing variable and its complement and applying rule 12,

24、which states that (A + B)(A + C) = A + BC.ExampleSolutionConvert X = (A + B)(A + B + C) to standard form. The first sum term does not include the variable C. Therefore, add C C and expand the result by rule 12.X = (A + B + C C)(A + B + C) = (A +B + C )(A + B + C)(A + B + C)The Karnaugh map (K-map) i

25、s a tool for simplifying combinational logic with 3 or 4 variables. For 3 variables, 8 cells are required (23). The map shown is for three variables labeled A, B, and C. Each cell represents one possible product term.Each cell differs from an adjacent cell by only one variable. SummaryKarnaugh mapsC

26、ells are usually labeled using 0s and 1s to represent the variable and its complement. Gray codeSummaryKarnaugh mapsOnes are read as the true variable and zeros are read as the complemented variable. The numbers are entered in gray code, to force adjacent cells to be different by only one variable.S

27、ummaryABABABABC CAlternatively, cells can be labeled with the variable letters. This makes it simple to read, but it takes more time preparing the map.Karnaugh mapsRead the terms for the yellow cells.ExampleSolutionThe cells are ABC and ABC. 1. Group the 1s into two overlapping groups as indicated.R

28、ead each group by eliminating any variable that changes across a boundary. The vertical group is read AC. SummaryK-maps can simplify combinational logic by grouping cells and eliminating variables that change. Karnaugh mapsGroup the 1s on the map and read the minimum logic.ExampleB changes across th

29、is boundaryC changes across this boundarySolutionThe horizontal group is read AB. X = AC +ABA 4-variable map has an adjacent cell on each of its four boundaries as shown. Each cell is different only by one variable from an adjacent cell.Grouping follows the rules given in the text.The following slid

30、e shows an example of reading a four variable map using binary numbers for the variablesSummaryKarnaugh mapsXSummaryKarnaugh mapsGroup the 1s on the map and read the minimum logic.Example1. Group the 1s into two separate groups as indicated.Read each group by eliminating any variable that changes ac

31、ross a boundary. The upper (yellow) group is read as AD. SolutionThe lower (green) group is read as AD. X = AD +ADB changesC changesB changesC changes across outer boundarySummaryHardware Description Languages (HDLs)A Hardware Description Language (HDL) is a tool for implementing a logic design in a

32、 PLD. One important language is called VHDL. In VHDL, there are three approaches to describing logic:2. Dataflow3. Behavioral1. StructuralDescription is like a schematic (components and block diagrams).Description is equations, such as Boolean operations, and registers.Description is specifications

33、over time (state machines, etc.).SummaryHardware Description Languages (HDLs)The data flow method for VHDL uses Boolean-type statements. There are two-parts to a basic data flow program: the entity and the architecture. The entity portion describes the I/O. The architecture portion describes the log

34、ic. The following example is a VHDL program showing the two parts. The program is used to detect an invalid BCD code.entity BCDInv isport (B,C,D: in bit; X: out bit);end entity BCDInvarchitecture Invalid of BCDInvbegin X = (B or C) and D;end architecture Invalid;SummaryHardware Description Languages

35、 (HDLs)Another standard HDL is Verilog. In Verilog, the I/O and the logic is described in one unit called a module. Verilog uses specific symbols to stand for the Boolean logical operators.The following is the same program as in the previous slide, written for Verilog:module BCDInv (X, B, C, D);inpu

36、t B, C, D;output X;assign X = (B | C)&D;endmoduleSelected Key Terms VariableComplementSum termProduct termA symbol used to represent a logical quantity that can have a value of 1 or 0, usually designated by an italic letter.The inverse or opposite of a number. In Boolean algebra, the inverse functio

37、n, expressed with a bar over the variable. The Boolean sum of two or more literals equivalent to an OR operation. The Boolean product of two or more literals equivalent to an AND operation.Selected Key Terms Sum-of-products (SOP)Product of sums (POS) Karnaugh mapVHDLA form of Boolean expression that

38、 is basically the ORing of ANDed terms.A form of Boolean expression that is basically the ANDing of ORed terms. An arrangement of cells representing combinations of literals in a Boolean expression and used for systematic simplification of the expression.A standard hardware description language. IEEE Std. 1076-1993.1. The associative law for addition is normally written as a. A + B = B + Ab. (A + B) + C = A + (B + C)c. AB = BAd. A + AB = A 2008 Pearson EducationQuiz2. The Boolean equation AB + AC = A(B+ C) illustratesa. the distribution lawb. the commutative lawc. th

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
  • 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
  • 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
  • 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
  • 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論