标题: CRC???é?÷??ר?ù-3 CAN×????????·???à???é???????í?°?????·????
  本主题由 admin 于 2006-5-5 23:49 移动 
zona
超级版主
Rank: 8Rank: 8


UID 3
精华 0
积分 503
帖子 532
阅读权限 101
注册 2003-12-16
状态 离线
发表于 2004-5-21 22:40  资料  个人空间  短消息  加为好友 
CRC???é?÷??ר?ù-3 CAN×????????·???à???é???????í?°?????·????

CAN×????????·???à???é???????í?°?????·????  
????×÷???????é?? ?? ?÷ ???ú??


   ????????CAN???????????????±?????ù?????ò???????????ò???ù?ù??????????????±¨???????í?????????°?±??????°?±¨??????????·??????§???ì???í?ó???è?????????í???????ê???é????CAN×????????·???à???é???????í???????í?°??????·?·¨??

   ???ü???????·???à???é ???í???? ±¨??

??CAN????????±??¤±¨???????????·?????è?????¨?????????????í?????????°??????·?·¨??·?????·???????????????????·????????í??????·?????±?×?????·??????±?????í???????è???ì?í?????????????ì?í?????à?????????é???????·???à???é???????????é????????×????????ì?í??????????·?·¨?ò???????ì?í?????????????·???à???é????±à???????ò?????ó?????????ù?????¨????????????????·??????????????é??CAN?????????·???à???é???¨??CRC?????????í??????·?·¨??


[???ù±?zona??2004-05-21 10:55 PM????±à??]





???í?ì?????????????á°ò±?????
顶部
zona
超级版主
Rank: 8Rank: 8


UID 3
精华 0
积分 503
帖子 532
阅读权限 101
注册 2003-12-16
状态 离线
发表于 2004-5-21 22:41  资料  个人空间  短消息  加为好友 
1 CRC???ì?í???¤×÷???í

CRC???ì?í????±????í±¨????±????ò???±×÷???????????à????A?¨x????????????????????·???·???????·??¤?????¨?????ú???à????g(x)?ó?????ó?????à??P(x)×÷??CRC???é??????????????±¨????????????·???????·???????·??????ù??g(x)??????????±¨??B(x)???????à??????p(x)???ò???????ó?¨???±A?¨x????B(x)?à??????·??ò?????????????í????·???????·???????????CRC???é???±?????ó??????

???????é?????????????è×?????????????CRC?????±?????????????¨??2??????·¨??????·¨??????????·¨???è??????±?????????????×÷???????????ì?ò??????????????CRC?????°????·???±¨???ù±í?????à????A(x)????xn??????n???ú???à????g(x)??×???????????????????·¨??????A(x)?¤xn??????A(x)×ó??n??????????·??à??p?¨x?????ù??????·?????±¨????±???A?¨x???¤xn+p(x)?????ú???à????g(x)???×????×??ó??????????±?????1??

??1??CRC???é???¤×÷??????

???°???????à???ú???à????±??????ú??±ê×?????????CRC-4??CRC-12??CRC-16??CCITT-16??CRC-32????CAN×????????????ú???à??????g(x)=x15+x14+x10+x8+x7+x4+x3+1????????????CANU????????CRC???é???????à???????????é??????±???°?CRC???é?¨CRC-4??CRC-12??CRC-16???????????¨???????????????í?à???ò???ü???ì?í???????????ó???????????????á???????????????????§?ì?í??????




 附件: 您所在的用户组无法下载或查看附件




???í?ì?????????????á°ò±?????
顶部
zona
超级版主
Rank: 8Rank: 8


UID 3
精华 0
积分 503
帖子 532
阅读权限 101
注册 2003-12-16
状态 离线
发表于 2004-5-21 22:43  资料  个人空间  短消息  加为好友 
2 CRC???????·????

2.1 ???????·??????

??CAN×??????????ú?úCRC???????????·???????????????±???????????????è??????????????????????????????????????????destuff???ü?????§????????1????CRC?ì?é??????????enable?????§????????1???????????·?????????????????÷??·??à?÷?ú???????è?????????ì?ò????????????±??????????????????ú?ú??±??????±?????¤???????á?????????????è?????·??

