亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? crc16_dat8.v

?? 本電子檔為 verilog cookbook,包含了通訊,影像,DSP等重要常用之verilog編碼,可作為工程師與初學(xué)者的參考手冊
?? V
字號:
// Copyright 2007 Altera Corporation. All rights reserved.  
// Altera products are protected under numerous U.S. and foreign patents, 
// maskwork rights, copyrights and other intellectual property laws.  
//
// This reference design file, and your use thereof, is subject to and governed
// by the terms and conditions of the applicable Altera Reference Design 
// License Agreement (either as signed by you or found at www.altera.com).  By
// using this reference design file, you indicate your acceptance of such terms
// and conditions between you and Altera Corporation.  In the event that you do
// not agree with such terms and conditions, you may not use the reference 
// design file and please promptly destroy any copies you have made.
//
// This reference design file is being provided on an "as-is" basis and as an 
// accommodation and therefore all warranties, representations or guarantees of 
// any kind (whether express, implied or statutory) including, without 
// limitation, warranties of merchantability, non-infringement, or fitness for
// a particular purpose, are specifically disclaimed.  By making this reference
// design file available, Altera expressly does not recommend, suggest or 
// require that this reference design file be used in combination with any 
// other product not provided by Altera.
/////////////////////////////////////////////////////////////////////////////

//// CRC-16 of 8 data bits.  MSB used first.
//   Polynomial 00001021 (MSB excluded)
//     x^12 + x^5 + x^0
//
// Optimal LUT depth 2
//
//        CCCCCCCCCCCCCCCC DDDDDDDD
//        0000000000111111 00000000
//        0123456789012345 01234567
//
// C00  = ........X...X... X...X...
// C01  = .........X...X.. .X...X..
// C02  = ..........X...X. ..X...X.
// C03  = ...........X...X ...X...X
// C04  = ............X... ....X...
// C05  = ........X...XX.. X...XX..
// C06  = .........X...XX. .X...XX.
// C07  = ..........X...XX ..X...XX
// C08  = X..........X...X ...X...X
// C09  = .X..........X... ....X...
// C10  = ..X..........X.. .....X..
// C11  = ...X..........X. ......X.
// C12  = ....X...X...X..X X...X..X
// C13  = .....X...X...X.. .X...X..
// C14  = ......X...X...X. ..X...X.
// C15  = .......X...X...X ...X...X
//
module crc16_dat8 (crc_in,dat_in,crc_out);
input [15:0] crc_in;
input [7:0] dat_in;
output [15:0] crc_out;

wire [15:0] crc_out;

parameter METHOD = 1;

generate
  if (METHOD == 0)
    crc16_dat8_flat cc (.crc_in(crc_in),.dat_in(dat_in),.crc_out(crc_out));
  else
    crc16_dat8_factor cc (.crc_in(crc_in),.dat_in(dat_in),.crc_out(crc_out));
endgenerate

endmodule

////////////////////////////////////////////////////////////////
// Flat version
////////////////////////////////////////////////////////////////

module crc16_dat8_flat (crc_in,dat_in,crc_out);
input [15:0] crc_in;
input [7:0] dat_in;
output [15:0] crc_out;

wire [15:0] crc_out;

wire x7, x6, x5, x4, x3, x2, x1, 
       x0, x15, x14, x13, x12, x11, x10, x9, 
       x8;

assign crc_out = {x15,x14,x13,x12,x11,x10,x9,x8,x7,x6,x5,x4,x3,x2,x1,
        x0};

wire d0,d1,d2,d3,d4,d5,d6,d7;

assign { d7,d6,d5,d4,d3,d2,d1,d0} = dat_in [7:0];

wire c0,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,
    c15;

