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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? crc16_dat24.v

?? 本電子檔為 verilog cookbook,包含了通訊,影像,DSP等重要常用之verilog編碼,可作為工程師與初學者的參考手冊
?? 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 24 data bits.  MSB used first.
//   Polynomial 00001021 (MSB excluded)
//     x^12 + x^5 + x^0
//
// Optimal LUT depth 2
//
//        CCCCCCCCCCCCCCCC DDDDDDDDDDDDDDDDDDDDDDDD
//        0000000000111111 000000000011111111112222
//        0123456789012345 012345678901234567890123
//
// C00  = X..XX......XX.X. X...X...X..XX......XX.X.
// C01  = .X..XX......XX.X .X...X...X..XX......XX.X
// C02  = ..X..XX......XX. ..X...X...X..XX......XX.
// C03  = ...X..XX......XX ...X...X...X..XX......XX
// C04  = X...X..XX......X ....X...X...X..XX......X
// C05  = XX.XXX..XX.XX.X. X...XX..XX.XXX..XX.XX.X.
// C06  = .XX.XXX..XX.XX.X .X...XX..XX.XXX..XX.XX.X
// C07  = ..XX.XXX..XX.XX. ..X...XX..XX.XXX..XX.XX.
// C08  = X..XX.XXX..XX.XX ...X...XX..XX.XXX..XX.XX
// C09  = XX..XX.XXX..XX.X ....X...XX..XX.XXX..XX.X
// C10  = .XX..XX.XXX..XX. .....X...XX..XX.XXX..XX.
// C11  = ..XX..XX.XXX..XX ......X...XX..XX.XXX..XX
// C12  = X......XX.X...XX X...X..XX......XX.X...XX
// C13  = XX......XX.X...X .X...X..XX......XX.X...X
// C14  = .XX......XX.X... ..X...X..XX......XX.X...
// C15  = ..XX......XX.X.. ...X...X..XX......XX.X..
//
module crc16_dat24 (crc_in,dat_in,crc_out);
input [15:0] crc_in;
input [23:0] dat_in;
output [15:0] crc_out;

wire [15:0] crc_out;

parameter METHOD = 1;

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

endmodule

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

