版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 小学生手工模型创造-激发创造力培养实践技能
- 2024年江苏省连云港市中考地理试题含答案
- 2014-2016年中国可穿戴设备市场深度调查报告
- 2024至2030年中国密封保温材料数据监测研究报告
- 维护心理健康走好军旅人生路副本图文
- 2024至2030年中国塑胶喷嘴数据监测研究报告
- 2024至2030年中国吊钩式抛丸机行业投资前景及策略咨询研究报告
- 2024至2030年中国单桥探头行业投资前景及策略咨询研究报告
- 2024至2030年中国中式橡塑大风镜行业投资前景及策略咨询研究报告
- 2024年中国间三氟甲基苄醇市场调查研究报告
- 尿素乳膏与其他药物联合治疗皮肤病的研究
- MOOC 基础工程设计原理-同济大学 中国大学慕课答案
- 市场营销策划(本)-形考任务二(第五~七章)-国开(CQ)-参考资料
- 公司财务预算控制研究
- 老年学概论(第3版) 课件 第3、4章 老年学的理论和研究方法、国外老龄问题和老年学
- 幼儿图书登记表
- 中考英语选择题120题(含答案)
- 我心目中的英雄陈祥榕
- (完整word版)膝骨性关节炎CRF表
- 济南部分高校建立长清校区项目论证与评估实践报告 工程管理专业
- 2023年12月9日河北省沧州市市直遴选笔试真题及解析
评论
0/150
提交评论