版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
1、 11.1: What is Boolean Algebra?,A minor generalization of propositional logic. In general, an algebra is any mathematical structure satisfying certain standard algebraic axioms. Boolean algebra just generalizes the rules of propositional logic to sets other than T,F. E.g., to the set 0,1 of base-2 d
2、igits, or the set VL, VH of low and high voltage levels in a circuit. It thus provides the operations and the rules for working with the set 0, 1 We will see that this algebraic perspective lends itself to the design of digital logic circuits.,Claude Shannons Masters thesis!,Complement, Addition, Pr
3、oduct,Correspond to logical NOT, OR, and AND. We will denote the two logic values as0:F and 1:T, instead of False and True. Using numbers encourages algebraic thinking. New, more algebraic-looking notation for the most common Boolean operators:,Precedence order,Examples,Let B = 0, 1 then The variabl
4、e is called a Boolean variable if it takes only values in B. Consequently x + x = x x2 = x . x = xx = x Boolean complement, Addition 0 + 0 = 0, 0 + 1 = 1, 1 + 0 = 1, 1 + 1 = 1 Product 0 . 0 = 0, 1 . 0 = 0, 0 . 1 = 0, 1 . 1 = 1,Boolean Functions,Let B = 0, 1, the set of Boolean values. For all nZ+, a
5、ny function f:BnB is called a Boolean function of degree n. There are 22 distinct Boolean functions of degree n. Because 2n rows in truth table, with 0 or 1 in each.,Boolean Functions,Question: How many different Boolean functions of degree 1 are there? Solution: There are four of them, F1, F2, F3,
6、and F4:,Boolean Functions,Question: How many different Boolean functions of degree 2 are there? Solution: There are sixteen of them, F1, F2, F3, , F16,Degree How manyDegree How many 0 2 4 65,536 1 4 5 4,294,967,296 2 16 6 18,446,744,073,709,551,616. 3 256,Let x1, , xn be n different Boolean variable
7、s. n may be as large as desired. A Boolean expression (recursive definition) is a string of one of the following forms: Base cases: 0, 1, x1, , or xn. Recursive cases: E1, (E1E2), or (E1+E2), where E1 and E2 are Boolean expressions: x1.x2 or x1x2 + x3 etc. A Boolean expression represents a Boolean f
8、unction. Furthermore, every Boolean function (of a given degree) can be represented by a Boolean expression.,Boolean Expressions,Boolean equivalents & operations on Boolean expressions,Two Boolean expressions e1 and e2 that represent the exact same function f are called equivalent. We write e1e2, or
9、 just e1=e2. Implicitly, the two expressions have the same value for all values of the free variables appearing in e1 and e2. The operators , +, and can be extended from operating on expressions to operating on the functions that they represent, in the obvious way. Let F and G be Boolean functions o
10、f degree n. The Boolean sum F+G and Boolean product FG are then defined by (F + G)(b1, b2, , bn) = F(b1, b2, , bn) + G(b1, b2, ,bn) (FG)(b1, b2, , bn) = F(b1, b2, , bn) G(b1, b2, , bn),Some popular Boolean identities,Double complement: x = x Idempotent laws: x + x = x, x x = x Identity laws: x + 0 =
11、 x, x 1 = x Domination laws: x + 1 = 1, x 0 = 0 Commutative laws: x + y = y + x, x y = y x,Associative laws: x + (y + z) = (x + y) + z x (y z) = (x y) z Distributive laws: x + yz = (x + y)(x + z) x (y + z) = xy + xz De Morgans laws: (x y) = x + y, (x + y) = x y Absorption laws: x + xy = x, x (x + y)
12、 = x,Duality,There are useful identities of Boolean expressions that can help us to transform an expression A into an equivalent expression B. We can derive additional identities with the help of the dual of a Boolean expression. The dual of a Boolean expression is obtained by interchanging Boolean
13、sums and Boolean products interchanging 0s and 1s.,Duality,Examples: The dual of x(y+z) is x+yz. The dual of x.1+(y+z) is (x+0)(yz). An identity between functions represented by Boolean expressions remains valid when the duals of both sides of the identity are taken. This is called Duality principle
14、 For example, absorption law x(x + y) = x. By taking the duals of both sides of this identity, we obtain the equation x + xy = x, which is also an identity (and also called an absorption law).,Boolean Functions/Expressions,Let f:B3B, where f(x, y, z) = xy+z This Boolean function is determined by eva
15、luating f for each of the eight possible assignment to the variables x, y, z.,11.2 Representing Boolean Functions,Definition: A literal is a Boolean variable or its complement. That is if f is a Boolean function on the n variables x1, x2, , xn, each term xi or its complement xi, for 1 i n is called
16、a literal. f(x, y, z) = xy+z : x, y and z are literals A minterm of the Boolean variables x1,x2, ,xn is a Boolean product y1y2yn, where yi=xi or yi=xi. xyz is a minterm Hence, a minterm is a product of n literals, with one literal for each variable and is referred to as a fundamental conjunction.,Si
17、mplifying Boolean Functions/Expressions,Let f:B4B, where f (x, y, z, w) =,DeMorgans Law,Law of Double Complement,Associative Law of +,Absorption Law (and Commutative Laws of + and . ),Commutative and Associative Laws of +,Idempotent Law of +,Sum-of-Products Expansions,A representation of f as a sum
18、of fundamental conjunctions is called a disjunctive normal form (dnf) of f. xyz + xyz + Dual to the dnf is the conjunctive normal form (cnf). (x+y+z).(x+y+z). Theorem: Any Boolean function can be represented as a sum of products of variables and their complements.,Functional Completeness,Since every
19、 Boolean function can be represented using the set , +, thus the operators are functionally complete. By De Morgan Law we can eliminate Boolean sum thus making , functionally complete. Either operator of NAND | and NOR can provide the necessary functionality for , and thus are functionally complete.
20、,11.3 Logic Gates,Application of Boolean Algebra Inverter, Or, And gate symbols. Multi-input gates. Logic circuits and examples. Adders, “half,” “full,” and n-bit.,Logic Gate Symbols,Inverter (logical NOT,Boolean complement). AND gate (Booleanproduct). OR gate (Boolean sum). XOR gate (exclusive-OR,s
21、um mod 2).,x,x,y,xy,x,y,x+y,y,x,xy,Multi-input AND, OR, XOR,Can extend these gates to arbitrarilymany inputs. Two commonlyseen drawing styles: Note that the second style keeps the gate icon relatively small.,x1,x1x2x3,x2,x3,x1 x5,x1x5,NAND, NOR, XNOR,Just like the earlier icons,but with a small circ
22、le onthe gates output. Denotes that output is complemented. The circles can also be placed on inputs. Means, input is complementedbefore being used.,x,y,x,y,y,x,Buffer,What about an invertersymbol without a circle? This is called a buffer. It is the identity function. It serves no logical purpose, b
23、ut It represents an explicit delay in the circuit. This is sometimes useful for timing purposes. All gates, when physically implemented, incur a non-zero delay between when their inputs are seen and when their outputs are ready.,x,x,Combinational Logic Circuits,These are circuits composed of Boolean
24、 gates whose outputs depend only on their most recent inputs, not on earlier inputs. Thus these circuits have no useful memory. Their state persists while the inputs are constant, but is irreversibly lost when the input signals change.,Examples,Examples: Majority voting circuit. XOR using OR / AND /
25、 NOT. Also, some binary adders: Half adder using OR/AND/NOT. Full adder from half-adders.,Combinational Circuit Examples,A circuit for Majority voting,Combinational Circuit Examples,A simplified circuit for Majority voting,Combinational Circuit Example,A circuit for a light controlled by two switche
26、s,11.4 Minimizing Circuits,Minimize the number of primitive Boolean logic gates needed to implement the circuit. Ultimately, this also roughly minimizes the number of transistors, the chip area, cost and energy expenditure. It is also often useful to minimize the number of combinational stages or logical depth of the circuit. This roughly minimizes the delay or latency through the circuit, the time between input and output. One solution is using Karnaugh Maps Karnaugh Maps or K-map is an alternative to the truth-table form for representing a function. The map consists
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- JJF(新) 153-2024 發(fā)電設(shè)施碳排放關(guān)鍵參數(shù)測量技術(shù)規(guī)范
- 2026年中職第二學(xué)年(統(tǒng)計(jì)與會(huì)計(jì)核算)數(shù)據(jù)統(tǒng)計(jì)綜合測試題
- 2025年大學(xué)教育學(xué)(教育心理學(xué)應(yīng)用)試題及答案
- 2025年大學(xué)石油煉制技術(shù)(產(chǎn)品檢測)試題及答案
- 2026年中職第一學(xué)年(化學(xué)工藝)化工原料配比試題及答案
- 2025年大學(xué)大一(社會(huì)學(xué)概論)社會(huì)互動(dòng)試題及解析
- 2025年大學(xué)大一(文學(xué))文學(xué)綜合實(shí)訓(xùn)綜合測試題及答案
- 2025年大學(xué)制藥類(制藥技術(shù)文檔)試題及答案
- 2025年高職第三學(xué)年(物聯(lián)網(wǎng)應(yīng)用)物聯(lián)網(wǎng)工程設(shè)計(jì)測試題及答案
- 2025年大學(xué)(工程造價(jià))工程招投標(biāo)與合同管理基礎(chǔ)階段測試題及評(píng)分標(biāo)準(zhǔn)
- 管道穿越高速橋梁施工方案
- 鋼筋工安全晨會(huì)(班前會(huì))
- 2024版《中醫(yī)基礎(chǔ)理論經(jīng)絡(luò)》課件完整版
- 游戲公司運(yùn)營風(fēng)險(xiǎn)控制預(yù)案
- 山東省臨沂市2024-2025學(xué)年高二數(shù)學(xué)上學(xué)期期中試題
- DZ∕T 0248-2014 巖石地球化學(xué)測量技術(shù)規(guī)程(正式版)
- JTJ-T-257-1996塑料排水板質(zhì)量檢驗(yàn)標(biāo)準(zhǔn)-PDF解密
- 殘疾人法律維權(quán)知識(shí)講座
- 瀝青維護(hù)工程投標(biāo)方案技術(shù)標(biāo)
- 水電站建筑物課程設(shè)計(jì)
- 兒童行為量表(CBCL)(可打印)
評(píng)論
0/150
提交評(píng)論