没有合适的资源?快使用搜索试试~ 我知道了~
数字逻辑设计及应用教学课件:2-3编码-a.ppt
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 122 浏览量
2022-06-16
18:15:10
上传
评论
收藏 585KB PPT 举报
温馨提示
试读
41页
数字逻辑设计及应用教学课件:2-3编码-a.ppt
资源推荐
资源详情
资源评论
Exercise before class
Exercise before class
:
:
1
1
、
、
If 18
If 18
10
10
=00010010
=00010010
2
2
,
,
Write the 8-bit two’s-complement repres
Write the 8-bit two’s-complement repres
entation for the decimal number:
entation for the decimal number:
-18
-18
10
10
=(
=(
)
)
2
2
2
2
、
、
Write the signed-magnitude, two’s-co
Write the signed-magnitude, two’s-co
mplement, and ones’-complement represe
mplement, and ones’-complement represe
ntations for each of these decimal numbers
ntations for each of these decimal numbers
,
,
use the bits as least: +115, -49.
use the bits as least: +115, -49.
3
3
、
、
If 10011101
If 10011101
2
2
is the 2’s complement re
is the 2’s complement re
presentation,what is its decimal representa
presentation,what is its decimal representa
tion?
tion?
4
4
、
、
Write the 8-bit signed-magnitude, two’
Write the 8-bit signed-magnitude, two’
s-complement, and ones’-complement repr
s-complement, and ones’-complement repr
esentations for the decimal numbers: -39
esentations for the decimal numbers: -39
1
1
、已知:
、已知:
18
18
10
10
=00010010
=00010010
2
2
求其相反数的补码表示:
求其相反数的补码表示:
-18
-18
10
10
=(
=(
11101110
11101110
)
)
2
2
2
2
、用最少位数写出
、用最少位数写出
-49
-49
10
10
的二进制原码、
的二进制原码、
补码、反码表示。
补码、反码表示。
1110001,1001111
1110001,1001111
,
,
1001110
1001110
3
3
、已知:
、已知:
10011101
10011101
2
2
是某个数的补码表
是某个数的补码表
示,问其用十进制的表达为?
示,问其用十进制的表达为?
-99
-99
4
4
、分别以符号
、分别以符号
-
-
数值数制、反码、补码
数值数制、反码、补码
将
将
-24
-24
表示为一个
表示为一个
8
8
位数。
位数。
10011000,11
10011000,11
100111,11101000
100111,11101000
Operations for unsigned numbers
0+0=0 1+0=1 1+1=10
Addition
C:carry S:sum
0×A = 0 1×A = A
Multiplication
Shift-add : use adders and
shift-registers;The product width
will be 2n !
Operations for unsigned numbers
Sum up for the Complement
Sum up for the Complement
(
(
总结
总结
)
)
1.Positive number has the same
1.Positive number has the same
:
:
Sign-Magnitude,
Sign-Magnitude,
Ones’ – Complement,
Ones’ – Complement,
and Two’s- Complement
and Two’s- Complement
(
(
正数的原码、反码、补码相同
正数的原码、反码、补码相同
)
)
2. MSB
2. MSB
(the sign bit) :
(the sign bit) :
1 =minus; 0=plus
1 =minus; 0=plus
Weight of the MSB:
Weight of the MSB:
-2
-2
n-1
n-1
剩余40页未读,继续阅读
资源评论
智慧安全方案
- 粉丝: 3708
- 资源: 59万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功