SuperMap 系列产品介绍

Similar documents
Microsoft Word - 最新正文.doc

Microsoft PowerPoint - STU_EC_Ch02.ppt

<4D F736F F F696E74202D20B5DAD2BBD5C228B4F2D3A1B0E6292E BBCE6C8DDC4A3CABD5D>

第4章 信源及压缩编码

目 录 1 正 文 乊 前 目 癿 本 文 内 容 声 明 字 符 编 码 相 兰 癿 背 景 知 识 拉 丁 字 母 什 么 是 字 符 编 码 字 符 编 码 标 准... 8

《计算机应用基础》学习材料(讲义)

第 3 章 数 据 在 计 算 机 中 的 表 示 43 在 进 位 计 数 制 中 有 数 码 数 位 ( 位 置 ) 基 数 和 位 权 等 用 语 数 码 是 在 一 个 计 数 制 中 用 来 表 示 数 值 的 符 号 ; 数 位 是 指 数 码 在 一 个 数 中 所 处 的 位 置 ;

PT-18R PT-18R () PT-18R (CCC)

Microsoft Word - ZPLII中文编程说明.doc

LF 打印并走一行

<4D F736F F F696E74202D20BCC6A6ECA874B2CEBEC9BDD7C1BFB871B2C4A440B3B9>

Microsoft PowerPoint - STU_EC_Ch08.ppt

USSD DTMF 14,400 bits/s group3 class 1&2 GPRS for 900/1800/1900 AT 44pin - - 3V SIM SIM RS-232 : - AT (GSM and 07.05) ,20

Program Guide(中文).PDF

Microsoft PowerPoint - STU_EC_Ch04.ppt

Users Manual NX-500

Microsoft PowerPoint - C15_LECTURE_NOTE_05.ppt

Users Manual NX-750

2/80 2

Microsoft PowerPoint - C15_LECTURE_NOTE_05.ppt

spss.doc

2013年云南省公务员考试真题解析(完整版)春闻网

南華大學數位論文

Microsoft PowerPoint - lecture4--Signal Processing on DSPs.ppt

The Development of Color Constancy and Calibration System

Microsoft Word - 正文.doc

PowerPoint Presentation

TCP/IP TCP/IP OSI IP TCP IP IP TCP/IP TCP/IP

CH01.indd

Introduction to Hamilton-Jacobi Equations and Periodic Homogenization

致 谢 本 人 自 2008 年 6 月 从 上 海 外 国 语 大 学 毕 业 之 后, 于 2010 年 3 月 再 次 进 入 上 外, 非 常 有 幸 成 为 汉 语 国 际 教 育 专 业 的 研 究 生 回 顾 三 年 以 来 的 学 习 和 生 活, 顿 时 感 觉 这 段 时 间 也

強化信用卡電子交易安全之研究

Untitled-3

Process Data flow Data store External entity 6-10 Context diagram Level 0 diagram Level 1 diagram Level 2 diagram

XML SOAP DOM B2B B/S B2B B2B XML SOAP

穨control.PDF

第一章 数制与码制

Microsoft Word - zw

ebook121-1

Microsoft Word 記錄附件

BC04 Module_antenna__ doc

Microsoft PowerPoint - CH 04 Techniques of Circuit Analysis

untitled

C C

Research for RS encoding and decoding technology in the Digital Television Terrestrial Broadcasting System 2006 厦门大学博硕士论文摘要库

Improved Preimage Attacks on AES-like Hash Functions: Applications to Whirlpool and Grøstl

untitled

ebook105-1

硕 士 学 位 论 文 论 文 题 目 : 北 岛 诗 歌 创 作 的 双 重 困 境 专 业 名 称 : 中 国 现 当 代 文 学 研 究 方 向 : 中 国 新 诗 研 究 论 文 作 者 : 奚 荣 荣 指 导 老 师 : 姜 玉 琴 2014 年 12 月

XXX专业本科人才培养方案

Computer Architecture

國家圖書館典藏電子全文

MCS FCC

(Load Project) (Save Project) (OffLine Mode) (Help) Intel Hex Motor

