ImageVerifierCode 换一换
格式:PPT , 页数:13 ,大小:170KB ,
文档编号:5714343      下载积分:16 文币
快捷下载
登录下载
邮箱/手机:
温馨提示:
系统将以此处填写的邮箱或者手机号生成账号和密码,方便再次下载。 如填写123,账号和密码都是123。
支付方式: 支付宝    微信支付   
验证码:   换一换

优惠套餐
 

温馨提示:若手机下载失败,请复制以下地址【https://www.163wenku.com/d-5714343.html】到电脑浏览器->登陆(账号密码均为手机号或邮箱;不要扫码登陆)->重新下载(不再收费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录  
下载须知

1: 试题类文档的标题没说有答案,则无答案;主观题也可能无答案。PPT的音视频可能无法播放。 请谨慎下单,一旦售出,概不退换。
2: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
3: 本文为用户(saw518)主动上传,所有收益归该用户。163文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知163文库(点击联系客服),我们立即给予删除!。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

1,本文(数字逻辑2-2n.ppt)为本站会员(saw518)主动上传,163文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
2,用户下载本文档,所消耗的文币(积分)将全额增加到上传者的账号。
3, 若此文所含内容侵犯了您的版权或隐私,请立即通知163文库(发送邮件至3464097650@qq.com或直接QQ联系客服),我们立即给予删除!

数字逻辑2-2n.ppt

1、Chapter 2 Number systems and codes u Decimal and Binary u Unsigned and Signed u Code for Numbers and CharactersRepresentations of signed numbers In binary systems,an n-bit string can only represent 2n different numbers!Unsigned:02n-1signed:-(2n-1-1)2n-1-1To represent 2n different numbers and their n

2、egative part,we have to use n+1 bits!MSB is not a value bit,but a sign bit:Negative:1 Positive:0 Representations of signed numbersSigned-magnitude code(S-M code):reversal!Ones complement code:shift!Twos complement code:shift!Representations of signed numbersConverting rules for signed numbersFrom un

3、signed to signed:Its MSB is changed to sign bit.The number must be a positive!Beware the overflow!Key point:A positive signed number with any code must be the same!Its MSB is“0”!Change the sign of a signed number signed-magnitude:change the sign-bit;+21:0001 0101 -21:1001 0101 ones complement:change

4、 every bit;+21:0001 0101 -21:1110 1010twos complement:change every bit,and add 1 at LSB;+21:0001 0101 -21:1110 1011From one code to another Step 1:Check the MSB(sign-bit);For positive number(MSB=0):no changes!Step 2:For negative number(MSB=1):first change its sign by the former code way;then change

5、its sign by the next code way!Examples:01101001MSA10101001soneB11001010stwoC?stwoA?MSB?soneCFrom one code to another Addition for signed numbersUse addition rules for unsigned numbers,only Twos code can get right result!1 two numbers must be the same width,and keep the width in addition!2 subtract a

6、 number means add the negative number;Examples:1110+1010=1000 0110 0011=0110+1101=0011 Addition for signed numbersOverflow:the result exceeds the number ranges;condition:two numbers has the same sign;checking:the sign is wrong!solving:increase the data width!Examples:0101+0101=1010 1101+1010=0111Add

7、ition for signed numbersS-M:add 0 bit after the signed-bit(MSB);Others:add signed-bit before MSB;Examples:S-M:0101=0000 0101 1100=1000 0100 OTHERS:0101=0000 0101 1100=1111 1100How to increase the number widthMultiplication for signed numbersOnly S-Ms code can be easy done!The sign-bit of the result is the XOR of the sign-bits of the inputs!The value-bits of the result is decided by the multiplication rules for the unsigned numbers!

侵权处理QQ:3464097650--上传资料QQ:3464097650

【声明】本站为“文档C2C交易模式”,即用户上传的文档直接卖给(下载)用户,本站只是网络空间服务平台,本站所有原创文档下载所得归上传人所有,如您发现上传作品侵犯了您的版权,请立刻联系我们并提供证据,我们将在3个工作日内予以改正。


163文库-Www.163Wenku.Com |网站地图|