- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
Question Draw a modular counting representation of 4-bit s-m’s numbers and one’s-complement numbers respectively, as it shows in Figure 2-3 or 2-4. Compare these four counting representations and indicate when overflow occurs in each representation. Explain why s-m’s representation and one’s complement representation can’t always get a right result when applying to addition. What’s the relationship of overflow and carry ? Overflow : 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 = 0111 Addition for signed numbers Overflow 0000 0001 0010 0011 0100 0101 1000 1001 1010 1101 1111 1110 1011 1100 0111 0110 +0 +1 +2 +3 +4 +5 ?8 ?7 ?6 ?3 ?1 ?2 ?5 ?4 +7 +6 4-bit two’s complement system addition Overflow Only S-M’s 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! Multiplication for signed numbers Chapter 2 Number systems and codes Codes in digital system Word: a digital string to represent an object; Use n bits, we can make 2n different words; Codes in binary system To make K different words, you must use bits. Binary code for Decimal :10 Decimal digits , 4-bit ASCII code:128 Keyboard signs , 7-bit GB2312 code:6763 Chinese character , 16-bit Codes in binary system (BCD)8421 code Natural code , just like 4-bit binary numbers; Each digit is weighted; It has 10 valid code words and 6 invalid code words. Binary codes for decimal digits 2421 codes Each digit is weighted; Self-complementing; Use MSB to express higher/lower part; It has 10 valid codes and 6 invalid codes. Binary codes for decimal digits Excess-3 code Its digit is not weighted; Self-complementing ; 8421 code + “0011” . Binary codes for decimal digits
您可能关注的文档
- 数字电路:ch2 逻辑代数与硬件描述语言基础-a.ppt
- 数字电路:ch2 逻辑代数与硬件描述语言基础-c-new.ppt
- 数字电路:ch3 逻辑门电路-a-new.ppt
- 数字电路:ch3 逻辑门电路-b-new.ppt
- 数字电路:ch04 组合逻辑电路-a.ppt
- 数字电路:ch6 时序逻辑电路的分析与设计a.ppt
- 数字电路:ch6 时序逻辑电路的分析与设计d.ppt
- 数字逻辑设计及应用:AD and DA.ppt
- 数字逻辑设计及应用:Chap1 Introduction.ppt
- 数字逻辑设计及应用:Chap3 Digital circuit.ppt
- 数字逻辑设计及应用:Chap4 Combinational logic principles.ppt
- 数字逻辑设计及应用:Chap5 Simulation and VerilogHDL.ppt
- 数字逻辑设计及应用:Chap5 Simulation and VerilogHDL (2).ppt
- 数字逻辑设计及应用:chap6 Combinational Logic Design Practices.ppt
- 《电动力学》1 数学准备.pdf
- 《电动力学》2 电磁现象的普遍规律.pdf
- 《电动力学》3 静电场.pdf
- 大学物理:31-热学1.pdf
- 大学物理:32-热学2.pdf
原创力文档


文档评论(0)