(Microsoft Word - \261M\256\327\272\353\302\262\263\370\247iEnd.doc)

4. 每 组 学 生 将 写 有 习 语 和 含 义 的 两 组 卡 片 分 别 洗 牌, 将 顺 序 打 乱, 然 后 将 两 组 卡 片 反 面 朝 上 置 于 课 桌 上 5. 学 生 依 次 从 两 组 卡 片 中 各 抽 取 一 张, 展 示 给 小 组 成 员, 并 大 声 朗 读 卡

(baking powder) 1 ( ) ( ) 1 10g g (two level design, D-optimal) 32 1/2 fraction Two Level Fractional Factorial Design D-Optimal D

monalitDE_002.indd

Stochastic Processes (XI) Hanjun Zhang School of Mathematics and Computational Science, Xiangtan University 508 YiFu Lou talk 06/

招 标 文 件 中 提 供 的 投 标 函 样 本 中 相 关 内 容 相 抵 触 或 有 遗 漏 的 3 随 商 务 标 正 本 提 供 的 电 子 清 单 计 价 文 件 ( 采 用 ETB 格 式, 介 质 为 光 盘, 背 面 需 写 上 不 可 擦 去 的 单 位 名 称 ) 无 法 读

C/C++语言 - C/C++数据

声 明 本 人 郑 重 声 明 : 此 处 所 提 交 的 硕 士 学 位 论 文 基 于 等 级 工 鉴 定 的 远 程 考 试 系 统 客 户 端 开 发 与 实 现, 是 本 人 在 中 国 科 学 技 术 大 学 攻 读 硕 士 学 位 期 间, 在 导 师 指 导 下 进 行 的 研 究

當 地 情 形 還 不 熟 悉 4 得 勝 的 歡 似 虎 : 形 容 因 勝 利 而 得 意 忘 形 5 不 吃 無 工 之 食 : 比 喻 人 不 能 無 緣 無 故 接 受 優 待 或 贈 與 4. 請 根 據 文 意, 在 中 填 入 正 確 的 成 語 代 號 ( 甲 ) 優 游 自 在

<4D F736F F D20C9CFBAA3BFC6BCBCB4F3D1A7D0C5CFA2D1A7D4BA C4EAC7EFBCBEC8EBD1A7B2A9CABFD7CAB8F1BFBCCAD4CAB5CAA9CFB8D4F22D C8B7B6A8B8E5>

\\Lhh\07-02\黑白\内页黑白1-16.p

Chapter 3

untitled

<4D F736F F D20B2F8A74AA4AF5FA578C657A175BCC6A6ECB6D7AC79A176BB50A46AB3B0A175A454BAF4A658A440A176AC46B5A6A641B1B4>