assign { c15,c14,c13,c12,c11,c10,c9,c8,c7,c6,c5,c4,c3,c2,c1,
        c0} = crc_in [15:0];

    xor6 x7i (.out(x7),.a(c10),.b(d6),.c(c14),.d(d2),.e(c15),.f(d7));  // 6 ins 1 outs

    xor6 x6i (.out(x6),.a(c9),.b(d5),.c(c13),.d(d1),.e(c14),.f(d6));  // 6 ins 1 outs

    xor6 x5i (.out(x5),.a(c8),.b(d4),.c(c12),.d(d0),.e(c13),.f(d5));  // 6 ins 1 outs

    xor6 x4i (.out(x4),.a(c12),.b(d4),.c(1'b0),.d(1'b0),.e(1'b0),.f(1'b0));  // 2 ins 1 outs

    xor6 x3i (.out(x3),.a(c11),.b(d7),.c(c15),.d(d3),.e(1'b0),.f(1'b0));  // 4 ins 1 outs

    xor6 x2i (.out(x2),.a(c10),.b(d6),.c(c14),.d(d2),.e(1'b0),.f(1'b0));  // 4 ins 1 outs

    xor6 x1i (.out(x1),.a(c9),.b(d5),.c(c13),.d(d1),.e(1'b0),.f(1'b0));  // 4 ins 1 outs

    xor6 x0i (.out(x0),.a(c8),.b(d4),.c(c12),.d(d0),.e(1'b0),.f(1'b0));  // 4 ins 1 outs

    xor6 x15i (.out(x15),.a(c11),.b(d7),.c(c15),.d(d3),.e(c7),.f(1'b0));  // 5 ins 1 outs

    xor6 x14i (.out(x14),.a(c10),.b(d6),.c(c14),.d(d2),.e(c6),.f(1'b0));  // 5 ins 1 outs

    xor6 x13i (.out(x13),.a(c9),.b(d5),.c(c13),.d(d1),.e(c5),.f(1'b0));  // 5 ins 1 outs

    assign x12 = c8 ^ d4 ^ c12 ^ d0 ^ c15 ^ d7 ^ c4;  // 7 ins 1 outs

    xor6 x11i (.out(x11),.a(c14),.b(d6),.c(c3),.d(1'b0),.e(1'b0),.f(1'b0));  // 3 ins 1 outs

    xor6 x10i (.out(x10),.a(c13),.b(d5),.c(c2),.d(1'b0),.e(1'b0),.f(1'b0));  // 3 ins 1 outs

    xor6 x9i (.out(x9),.a(c12),.b(d4),.c(c1),.d(1'b0),.e(1'b0),.f(1'b0));  // 3 ins 1 outs

    xor6 x8i (.out(x8),.a(c11),.b(d7),.c(c15),.d(d3),.e(c0),.f(1'b0));  // 5 ins 1 outs

endmodule

////////////////////////////////////////////////////////////////
// Depth optimal factored version
////////////////////////////////////////////////////////////////

module crc16_dat8_factor (crc_in,dat_in,crc_out);
input [15:0] crc_in;
input [7:0] dat_in;
output [15:0] crc_out;

wire [15:0] crc_out;

wire x19, x18, x17, x16, x7, x6, x5, 
       x4, x3, x2, x1, x0, x15, x14, x13, 
       x12, x11, x10, x9, x8;

assign crc_out = {x15,x14,x13,x12,x11,x10,x9,x8,x7,x6,x5,x4,x3,x2,x1,
        x0};

wire d0,d1,d2,d3,d4,d5,d6,d7;

assign { d7,d6,d5,d4,d3,d2,d1,d0} = dat_in [7:0];

wire c0,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,
    c15;

assign { c15,c14,c13,c12,c11,c10,c9,c8,c7,c6,c5,c4,c3,c2,c1,
        c0} = crc_in [15:0];

    xor6 x19i (.out(x19),.a(c7),.b(c11),.c(c15),.d(d7),.e(d3),.f(1'b0));  // 5 ins 2 outs

    xor6 x18i (.out(x18),.a(c5),.b(d1),.c(c9),.d(c13),.e(d5),.f(1'b0));  // 5 ins 2 outs

    xor6 x17i (.out(x17),.a(c6),.b(c10),.c(d6),.d(c14),.e(d2),.f(1'b0));  // 5 ins 2 outs

    xor6 x16i (.out(x16),.a(c8),.b(d4),.c(c12),.d(d0),.e(1'b0),.f(1'b0));  // 4 ins 2 outs

    xor6 x7i (.out(x7),.a(x17),.b(c6),.c(c15),.d(d7),.e(1'b0),.f(1'b0));  // 4 ins 1 outs

    xor6 x6i (.out(x6),.a(d6),.b(c14),.c(x18),.d(c5),.e(1'b0),.f(1'b0));  // 4 ins 1 outs

    xor6 x5i (.out(x5),.a(x16),.b(c13),.c(d5),.d(1'b0),.e(1'b0),.f(1'b0));  // 3 ins 1 outs

    xor6 x4i (.out(x4),.a(c12),.b(d4),.c(1'b0),.d(1'b0),.e(1'b0),.f(1'b0));  // 2 ins 1 outs

    xor6 x3i (.out(x3),.a(c11),.b(d7),.c(c15),.d(d3),.e(1'b0),.f(1'b0));  // 4 ins 1 outs

    xor6 x2i (.out(x2),.a(c10),.b(d6),.c(c14),.d(d2),.e(1'b0),.f(1'b0));  // 4 ins 1 outs

    xor6 x1i (.out(x1),.a(c9),.b(d5),.c(c13),.d(d1),.e(1'b0),.f(1'b0));  // 4 ins 1 outs

    xor6 x0i (.out(x0),.a(c8),.b(d4),.c(c12),.d(d0),.e(1'b0),.f(1'b0));  // 4 ins 1 outs

    assign x15 = x19;  // 1 ins 1 outs

    assign x14 = x17;  // 1 ins 1 outs

    assign x13 = x18;  // 1 ins 1 outs

    xor6 x12i (.out(x12),.a(x16),.b(c15),.c(d7),.d(c4),.e(1'b0),.f(1'b0));  // 4 ins 1 outs

    xor6 x11i (.out(x11),.a(c14),.b(d6),.c(c3),.d(1'b0),.e(1'b0),.f(1'b0));  // 3 ins 1 outs

    xor6 x10i (.out(x10),.a(c13),.b(d5),.c(c2),.d(1'b0),.e(1'b0),.f(1'b0));  // 3 ins 1 outs

    xor6 x9i (.out(x9),.a(c12),.b(d4),.c(c1),.d(1'b0),.e(1'b0),.f(1'b0));  // 3 ins 1 outs

    xor6 x8i (.out(x8),.a(x19),.b(c7),.c(c0),.d(1'b0),.e(1'b0),.f(1'b0));  // 3 ins 1 outs

endmodule

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
午夜视频一区二区三区| 国产成人av一区| 在线中文字幕一区二区| 国产精品不卡视频| 成人精品视频一区| 国产精品视频线看| 91免费观看视频在线| 洋洋成人永久网站入口| 欧美日韩精品一二三区| 男人的j进女人的j一区| 91麻豆精品91久久久久同性| 久久精品免费观看| 国产欧美日韩不卡| 91浏览器打开| 青娱乐精品视频在线| 久久久久久久久久久99999| 成人精品国产一区二区4080| 亚洲欧洲www| 欧美日产国产精品| 国产老妇另类xxxxx| 综合欧美一区二区三区| 欧美人与禽zozo性伦| 精品一区二区三区在线视频| 国产亚洲欧美中文| 欧美亚洲国产一卡| 国产精品一二三区在线| 亚洲欧美日韩系列| 欧美成人免费网站| 91免费观看在线| 麻豆91免费看| 亚洲人妖av一区二区| 日韩一区二区在线观看视频播放| 成人免费视频一区二区| 舔着乳尖日韩一区| 国产亚洲精品aa| 欧美日韩中文字幕精品| 国产精品69毛片高清亚洲| 亚洲欧美电影院| 精品国产一区二区三区忘忧草| 9人人澡人人爽人人精品| 日韩电影网1区2区| 亚洲欧美日韩综合aⅴ视频| 欧美不卡一区二区| 欧美性受xxxx黑人xyx性爽| 国产精品白丝av| 视频一区在线播放| 中文字幕日本乱码精品影院| 欧美成人三级电影在线| 欧美日韩国产首页在线观看| 成人精品国产一区二区4080| 久99久精品视频免费观看| 一区二区三区中文免费| 中文子幕无线码一区tr | 成人国产精品免费| 免费在线看成人av| 亚洲在线观看免费视频| 中文字幕久久午夜不卡| 精品精品国产高清一毛片一天堂| 欧美日韩精品高清| 95精品视频在线| 成人av网站在线| 国产一区二三区好的| 秋霞成人午夜伦在线观看| 亚洲gay无套男同| 国产成人精品aa毛片| 肉肉av福利一精品导航| 亚洲一区在线电影| 亚洲精品五月天| 中文字幕亚洲视频| 中文字幕高清一区| 国产日本欧洲亚洲| 欧美激情中文字幕一区二区| 久久综合九色综合久久久精品综合 | 日本高清不卡视频| 91在线无精精品入口| 成人网男人的天堂| 国产91精品在线观看| 国产成人亚洲精品青草天美 | 夜夜嗨av一区二区三区四季av| 日韩久久一区二区| 成人欧美一区二区三区1314| 中文字幕国产一区| 亚洲欧美日韩中文字幕一区二区三区| 国产精品高清亚洲| 亚洲天堂成人在线观看| 亚洲精品乱码久久久久久日本蜜臀| 国产精品理论在线观看| 国产精品国产三级国产aⅴ无密码 国产精品国产三级国产aⅴ原创 | 中文字幕久久午夜不卡| 亚洲欧洲韩国日本视频| 成人精品鲁一区一区二区| 91蜜桃网址入口| 色老头久久综合| 欧美群妇大交群中文字幕| 亚洲欧美日韩系列| 久久久久久**毛片大全| 欧美一级久久久| 精品国产乱码久久久久久图片| 99久久精品99国产精品 | 亚洲精品国产第一综合99久久 | 日本不卡视频一二三区| 中文字幕欧美日本乱码一线二线| 国产欧美一区二区精品久导航| 久久免费国产精品| 亚洲精品一区二区三区精华液| 91精品国产日韩91久久久久久| av在线不卡电影| 国产黄人亚洲片| 国产成人精品三级| av亚洲产国偷v产偷v自拍| 91麻豆swag| 日韩精品电影一区亚洲| 国产精品视频观看| 欧美videossexotv100| 欧美日韩久久一区二区| 日本伦理一区二区| 波多野结衣亚洲| 成人在线一区二区三区| 91色在线porny| 在线观看不卡视频| 精品国产网站在线观看| 久久精品人人做人人综合| 日本一区二区三区久久久久久久久不| 国产婷婷色一区二区三区在线| 中文字幕一区二区三区四区| 一区二区三区精品视频| 国产在线乱码一区二区三区| 久久综合色播五月| 久久久久久久久99精品| 亚洲一区中文日韩| 国产精品一二三四| 欧美精品久久久久久久久老牛影院| 久久九九久久九九| 性久久久久久久久| av网站免费线看精品| 精品少妇一区二区| 亚洲成人动漫精品| hitomi一区二区三区精品| 日韩亚洲欧美在线| 亚洲精品第1页| 国产成人av一区二区三区在线观看| 欧美日本一区二区| 亚洲精品视频在线观看免费| 国产一区二区三区黄视频| 欧美日韩大陆一区二区| 亚洲免费在线电影| 成人精品鲁一区一区二区| 精品国产免费视频| 日韩av在线播放中文字幕| 色噜噜狠狠色综合欧洲selulu| 中文在线一区二区| 国内精品写真在线观看| 51午夜精品国产| 一区二区在线观看视频在线观看| 福利电影一区二区| 欧美精品一区二区三区四区 | 久久综合999| 麻豆视频观看网址久久| 欧美日韩的一区二区| 亚洲一区二区在线播放相泽| 色丁香久综合在线久综合在线观看| 国产蜜臀av在线一区二区三区 | 国产成人免费xxxxxxxx| 日韩欧美一区二区在线视频| 亚洲丰满少妇videoshd| 欧洲av在线精品| 一区二区欧美精品| 欧美性猛交xxxxxx富婆| 一级女性全黄久久生活片免费| 色综合天天性综合| 亚洲欧美电影一区二区| 色婷婷激情综合| 亚洲精品高清视频在线观看| 在线观看视频一区| 亚洲成av人综合在线观看| 欧美日韩极品在线观看一区| 亚洲国产成人91porn| 欧美老女人第四色| 蜜臀av一区二区在线免费观看| 日韩视频不卡中文| 黑人巨大精品欧美一区| 久久网站热最新地址| 国产91露脸合集magnet| 亚洲欧美国产三级| 91精品综合久久久久久| 国产综合一区二区| 国产精品伦理一区二区| 色综合久久综合| 日日摸夜夜添夜夜添国产精品| 日韩免费成人网| 懂色av一区二区在线播放| 日韩理论片在线| 3d成人动漫网站| 国产乱码精品一区二区三| 亚洲欧美一区二区不卡| 欧美美女直播网站| 韩国毛片一区二区三区| 成人免费一区二区三区在线观看| 色屁屁一区二区| 久久国产婷婷国产香蕉|