数字设计基础双语课件(第2章).ppt
- 【下载声明】
1. 本站全部试题类文档,若标题没写含答案,则无答案;标题注明含答案的文档,主观题也可能无答案。请谨慎下单,一旦售出,不予退换。
2. 本站全部PPT文档均不含视频和音频,PPT中出现的音频或视频标识(或文字)仅表示流程,实际无音频或视频文件。请谨慎下单,一旦售出,不予退换。
3. 本页资料《数字设计基础双语课件(第2章).ppt》由用户(三亚风情)主动上传,其收益全归该用户。163文库仅提供信息存储空间,仅对该用户上传内容的表现方式做保护处理,对上传内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知163文库(点击联系客服),我们立即给予删除!
4. 请根据预览情况,自愿下载本文。本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
5. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007及以上版本和PDF阅读器,压缩文件请下载最新的WinRAR软件解压。
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 数字 设计 基础 双语 课件
- 资源描述:
-
1、 2.Logic gates 2.1 Logic signals 2.2 Basic logic functions2.3 Boolean relationships2.4 Universal gates2.5 Other gates2.6 Gate design1 2.1 Logic signalsTwo-valued signals are used in digital systems to represent ON/OFF control actions and to represent the digits of binary numbers.We often use the hig
2、her voltage to represent a logic 1 and lower voltage to represent a logic 0.A voltage level will represent each of the two logic values.1.Two-valued logic signals2 2.1 Logic signals2.Algebra manipulation of two-valued variablesJust as complex arithmetic expressions are created by using a few basic a
3、rithmetic operations,logic functions can be specified by using simple logic operations.Logic functions can be thought of as algebraic expressions where variables can take on only one of the two values.3 2.2 Basic logic functionsThere are three fundamental operations in Boolean algebra from which all
4、 logic functions can be developed,namely:NOT;AND;ORThey are implemented by circuits called gates.A gate accepts logic signals and produces a logic output according to a basic logic function of the inputs.4 2.2 Basic logic functions1.NOT gateDefinition:The NOT operation is applied to a single variabl
5、e,say A,and produces the opposite logic value to A.The NOT operation on a variable A is written as A.AASymbol Truth table 5 2.2 Basic logic functionsTruth tableA truth table lists the output for each possible combinations of the input variables.InverterThe NOT gate is sometimes called an inverter.Co
6、mplement Some terms Inverting a variable can form its complement.6 2.2 Basic logic functions2.AND gateDefinition:The AND operation,operating on two variables A and B,producing a 1 if A is a 1 and B is a 1,otherwise the result is a 0.The AND operation between two variables A and B is written as AB,or
7、 simply AB.7 2.2 Basic logic functionsABABSymbolTwo-input AND gateThe AND operation can be applied to any number of variables.The result is a 1 only if all the variables are 1.Truth table8 2.2 Basic logic functions3.OR gateDefinition:The OR operation applied to two variables A and B,produces a 1 if
8、A is a 1 or B is a 1,or both A and B are 1,otherwise the result is a 0.The OR operation between two variables A and B is written as A+B.9 2.2 Basic logic functionsABA+BSymbolTwo-input OR gateThe OR operation can be applied to any number of variables.The result is a 1 if any of the variable is a 1.On
9、ly when all variables are 0,the result is a 0.Truth table10 2.3 Boolean relationships1.Basic Boolean identitiesA 1=A;A 0=0;A A=A;A+1=1;A+0=A;A+A=A;A A=0;A+A=1;A=A;These identities can be easily proved by listing all possible values of the variables in a truth table and checking that each combination
10、 of variables results in the same value in each side of the equation.The basic identities can be extended to more variables.11 2.3 Boolean relationships2.Applications of the identities(1)To determine what to do with unused inputs of gatesSuppose we have a three-input gate available,but only require
11、the two-input function,so A and B will be applied to two of the inputs,the third input C is unused.12 2.3 Boolean relationships)Unused inputs of an AND gateTo maintain the logic AND function between the two variables A and B,we have two choices:C is connected to a permanent logic 1(+5V);C is connect
12、ed to A or B;13 2.3 Boolean relationships)Unused inputs of an OR gateTo maintain the logic OR function between the two variables A and B,we have two choices:C is connected to a permanent logic 0(0V);C is connected to A or B;14 2.3 Boolean relationships(2)To determine the effect of faults on gatesFau
13、lts can often be modeled by assuming that a permanent logic 0 or a permanent logic 1 appears on a single line(the so-called stuck-at fault model).Stuck-at fault modelThe effect of a fault on the output can be easily found from the basic relationships.15 2.3 Boolean relationships3.Basic algebraic rul
14、es(1)The commutative lawA+B=B+A;A B=B A(2)The associative lawA+B+C=(A+B)+C=A+(B+C)A B C=(A B)C=A(B C)The order that we compute an expression composed of variables connected by the same operator is not important in Boolean algebra.The rule is called the associative law.16 2.3 Boolean relationships(3)
15、The distributive lawA(B+C)=AB+AC;A+(BC)=(A+B)(A+C)Order can be enforced with parentheses in Boolean algebra.Parentheses are also used in ordinary algebra to show that multiplication applies to a group.It is also true in Boolean to both AND and OR operators and is called the distributive law.The laws
16、 and relationships provide tools for designing a logic expression and creating alternative.17 2.3 Boolean relationships4.DualitySuppose we have a function f,if we change:)all 0s to 1s)all 1s to 0s)all +s to s )all s to +sThe new function we get is the dual of the function f,which is written as fd.(1
展开阅读全文