!"# $% & $%%% ( ")*+,-./00-(11.-. $%! $ " # $ % & ( - ) +%23!"# $%%% %,.%,!" $%.! 1.% & /$ 3(,. ( /0% $%%% ( $%%% ( 3 5 /6%%%! ")*+,-./00-(11

!! "!! "! "!! "! "! "!!#$% & ()*+, -./!000$ 1-2$##0! 3

東吳大學

强 度 调 制 器 相 位 延 迟 器 表 面 声 光 偏 转 器 磁 光 隔 离 器 偏 振 控 制 器 等 器 件 的 原 理 及 应 用 讲 述 介 质 波 导 波 导 色 散 光 纤 模 式 等 概 念 结 合 基 础 介 绍 学 科 前 沿 知 识 精 密 仪 器 设 计

WWW PHP Comments Literals Identifiers Keywords Variables Constants Data Types Operators & Expressions 2


USPTO Academic research Corporate needs Global/International Inventors Libraries News Media/Publication Patent Attorney or Agent USPTO e (ebusiness Ce

Microsoft PowerPoint - ryz_030708_pwo.ppt

序 文 藝 社 (Society of Chinese Literature) 在 去 年 暑 假 開 始 籌 措 成 立, 二 零 一 三 年 九 月 正 式 展 開 所 有 活 動 文 藝 社 成 立 的 目 的 旨 在 讓 學 生 學 習 欣 賞 歷 代 名 篇 名 作, 其 中 以 古 典

Microsoft PowerPoint ARIS_Platform_en.ppt

IT 36% Computer Science Teachers Association, CSTA K K-12 CSTA K-12 K-12 K-6 K6-9 K STEM STEM STEM


Public Projects A Thesis Submitted to Department of Construction Engineering National Kaohsiung First University of Science and Technology In Partial

安 全 指 南 : 必 须 遵 守 所 有 的 警 告 事 项, 以 确 保 自 己 和 他 人 的 安 全 以 及 保 护 产 品 和 连 接 装 置 这 些 警 告 事 项 都 按 警 示 程 度 明 示 出 等 级 有 资 格 的 人 员 : YO-YO 只 能 进 行 与 手 册 有 关 的

Microsoft PowerPoint - ch2-stallings.ppt

科技研究的觀念與方法

ASCII RS-232C RS232C 9 SD 3 RD 2 GND 5 RD 3 SD 2 SG 7 RS232,, : RS232C 9 RS232/RS485 MR SD 3 RD 2

2005.book

20

Microsoft Word doc

Microsoft PowerPoint - Eisenstein_ABET_Presentation_Beijing_Oct_2007-Chinese.ppt [兼容模式]

逢 甲 大 學

[9] R Ã : (1) x 0 R A(x 0 ) = 1; (2) α [0 1] Ã α = {x A(x) α} = [A α A α ]. A(x) Ã. R R. Ã 1 m x m α x m α > 0; α A(x) = 1 x m m x m +

Microsoft Word - Final Exam Review Packet.docx

山东建筑大学学分制管理规定(试行)

<4D F736F F D20A46AA4AFACECA7DEA46ABEC7B1D0AE76ACE3A873AD70B565A6A8AA47B3F8A769A4AFACE >

WLAN 2

3.1 num = 3 ch = 'C' 2

象 (OECD, 2001) 我 國 行 政 院 研 考 會 界 定 數 位 落 差 為 因 性 別 種 族 階 級 或 居 住 地 理 區 域 等 社 經 背 景 的 不 同, 造 成 接 觸 資 訊 與 通 訊 科 技 的 機 會 不 同, 使 得 台 灣 資 訊 社 會 產 生 了 不 平 等

A Study on JI Xiaolan s ( ) Life, Couplets and Theories of Couplets 紀 曉 嵐 ( ) 生 平 資 料 斠 正 及 對 聯 聯 論 研 究 LI Ha 李 夏 THE UNIVER

规格说明

C/C++ - 字符输入输出和字符确认

Transcription:

wuzhihong@scu.edu.cn 3 / 1 / 16 / John M. Yarbrough: Digital Logic Applications and Design + + 30% 70%

1 CHAPTER 1 Digital Concepts and Number Systems

1.1 Digital and Analog: Basic Concepts P1

1.1

1.1 V c (0)=0V, Initial voltage at t 0 is 0V V c =V a (1-e -t/rc ) P1

1.1 Discrete voltage values for time interval (a) Analog representation (b) Discrete representation P2

1.1

1.1 Analog volt meter Digital volt meter P2/3

1.2 Some History of Digital Systems 1642 Blaise Pascal 1820 Charles Babbage P4

1.2 1847 George Boole The Mathematical Analysis of Logic 0 1

1.2 1947 Walter Brattain John Bardeen William Shockley 1956 50 1958 Jack Kilby(Texas Instruments) Robert Noyce(Fairchild Semiconductor) ) (IC )

1.2 1965 1968 Noyce 1971 2,300 1989 i486 1,200,000 2000 4200 45 8.2

1.3 Impact of Digital Technology on Society 4

1.3 2010 3G MID PMP / LED / LED / (HEV)

1.4 Defining the Problem, an Introduction to Algorithms Algorithm P5

1.5 Digital Systems Overview P6

1.5 SSI (small-scale integration) contains 0-9 gates MSI (medium-scale integration) contains 10-99gates LSI (large-scale integration) contains 100 or more gates VLSI (very large-scale integration ) contains more than 1000 gates P6

1.6 Introduction to Number Systems 10 2 8 16 P7

1.7 Positional Number Systems P7

Decimal Numbers 10 10 0 1 2 3 4 5 6 7 8 9 536.159 10 =(5 10 2 )+(3 10 1 )+(6 10 0 )+(1 10-1 )+(5 10-2 )+(9 10-3 ) Radix or Base Weight P7

r ( r) r N = A n-1 r n-1 + A n-2 r n-2 + + A 1 r +A 0 + A -1 r -1 + A -2 r -2 + + A -m r -m Most Significant Bit (MSB) Least Significant Bit (LSB)

Let r = radix or base of a number system; Let c = character from the character set of the radix; Let N = number to be represented in radix; Let n = the number of digits in the integer portion of N Let m = the number of digits in the fractional portion of N ( ) m m n n n n r r c r c r c r c c r r c r c N + + + + + + + + =...... 2 2 1 1 0 0 1 1 2 2 1 1 ( ) = = 1 n m i i i r r c N P7 P7

1 e.g. let r = 6 (312.4) 6 = 3 6 2 + 1 6 1 + 1 6 0 + 4 6-1 = (116.66) 10 Conversion from r-radix (any system with radix r) to decimal follows similar process as above

2 Most common number systems for computers: Binary (r = 2) Octal (r = 8) Hexadecimal (r = 16)

Binary Numbers Computers represent all data as strings of bits, each bit being either 0 or 1 base 2, with 2 digits: 0 and 1 e.g. (101101.10) 2 = 1 2 5 + 0 2 4 + 1 2 3 + 1 2 2 + 0 2 1 + 1 2 0 + 1 2-1 + 0 2-2 (in decimal) = 32 + 0 + 8 + 4 + 0 + 1 + ½ + 0 = (45.5) 10 P8

Powers of two Memorize at least through 2 16

Octal Numbers base 8 with 8 digits: 0..7 Eg. 231.25 8 =2 8 2 + 3 8 1 +1 8 0 +2 8-1 +5 8-2 (in decimal) =153.328125 10 P8

Hexadecimal Numbers r = 16 Digits (convention): 0..9, A, B, C, D, E, F A=10, B=11,, F = 15 P8

e.g1. (3FB) 16 = 3 16 2 + 15 16 1 + 11 16 0 (in decimal) = 768 + 240 + 11 = (1019) 10 e.g2. A59C.3A 16 = (A 16 3 )+(5 16 2 )+(9 16 1 )+(C 16 0 )+(3 16-1 )+(A 16-2 )

1.8 Number System Conversion Decimal binary octal and hexadecimal number P9

0 0000 0 0 1 0001 1 1 2 0010 2 2 3 0011 3 3 4 0100 4 4 5 0101 5 5 6 0110 6 6 7 0111 7 7 8 1000 10 8 9 1001 11 9 10 1010 12 A 11 1011 13 B 12 1100 14 C 13 1101 15 D 14 1110 16 E 15 1111 17 F P10

Binary Octal (011 010 101 000. 111 101 011 100) 2 ( 3 2 5 0. 7 5 3 4 ) 8 E.g. Convert the binary number 010011110111.110101010 2 to octal Solution 010,011,110,111.110,101,010 2 =2367.652 8

Binary Hex ( 0110 1010 1000. 1111 0101 1100 ) 2 ( 6 A 8. F 5 C ) 16 E.g. Convert the binary number 010011110111.110101010 2 to hexadecimal Solution 0100,1111,0111.1101,0101,0000 2 =4F7.D50 16

hexadecimal and octal to Binary Ex 1.9/1.11 Convert the numbers F37A.B2 16, 735.5 8 to binary Solution F37A.B2=1111,0011,0111,1010.1011,0010 2 735.5 8 =111,011,101.101 2 Practice problem: convert 367.236 convert 367.236 8 to binary then hexadecimal Solution 367.236 8 =011,110,111.010,011,110 2 011,110,111.010,011,110 2 =0,1111,0111.0100,1111,0 2 =F7.4F 16 P10/11

Binary to decimal Conversion 11001.011 2 =(1 2 4 )+(1 2 3 )+(0 2 2 )+(0 2 1 )+(1 2 0 ) +(0 2-1 )+(1 2-2 )+(1 2-3 ) =16+8+0+0+1+0+0.25+0.125 =25.375 10 P11

Decimal to Binary Conversion 2 0 E.g. Convert 119 10 to binary LSB Solution 119 10 =1110111 2 MSB P12

. 39 39 D = 100111 B 2 39 1 b 0 2 19 1 b 1 2 9 1 b 2 2 4 0 b 3 2 2 0 b 4 2 1 1 b 5 0

(215) D =(? ) B 1=b 0 1=b 1 1=b 2 2 215 2 107 2 53 2 26 2 13 2 6 2 3 2 1 2 0 0=b 3 1=b 4 0=b 5 1=b 6 1=b 7 ( 215 ) D =( 11010111 ) B (215) D = 1 2 = 7 + 1 2 (11010111) 6 B + 1 2 4 + 1 2 2 + 1 2 1 + 1 2 0

Decimal to Binary Conversion 2 Ex 1.13 Convert.75 10 to binary Solution Multiply.75 by 2 (.75)2=1.5 1(MSB) Multiply.75 by 2 (.5)2=1.0 1 Multiply.75 by 2 (0)2=0.0 0(LSB) (.75) 1 =.110 = 1 2 + 1 2 D 2 P12/13

1.14 Convert 95.0625 10 to binary Solution First, convert the integer part of the decimal number by successive division 1.Devide 95 by 2 5.Devide 5 by 2 (LSB) 2.Devide 47 by 2 6.Devide 2 by 2 3.Devide 23 by 2 7.Devide 1 by 2 4.Devide 11 by 2 (MSB) 95 10 =1 2 6 +0 2 5 +1 2 4 +1 2 3 +1 2 2 + 1 2 1 +1 2 0 =1011111 P13

1.14 Convert 95.0625 10 to binary Solution Second, convert the fraction 95 10 =1011111 1. (.0625) 2 = 0.125 0 (MSB) 2. (.125) 2 = 0.25 0 3. (.25) 2 = 0.5 0 4. (.5) 2 = 1.0 1 (LSB).0625 10 =.0001 2 95.0625 10 =1011111.0001 2 P13

Decimal to Any Radix Conversion The conversion of decimal numbers to any other radix applies the successive division and successive multiplication algorithms Ex 1.15 Convert 23.625 10 to octal (base 8) Solution Convert the integer portion by successive division 1.Divide 23 by 8 (LSB) Convert te fraction portion by successive multiplication (.625) 8 =5.00 5 (MSB) 2.Divide 2 by 8 23 10 =27 8 (MSB).625 10 =.5 8 23.625 10 =27.5 8 P14

Any Radix to Decimal Conversion e.g. Convert 324.2 5 to decimal Solution 3 5 2 +2 5 1 +4 5 0 +2 5-1 =3(25)+2(5)+4(1)+2(1/5) =75+10+4+2/5 =89.4 10 P15

Any Radix Conversion Practice problem: 1. Convert 345.2 6 to decimal 2. Convert 34.8 10 to base 5 Solution: 1. 137.333 10 2. 114.4 5

4. 8. 11. 14. 18. 20. P33/34

1.9 Binary Codes 1. 0 1 n 2 n N 2 n N P16

1.9.1 Natural Binary Coded Decimal 4 0~9 e.g. Convert 9275.6 10 into BCD Solution: 9=1001 2=0010 7=0111 5=0101 6=0110 9275.6 10 =1001,0010,0111,0101.0110 in BCD P16

1.9.2 Binary Codes (Weighted) 8421 2421 5421 3 3 0 0000 0000 0000 0011 0010 1 0001 0001 0001 0100 0110 2 0010 0010 0010 0101 0111 3 0011 0011 0011 0110 0101 4 0100 0100 0100 0111 0100 5 0101 1011 1000 1000 1100 6 0110 1100 1001 1001 1101 7 0111 1101 1010 1010 1111 8 1000 1110 1011 1011 1110 9 1001 1111 1100 1100 1010 P17

(10010000) 8421BCD =(90) 3 : 10 16 0 9, 1 8,..6 4 3 10 3 3

BCD BCD 0111 = 0 8+ 1 4+ 1 2+ 1 1= ( 7) D [ ] 8421BCD [ 1101 ] 2421BCD = 1 2 + 1 4 + 0 2 + 1 1 = () 7 D

BCD BCD ( 463.5) ( 863.2) 10 10 = = 0100 4 1110 8 0110 6 1100 6 0011. 3 0011. 3 0101 5 0010 2 8421BCD 2421BCD

11111111 377 255 FF H = B = O = D 001001010101 = 8421BCD 1001110111110001 B = 9DF1 H

1.9.3 BCD BCD Self-Complementing Codes P17

1.9.4 Unit Distance Code P18

1.9.4 2 P18

1.9.5 Alphanumeric Codes ASCII (American standard code for information interchange) 128 EBCDIC (extended BCD interchange code) P19

b 3 b 2 b 1 b 0 b 6 b 5 b 4 000 001 010 011 100 101 110 111 0000 NUL DLE SP 0 @ P p 0001 SOH DC1! 1 A Q a q 0010 STX DC2 2 B R b r 0011 ETX DC3 # 3 C S c s 0100 EOT DC4 $ 4 D T d t 0101 ENQ NAK % 5 E U e u 0110 ACK SYN & 6 F V f v 0111 BEL ETB 7 G W g w 1000 BS CAN ( 8 H X h x 1001 HT EM ) 9 I Y i y 1010 LF SUB * : J Z j z 1011 VT ESC + K [ k { 1100 FF FS L \ l 1101 CR GS = M ] m } 1110 SO RS N n 1111 SI US / O _ o DEL

1.9.6 Signed Number Binary +11 (0000 1011) B 11 (1000 1011) B P20/21

1.9.7 Signed Magnitude Codes 0 1 +127 01111111-127 11111111 +7 00000111-7 10000111 +126 01111110-126 11111110 +6 00000110-6 10000110 +125 01111101-125 11111101 +5 00000101-5 10000101 +124 01111100-124 11111100 +4 00000100-4 10000100 +123 01111011-123 11111011 +3 00000011-3 10000011 + 0-1 +2 00000010-2 10000010 +9 00001001-9 10001001 +1 00000001-1 10000001 +8 00001000-8 10001000 +0 00000000-0 10000000 P20/21

1.9.8 Complement Codes Sign magnitude 2s complement 1s complement 0 1 1 +1 +1 2 D 1 2 +127 01111111 01111111 01111111 +126 01111110 01111110 01111110 + 0 0 0 +1 00000001 00000001 00000001 +0 00000000 00000000 00000000-0 10000000 11111111 00000000-1 10000001 11111110 11111111-2 10000010 11111101 11111110-1 1 1-126 11111110 10000001 10000010-127 11111111 10000000 10000001-128 10000000

12 12 (mod) 9 5 2 1 4 9-4=5 2 8 9+8=12+5=5 9-4=(9 + 8)mod12 12 8 4 4 8 12 4 8 8 8 8 256

1.9.8 1 1 10s 9s 8s 8s 2s 0 10 9 0 10 7 0 10 1 1 9 8 1 7 6 1 1 0 2 8 7 3 7 6 4 6 5 5 5 4 6 4 3 7 3 2 8 2 1 9 1 0 2 3 4 5 6 7 6 5 4 3 2 1 5 4 3 2 1 0 1s P21

[0,M) M M a,b [0, M) f(a-b)==f(a+c) c= M-b b f 0<=x< M, f(x)=x; x>= M,f(x)=x % M; x<0,f(x)=f(m +x). % ( ) f ab==a+c -b c n M=2 n c=2 n -b 2 n -b 2 n 1 n 0 b 2 n -1 n 1 b 1 2 n -b 1

1.9.8 2 Ex: Find 2 s complement of 01100101 01100101 101 10 +101 10 10011010 Complement the bits + 1 Add 1 10011011 155 10 101 10 [N] 10 =10 n -(N) 10 [N] 2 = 2 n -(N) 2 [N] 2 (N) 2 [N] 2 = 2 6 - (101001) 2 = (1000000) 2 - (101001) 2 = (010111) 2 (N) 2 + [N] 2 = +0

Radix Complement Number Systems Quzi Find the 2s complement of the binary number 110011 Find the 1s complement code for -12 10 Find the 2s complement code for -18 10 Answer: 001101 10011 101110

1.10 Arithmetic Arithmetic 1.10.1 1 0 + 0 = 0 0 + 1 = 1 1 + 1 = 10 1010 0101 1 0 1 0 1 0 0 1 + 0 1 0 1 + 0 0 1 1 1 1 1 1 1 1 0 0 P22

1.10.1 1 2 0 0 = 0 1 1 = 0 1 0 = 1 0 1 = 11 1010 0101 1 0 1 0 0 1 0 1 0 1 0 1

1.10.1 2 3 1010 0101 1 0 1 0 0 1 0 1 1 0 1 0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 0 0 1 0 P24

1.10.1 3 4 1010 111 1. 0 1 1 1 1 1 1 0 1 0 1 1 1 0 1 1 1 1 1 0 1 0 1 0 1 1 1 0 1 1 0 P24

1 1 = 1 + ( 1) = 0 (00000001 2 00000001 2 ) 8bits 00000001 2 + 10000001 2 = 10000010 2 2 00000001 2 + 11111110 2 = 11111111 2 + 0 0 0? 1 2 00000001 2 + 11111101 2 = 11111110 2 1-128~0~127 00000001 2 00000001 2 = 00000001 2 + 11111111 2 = 00000000 2 0!

1.10.2 X>Y X<Y X=Y (+X)+(+Y) (+X)+(- Y) (- X)+(+Y) (- X)+(- Y) (+X) (+Y) (+X) (- Y) (- X) (+Y) (- X) (- Y) +(X+Y) - (X+Y) +(X+Y) - (X+Y) +(X-Y) - (X-Y) +(X-Y) - (X-Y) - (X-Y) +(X-Y) - (X-Y) +(X-Y) +(X-Y) +(X-Y) +(X-Y) +(X-Y) P25

1.10.2 1 9 + 3 = 12 0^1001 9 + 0^0011 3 0^1100 12 9 3 = 6 0^1001 9 + 1^1101-3 10^0110 6-3 -100000 3 9 = -6 0^0011 3 + 1^0111-9 1^1010-6 (-9) + (-3) = -12 1^0111-9 + 1^1101-3 11^0100-12 9 (-3) = 12 0^1001 9 + 0^0011 3 0^1100 12

1.10.2 2 1-32/31 0^1101.1+0^1011.0 (+X )+(+Y ) 0^1101.1 + 0^1011.0 1^1000.1 0^01101.1 + 0^01011.0 0^11000.1 The error occurred due to insufficient bit positions to hold the answer P25

1.10.2 3 1-35 Add X and Y. Let X= 8 10 and Y= 10 10, both in 2s complement. 1^1000 + 1^0110 10^1110 1^11000 + 1^10110 11^01110 8 10 +( +( 10 10 )= 18 10, 0^1110 is not 18 10 and 1^01110 is the Complement of 18 18 10 P26

1.10.2 4 1-38 Subtract Y from X. Let X=+8 10 and Y=-6 10, X-Y=X+(-Y) +8 10 =0^1000 The 2s complement of -6 10 (1^1010) is 0^0110 0^1000 = +8 10 + 0^0110 =(complement of -6 ) 0^1110 =+14 10 P27

1.10.2 5 1-39 Subtract Y from X. Let X= 10 10 = 1^0110 and Y= 5 10 = 1^1011 The radix complement of 1^1011(-5 10 ) is 0^0101 1^0110 = -10 10 + 0^0101 =(complement of -5 10 ) 1^1011 =-5 10 P27

1.10.2 6 perform the following operations by finding the radix complement of the subtrahend( ) and adding the result to the minuend( ): 23.4 135.7 10 8 321.2 4 19.8 67.7 10 8 33.3 4

22. 24. 30. 32. 34. 38. P35/36