2.2 ???????·??

??2????????CRC???????????·????

?????è?????÷??????????????????????????????????????????????crcnxt?ú±í??????????????±¨???ò????CRC?????÷??×??????ì?ò???á??????±ê??0??14?ù????????15??CRC?????÷??????????·?????±ê??1??6?ù?????????????÷??·??à?÷??×é?????????????ì?ò?????????????÷????????????Y=AB+AC???????á??????3?ù????




 附件: 您所在的用户组无法下载或查看附件




???í?ì?????????????á°ò±?????
顶部
zona
超级版主
Rank: 8Rank: 8


UID 3
精华 0
积分 503
帖子 532
阅读权限 101
注册 2003-12-16
状态 离线
发表于 2004-5-21 22:47  资料  个人空间  短消息  加为好友 
2.3 ???·?¤×÷????

??????·????????????±enable=0?±??CRC??0?????±enable=1??destuff=1?±??????????CRC?????????±enable=1??destuff=0?±???????????????±????????????????

???÷???????????ù???§?±??????±¨????????????????CRC?????÷??×??????à?ì???ó????×??????????±?????÷????13??9??7??6??3??2???ù????×??????ì?ò???á??·?±?×ó???????????ü???????ì?ò??×÷???????÷??????·?±?×ó?????????±??±¨????????????????CRC?????÷?????????±?????÷????????????????????CRC????

????±¨????±????ò???¤????16???ò?è??×ó??16????????±¨???????????ù???????í????????Ck±í??CRC?????÷????k????????Ck&#39±í???????ó????k???????¨k=0,1,2,3????15?????ò??????????±í1??





???í?ì?????????????á°ò±?????
顶部
zona
超级版主
Rank: 8Rank: 8


UID 3
精华 0
积分 503
帖子 532
阅读权限 101
注册 2003-12-16
状态 离线
发表于 2004-5-21 22:48  资料  个人空间  短消息  加为好友 
3 CRC???é?????í??????

CRC???é???í??????????·???·?±??????????°??×??????é????·?·¨?à????C????????±à???????????????±·????????è????????????????????CRC????Verilog HDL?????????è?????ò??

±????ò??Verilog_XL??±à???¨???????±??Synopsis????????????×????°??????

//??Verilog HDL????CRC??

module crc(clk,rst,enable,destuff,datain,crc)??

input clk;

input rst;

input enable;

input destuff;

input datain;

output[14:0]crc;

reg[14:0]crc;

wire crcnxt=datain^crc[14];

always@(posedge rst or posedge clk)

begin

if(rst)crc=0;

else if(enable && destuff)

begin

if(crcnxt)

crc<=crc^15h񠕧

else

crc<={crc[13:0],1&#39b0};

end

end

endmodule




 附件: 您所在的用户组无法下载或查看附件




???í?ì?????????????á°ò±?????
顶部
zona
超级版主
Rank: 8Rank: 8


UID 3
精华 0
积分 503
帖子 532
阅读权限 101
注册 2003-12-16
状态 离线
发表于 2004-5-21 22:49  资料  个人空间  短消息  加为好友 
4 ·????¨??

???è·???????????±ê×????????????????è?ó??????×?????8??±ê??·??ò????10101011000???ò?????????ò·????ó???¨??????4?ù????Crc?ò??????20????????????

CRC???é?????ì?í??????????????????CRC???ì?í???í?????????????????ò?????ò??±???·??????????÷?à???????é????CRC???ì?í???á???????????????????§?ì?í????????????



 附件: 您所在的用户组无法下载或查看附件




???í?ì?????????????á°ò±?????
顶部
 



当前时区 GMT+8, 现在时间是 2024-11-24 02:53

    本论坛支付平台由支付宝提供
携手打造安全诚信的交易社区 Powered by Discuz! 5.5.0  © 2001-2007 Comsenz Inc.
Processed in 0.010816 second(s), 7 queries

清除 Cookies - 联系我们 - 我要委托设计网 - Archiver