module crc16_dat24_flat (crc_in,dat_in,crc_out);
input [15:0] crc_in;
input [23: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,d8,d9,d10,d11,d12,d13,d14,
    d15,d16,d17,d18,d19,d20,d21,d22,d23;

assign { d23,d22,d21,d20,d19,d18,d17,d16,d15,d14,d13,d12,d11,d10,d9,
        d8,d7,d6,d5,d4,d3,d2,d1,d0} = dat_in [23: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];

    assign x7 = c6 ^ c14 ^ d22 ^ d2 ^ d13 ^ c2 ^ d21 ^ c13 ^ d14 ^ 
        c5 ^ d10 ^ d6 ^ d15 ^ c11 ^ d18 ^ d7 ^ c3 ^ c10 ^ d11 ^ 
        c7 ^ d19;  // 21 ins 1 outs

    assign x6 = c5 ^ c13 ^ d21 ^ d1 ^ d12 ^ c1 ^ d20 ^ c12 ^ d13 ^ 
        c15 ^ d23 ^ c4 ^ d9 ^ d5 ^ d14 ^ c10 ^ d17 ^ d6 ^ c2 ^ 
        c9 ^ d10 ^ c6 ^ d18;  // 23 ins 1 outs

    assign x5 = c12 ^ d20 ^ d11 ^ c0 ^ d19 ^ d0 ^ c4 ^ c11 ^ d12 ^ 
        c14 ^ d22 ^ c3 ^ d4 ^ d8 ^ d13 ^ c9 ^ d16 ^ d5 ^ c1 ^ 
        c8 ^ d9 ^ c5 ^ d17;  // 23 ins 1 outs

    assign x4 = d12 ^ c8 ^ d15 ^ c4 ^ d23 ^ c15 ^ c0 ^ c7 ^ d16 ^ 
        d8 ^ d4;  // 11 ins 1 outs

    assign x3 = c7 ^ c15 ^ d23 ^ d3 ^ d14 ^ c3 ^ d22 ^ c14 ^ d15 ^ 
        c6 ^ d11 ^ d7;  // 12 ins 1 outs

    assign x2 = c6 ^ c14 ^ d22 ^ d2 ^ d13 ^ c2 ^ d21 ^ c13 ^ d14 ^ 
        c5 ^ d10 ^ d6;  // 12 ins 1 outs

    assign x1 = c5 ^ c13 ^ d21 ^ d1 ^ d12 ^ c1 ^ d20 ^ c12 ^ d13 ^ 
        c15 ^ d23 ^ c4 ^ d9 ^ d5;  // 14 ins 1 outs

    assign x0 = c12 ^ d20 ^ d11 ^ c0 ^ d19 ^ d0 ^ c4 ^ c11 ^ d12 ^ 
        c14 ^ d22 ^ c3 ^ d4 ^ d8;  // 14 ins 1 outs

    assign x15 = d11 ^ d7 ^ c2 ^ d21 ^ c13 ^ d3 ^ c10 ^ c3 ^ d18 ^ 
        d10 ^ d19 ^ c11;  // 12 ins 1 outs

    assign x14 = d10 ^ d6 ^ c1 ^ d20 ^ c12 ^ d2 ^ c9 ^ c2 ^ d17 ^ 
        d9 ^ d18 ^ c10;  // 12 ins 1 outs

    assign x13 = c15 ^ d9 ^ d5 ^ c0 ^ d19 ^ d8 ^ d23 ^ c11 ^ d1 ^ 
        c8 ^ c1 ^ d16 ^ d17 ^ c9;  // 14 ins 1 outs

    assign x12 = c14 ^ d4 ^ d8 ^ d15 ^ d0 ^ d18 ^ d7 ^ d22 ^ c10 ^ 
        c7 ^ c0 ^ d23 ^ c15 ^ d16 ^ c8;  // 15 ins 1 outs

    assign x11 = d14 ^ c10 ^ d17 ^ d6 ^ c2 ^ c9 ^ d10 ^ c6 ^ d18 ^ 
        c3 ^ d22 ^ c14 ^ d15 ^ c11 ^ d23 ^ c15 ^ d19 ^ c7 ^ d11;  // 19 ins 1 outs

    assign x10 = d13 ^ c9 ^ d16 ^ d5 ^ c1 ^ c8 ^ d9 ^ c5 ^ d17 ^ 
        c2 ^ d21 ^ c13 ^ d14 ^ c10 ^ d22 ^ c14 ^ d18 ^ c6 ^ d10;  // 19 ins 1 outs

    assign x9 = d12 ^ c8 ^ d15 ^ c4 ^ d23 ^ c15 ^ c0 ^ c7 ^ d16 ^ 
        d8 ^ d4 ^ c1 ^ d20 ^ c12 ^ d13 ^ c9 ^ d21 ^ c13 ^ d17 ^ 
        c5 ^ d9;  // 21 ins 1 outs

    assign x8 = c7 ^ c15 ^ d23 ^ d3 ^ d14 ^ c3 ^ d22 ^ c14 ^ d15 ^ 
        c6 ^ d11 ^ d7 ^ c0 ^ d19 ^ d8 ^ c4 ^ c11 ^ d12 ^ c8 ^ 
        d20 ^ c12 ^ d16;  // 22 ins 1 outs

endmodule

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

module crc16_dat24_factor (crc_in,dat_in,crc_out);
input [15:0] crc_in;
input [23:0] dat_in;
output [15:0] crc_out;

wire [15:0] crc_out;

wire x59, x58, x57, x56, x55, x54, x53, 
       x52, x51, x50, x49, x48, x47, x46, x45, 
       x44, x43, x42, x41, x40, x39, x38, 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,d8,d9,d10,d11,d12,d13,d14,
    d15,d16,d17,d18,d19,d20,d21,d22,d23;

assign { d23,d22,d21,d20,d19,d18,d17,d16,d15,d14,d13,d12,d11,d10,d9,
        d8,d7,d6,d5,d4,d3,d2,d1,d0} = dat_in [23: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 x59i (.out(x59),.a(d19),.b(c15),.c(1'b0),.d(1'b0),.e(1'b0),.f(1'b0));  // 2 ins 1 outs

    xor6 x58i (.out(x58),.a(d23),.b(d13),.c(c13),.d(d21),.e(1'b0),.f(1'b0));  // 4 ins 1 outs

    xor6 x57i (.out(x57),.a(d23),.b(c11),.c(c15),.d(d19),.e(1'b0),.f(1'b0));  // 4 ins 1 outs

    xor6 x56i (.out(x56),.a(c15),.b(d5),.c(1'b0),.d(1'b0),.e(1'b0),.f(1'b0));  // 2 ins 1 outs

    xor6 x55i (.out(x55),.a(d9),.b(c1),.c(c13),.d(d13),.e(1'b0),.f(1'b0));  // 4 ins 1 outs

    xor6 x54i (.out(x54),.a(c8),.b(c14),.c(d16),.d(d22),.e(d6),.f(1'b0));  // 5 ins 1 outs

    xor6 x53i (.out(x53),.a(d23),.b(d6),.c(c13),.d(c11),.e(d17),.f(1'b0));  // 5 ins 1 outs

    xor6 x52i (.out(x52),.a(d18),.b(c10),.c(d0),.d(d7),.e(c14),.f(1'b0));  // 5 ins 1 outs

    xor6 x51i (.out(x51),.a(d2),.b(c12),.c(d20),.d(c5),.e(d6),.f(1'b0));  // 5 ins 1 outs

    xor6 x50i (.out(x50),.a(d7),.b(d2),.c(c7),.d(d15),.e(c11),.f(1'b0));  // 5 ins 1 outs

    xor6 x49i (.out(x49),.a(c11),.b(d3),.c(d19),.d(d7),.e(1'b0),.f(1'b0));  // 4 ins 3 outs

    xor6 x48i (.out(x48),.a(d22),.b(d2),.c(d10),.d(c5),.e(c13),.f(1'b0));  // 5 ins 1 outs

    xor6 x47i (.out(x47),.a(d0),.b(c11),.c(d23),.d(d4),.e(d13),.f(1'b0));  // 5 ins 2 outs

    xor6 x46i (.out(x46),.a(d5),.b(c15),.c(d1),.d(1'b0),.e(1'b0),.f(1'b0));  // 3 ins 3 outs

    xor6 x45i (.out(x45),.a(d23),.b(d15),.c(c7),.d(d4),.e(1'b0),.f(1'b0));  // 4 ins 3 outs

    xor6 x44i (.out(x44),.a(d14),.b(d15),.c(c7),.d(c15),.e(c6),.f(1'b0));  // 5 ins 3 outs

    xor6 x43i (.out(x43),.a(c6),.b(d13),.c(d14),.d(d6),.e(d21),.f(1'b0));  // 5 ins 4 outs

    xor6 x42i (.out(x42),.a(c1),.b(d9),.c(c5),.d(d17),.e(c9),.f(1'b0));  // 5 ins 6 outs

    xor6 x41i (.out(x41),.a(d23),.b(c4),.c(d12),.d(d20),.e(c12),.f(1'b0));  // 5 ins 6 outs

    xor6 x40i (.out(x40),.a(c8),.b(c15),.c(c0),.d(d16),.e(d8),.f(1'b0));  // 5 ins 6 outs

    xor6 x39i (.out(x39),.a(c3),.b(d11),.c(d19),.d(c14),.e(d22),.f(1'b0));  // 5 ins 6 outs

    xor6 x38i (.out(x38),.a(c2),.b(c10),.c(c13),.d(d18),.e(d10),.f(1'b0));  // 5 ins 6 outs

    xor6 x7i (.out(x7),.a(x50),.b(c5),.c(x39),.d(x43),.e(x38),.f(1'b0));  // 5 ins 1 outs

    xor6 x6i (.out(x6),.a(x46),.b(x42),.c(x41),.d(x43),.e(x38),.f(1'b0));  // 5 ins 1 outs

    xor6 x5i (.out(x5),.a(x56),.b(x40),.c(x39),.d(x41),.e(x42),.f(x47));  // 6 ins 1 outs

    xor6 x4i (.out(x4),.a(c4),.b(d12),.c(x45),.d(x40),.e(1'b0),.f(1'b0));  // 4 ins 1 outs

    xor6 x3i (.out(x3),.a(x39),.b(x49),.c(d23),.d(c11),.e(x44),.f(1'b0));  // 5 ins 1 outs

    xor6 x2i (.out(x2),.a(c14),.b(c2),.c(x48),.d(x43),.e(1'b0),.f(1'b0));  // 4 ins 1 outs

    xor6 x1i (.out(x1),.a(d21),.b(x55),.c(c5),.d(x46),.e(x41),.f(1'b0));  // 5 ins 1 outs

    xor6 x0i (.out(x0),.a(x39),.b(c0),.c(d8),.d(x41),.e(d13),.f(x47));  // 6 ins 1 outs

    xor6 x15i (.out(x15),.a(c3),.b(d21),.c(x49),.d(d11),.e(x38),.f(1'b0));  // 5 ins 1 outs

    xor6 x14i (.out(x14),.a(c13),.b(x51),.c(x42),.d(x38),.e(1'b0),.f(1'b0));  // 4 ins 1 outs

    xor6 x13i (.out(x13),.a(c5),.b(x57),.c(x46),.d(x42),.e(x40),.f(1'b0));  // 5 ins 1 outs

    xor6 x12i (.out(x12),.a(x52),.b(d22),.c(x45),.d(x40),.e(1'b0),.f(1'b0));  // 4 ins 1 outs

    xor6 x11i (.out(x11),.a(x53),.b(c9),.c(x38),.d(x39),.e(x44),.f(1'b0));  // 5 ins 1 outs

    xor6 x10i (.out(x10),.a(x54),.b(d5),.c(x43),.d(x38),.e(x42),.f(1'b0));  // 5 ins 1 outs

    xor6 x9i (.out(x9),.a(x58),.b(x41),.c(x45),.d(x40),.e(x42),.f(1'b0));  // 5 ins 1 outs

    xor6 x8i (.out(x8),.a(x59),.b(x39),.c(x40),.d(x49),.e(x44),.f(x41));  // 6 ins 1 outs

endmodule

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91在线云播放| av资源站一区| 日韩精品中午字幕| 99热在这里有精品免费| 色网站国产精品| 国产精品正在播放| 国产精品麻豆视频| 91色综合久久久久婷婷| 中文成人综合网| 懂色av中文字幕一区二区三区| 一区二区三区蜜桃| 欧美电影免费观看高清完整版在线 | 91麻豆精品国产自产在线| 亚洲一区二区三区在线| 久久综合久久综合亚洲| 成人免费毛片aaaaa**| 日韩精品1区2区3区| 中文字幕一区二区三区四区| 国产日韩精品一区二区三区在线| 一本久久综合亚洲鲁鲁五月天| 亚洲国产毛片aaaaa无费看 | 欧美午夜片在线观看| 国产精品一区专区| 亚洲电影在线免费观看| 久久综合久色欧美综合狠狠| av成人老司机| av不卡在线播放| 国产成人亚洲综合a∨婷婷图片 | 一区二区三区欧美视频| 亚洲自拍偷拍九九九| 一区二区三区免费在线观看| 免费在线观看一区| 18欧美亚洲精品| 亚洲综合免费观看高清完整版 | 欧美一区二区三区公司| 久久精品夜色噜噜亚洲a∨| 一色桃子久久精品亚洲| 亚洲国产精品久久艾草纯爱| 久草中文综合在线| 波多野结衣在线aⅴ中文字幕不卡| 99精品视频在线观看免费| 欧美老人xxxx18| 久久综合九色综合欧美就去吻| 国产精品久久毛片a| 天堂在线一区二区| 成人在线一区二区三区| 欧美日韩一区二区三区视频| 精品国产精品一区二区夜夜嗨| 成人欧美一区二区三区在线播放| 亚洲va欧美va国产va天堂影院| 国产在线精品一区二区夜色| 99久久er热在这里只有精品66| 欧美色大人视频| 久久免费视频一区| 亚洲高清免费视频| 成人精品视频一区二区三区 | 捆绑变态av一区二区三区| 岛国一区二区三区| 337p亚洲精品色噜噜噜| 中文av一区二区| 久久精品国产精品亚洲红杏| 色婷婷国产精品| 国产日产欧美一区| 美女视频黄免费的久久| 日本道在线观看一区二区| 久久这里只有精品视频网| 亚洲高清在线视频| 97国产精品videossex| 日韩免费性生活视频播放| 一区二区三区欧美日韩| 成人午夜激情片| 久久综合狠狠综合久久综合88| 亚洲午夜在线视频| 91网站最新地址| 久久久久久久久久久久久夜| 日韩高清不卡在线| 色狠狠色噜噜噜综合网| 国产精品视频yy9299一区| 麻豆精品在线视频| 4438x亚洲最大成人网| 一级中文字幕一区二区| av在线不卡观看免费观看| 久久综合久久99| 久久99精品久久久久久| 欧美一区二区免费视频| 一区二区三区蜜桃| 91免费版pro下载短视频| 国产欧美一区二区三区在线看蜜臀| 日韩av电影免费观看高清完整版| 欧美性猛片xxxx免费看久爱| 日韩毛片高清在线播放| www.欧美亚洲| 国产精品成人网| 丰满白嫩尤物一区二区| 久久久精品人体av艺术| 狠狠色丁香婷婷综合| 日韩精品在线看片z| 老司机午夜精品99久久| 日韩网站在线看片你懂的| 日韩av一级片| 欧美一区二区三区人| 日韩电影免费在线观看网站| 欧美日韩国产精品自在自线| 亚洲一区在线观看视频| 欧美日韩另类一区| 性做久久久久久久免费看| 欧美日韩在线三区| 天天综合色天天综合色h| 在线不卡的av| 久久国产日韩欧美精品| 亚洲精品一区二区三区蜜桃下载 | 丁香网亚洲国际| 亚洲国产精品传媒在线观看| 成人在线综合网| 亚洲黄色小视频| 欧美日免费三级在线| 日本三级韩国三级欧美三级| 日韩一区二区三区在线| 极品美女销魂一区二区三区免费| 国产肉丝袜一区二区| 成人性生交大片免费看视频在线| 国产精品乱人伦| 欧洲精品视频在线观看| 热久久免费视频| 久久久高清一区二区三区| 成人美女视频在线观看18| 亚洲最新在线观看| 欧美一二三四区在线| 国产成人自拍网| 亚洲人123区| 91精品国产色综合久久| 国产在线视频一区二区| 中文字幕一区二区三区四区不卡| 欧美亚洲国产bt| 美女mm1313爽爽久久久蜜臀| 欧美激情在线看| 欧美综合一区二区三区| 九九国产精品视频| 中文字幕在线观看一区| 欧美乱熟臀69xxxxxx| 国产剧情一区二区三区| 亚洲精品成人精品456| 3d动漫精品啪啪1区2区免费| 国产乱色国产精品免费视频| 亚洲精品成人精品456| 日韩欧美国产系列| 97se亚洲国产综合自在线| 午夜精品一区在线观看| 国产区在线观看成人精品| 精品视频在线看| 国产福利一区二区三区在线视频| 亚洲免费观看高清在线观看| 日韩一区二区在线观看视频| 成人永久看片免费视频天堂| 亚洲18色成人| 国产精品免费看片| 91麻豆精品久久久久蜜臀| 成人精品gif动图一区| 天天操天天综合网| 中文字幕一区二区三区在线观看| 日韩一二三区视频| 在线观看日韩高清av| 粉嫩在线一区二区三区视频| 日韩国产在线观看| 一区二区三区在线免费| 久久久久国产精品厨房| 欧美色老头old∨ideo| 波多野结衣在线aⅴ中文字幕不卡| 奇米色一区二区三区四区| 日韩伦理av电影| 久久综合久久综合久久| 91精品视频网| 色欧美日韩亚洲| 国产精品一区在线| 日韩综合一区二区| 一区二区在线观看视频在线观看| 久久色在线视频| 欧美一区二区三区四区高清| 色噜噜偷拍精品综合在线| 国产成人午夜视频| 乱一区二区av| 日韩二区三区四区| 亚洲成人中文在线| 亚洲精品乱码久久久久久黑人| 久久久99精品免费观看不卡| 欧美一区二区在线播放| 欧美三级中文字幕| 一本色道a无线码一区v| 丁香六月久久综合狠狠色| 国产精品资源站在线| 另类的小说在线视频另类成人小视频在线| 亚洲一区二区三区在线| 一区二区三区日韩精品| 亚洲男同性视频| 日韩一区在线播放| 成人欧美一区二区三区1314| 亚洲国产精品二十页| 国产精品乱码一区二区三区软件| 久久久久久久久99精品| 久久只精品国产|