在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
12
返回列表 发新帖
楼主: 109010118

[讨论] CRC'检验,寄存器的初始值是0还是1有什么区别?

[复制链接]
发表于 2016-6-4 10:02:02 | 显示全部楼层
初值不同结果不同,收发两端要一致
发表于 2016-8-30 16:42:41 | 显示全部楼层
看协议里这么定的!!
发表于 2019-10-10 11:04:33 | 显示全部楼层


qptom 发表于 2015-1-23 21:05
满足m序列性质的CRC校验生成多项式,对于初值没有要求。
但考虑到硬件长采用并行实现,考虑到输入CRC校验的 ...


“可以方便的码字前面补0,而对结果没有影响”  ==> 这个和初始值为0还是1没关系吧,不管初始值为何,码字前面补0,都对结果没影响啊, 0 XOR任何人都是他本身
发表于 2019-11-18 11:03:25 | 显示全部楼层
學習了
发表于 2019-11-18 16:12:24 | 显示全部楼层
学习了
发表于 2020-6-24 09:02:45 | 显示全部楼层
能有啥影响
发表于 2020-9-1 15:47:07 | 显示全部楼层
一个大牛Ross N. Williams 是这么说的:
Most CRC algorithms initialize their register to zero. However,
some initialize it to a non-zero value. In theory (i.e. with no
assumptions about the message), the initial value has no affect
on the strength of the CRC algorithm, the initial value merely
providing a fixed starting point from which the register value can
progress. However, in practice, some messages are more likely
than others, and it is wise to initialize the CRC algorithm register
to a value that does not have ”blind spots” that are likely to occur
in practice. By ”blind spot” is meant a sequence of message bytes
that do not result in the register changing its value. In particular,
any CRC algorithm that initializes its register to zero will have
a blind spot of zero when it starts up and will be unable to
”count” a leading run of zero bytes. As a leading run of zero
bytes is quite common in real messages, it is wise to initialize the
algorithm register to a non-zero value.
大多数CRC 算法把他们的寄存器初始化为0。但是,有些把它初始
化为非零值。理论上(不对信息进行任何假设),初始值的选择不影
响CRC 算法的有效性,初始值仅仅提供了一个寄存器值开始运算
的固定起点。然而,在实践中,有些信息出现的可能性要更高,因此
把CRC 寄存器初始化为一个不太可能在实际中出现“盲点” 的值
是更明智的。“盲点” 是指一系列不会导致CRC 寄存器值变化的信
息字节。特别是当CRC 寄存器被初始化为0 时就具有“零盲点”,
当它运行的时候就不知道前面有多少个零字节。而零字节在实际应
用中充当信息的前导字节是非常普遍的,所以把CRC 寄存器初始
化为非零值是一个明智的做法。
刚刚从论坛里下载的PDF里看到的。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条

×

小黑屋| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-5-2 14:56 , Processed in 0.023175 second(s), 7 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表