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

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

?? crc16_dat16.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 16 data bits.  MSB used first.
//   Polynomial 00001021 (MSB excluded)
//     x^12 + x^5 + x^0
//
// Optimal LUT depth 2
//
//        CCCCCCCCCCCCCCCC DDDDDDDDDDDDDDDD
//        0000000000111111 0000000000111111
//        0123456789012345 0123456789012345
//
// C00  = X...X...X..XX... X...X...X..XX...
// C01  = .X...X...X..XX.. .X...X...X..XX..
// C02  = ..X...X...X..XX. ..X...X...X..XX.
// C03  = ...X...X...X..XX ...X...X...X..XX
// C04  = ....X...X...X..X ....X...X...X..X
// C05  = X...XX..XX.XXX.. X...XX..XX.XXX..
// C06  = .X...XX..XX.XXX. .X...XX..XX.XXX.
// C07  = ..X...XX..XX.XXX ..X...XX..XX.XXX
// C08  = ...X...XX..XX.XX ...X...XX..XX.XX
// C09  = ....X...XX..XX.X ....X...XX..XX.X
// C10  = .....X...XX..XX. .....X...XX..XX.
// C11  = ......X...XX..XX ......X...XX..XX
// C12  = X...X..XX......X X...X..XX......X
// C13  = .X...X..XX...... .X...X..XX......
// C14  = ..X...X..XX..... ..X...X..XX.....
// C15  = ...X...X..XX.... ...X...X..XX....
//
module crc16_dat16 (crc_in,dat_in,crc_out);
input [15:0] crc_in;
input [15:0] dat_in;
output [15:0] crc_out;

wire [15:0] crc_out;

parameter METHOD = 1;

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

endmodule

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

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

wire [15:0] crc_out;

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

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;

assign { d15,d14,d13,d12,d11,d10,d9,d8,d7,d6,d5,d4,d3,d2,d1,
        d0} = dat_in [15: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 x15 = d11 ^ c7 ^ d3 ^ c10 ^ c3 ^ d10 ^ c11 ^ d7;  // 8 ins 1 outs

    assign x14 = d10 ^ c6 ^ d2 ^ c9 ^ c2 ^ d9 ^ c10 ^ d6;  // 8 ins 1 outs

    assign x13 = d9 ^ c5 ^ d1 ^ c8 ^ c1 ^ d8 ^ c9 ^ d5;  // 8 ins 1 outs

    assign x12 = d0 ^ d8 ^ c7 ^ c0 ^ c15 ^ d15 ^ c4 ^ d7 ^ c8 ^ 
        d4;  // 10 ins 1 outs

    assign x11 = c6 ^ d10 ^ c14 ^ d14 ^ c10 ^ d6 ^ c11 ^ d15 ^ c15 ^ 
        d11;  // 10 ins 1 outs

    assign x10 = c5 ^ d9 ^ c13 ^ d13 ^ c9 ^ d5 ^ c10 ^ d14 ^ c14 ^ 
        d10;  // 10 ins 1 outs

    assign x9 = c4 ^ d15 ^ c15 ^ d8 ^ c12 ^ d12 ^ c8 ^ d4 ^ c9 ^ 
        d13 ^ c13 ^ d9;  // 12 ins 1 outs

    assign x8 = c3 ^ d14 ^ c14 ^ d7 ^ c11 ^ d15 ^ c15 ^ d11 ^ c7 ^ 
        d3 ^ c8 ^ d12 ^ c12 ^ d8;  // 14 ins 1 outs

    assign x7 = c2 ^ d13 ^ c13 ^ d6 ^ c10 ^ d14 ^ c14 ^ d10 ^ c6 ^ 
        d2 ^ c7 ^ d11 ^ c15 ^ d15 ^ c11 ^ d7;  // 16 ins 1 outs

    assign x6 = c1 ^ d12 ^ c12 ^ d5 ^ c9 ^ d13 ^ c13 ^ d9 ^ c5 ^ 
        d1 ^ c6 ^ d10 ^ c14 ^ d14 ^ c10 ^ d6;  // 16 ins 1 outs

    assign x5 = c0 ^ d11 ^ d0 ^ c4 ^ c11 ^ d4 ^ c8 ^ d12 ^ c12 ^ 
        d8 ^ c5 ^ d9 ^ c13 ^ d13 ^ c9 ^ d5;  // 16 ins 1 outs

    assign x4 = c4 ^ d15 ^ c15 ^ d8 ^ c12 ^ d12 ^ c8 ^ d4;  // 8 ins 1 outs

    assign x3 = c3 ^ d14 ^ c14 ^ d7 ^ c11 ^ d15 ^ c15 ^ d11 ^ c7 ^ 
        d3;  // 10 ins 1 outs

    assign x2 = c2 ^ d13 ^ c13 ^ d6 ^ c10 ^ d14 ^ c14 ^ d10 ^ c6 ^ 
        d2;  // 10 ins 1 outs

    assign x1 = c1 ^ d12 ^ c12 ^ d5 ^ c9 ^ d13 ^ c13 ^ d9 ^ c5 ^ 
        d1;  // 10 ins 1 outs

    assign x0 = c0 ^ d11 ^ d0 ^ c4 ^ c11 ^ d4 ^ c8 ^ d12 ^ c12 ^ 
        d8;  // 10 ins 1 outs

endmodule

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

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

wire [15:0] crc_out;

wire x28, x27, x26, x24, x23, x22, x21, 
       x20, x19, x18, x17, x16, x15, x14, x13, 
       x12, x11, x10, x9, x8, x7, x6, x5, 
       x4, x3, x2, x1, x0;

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;

assign { d15,d14,d13,d12,d11,d10,d9,d8,d7,d6,d5,d4,d3,d2,d1,
        d0} = dat_in [15: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 x28i (.out(x28),.a(c6),.b(c12),.c(d12),.d(d5),.e(1'b0),.f(1'b0));  // 4 ins 1 outs

    xor6 x27i (.out(x27),.a(c9),.b(d11),.c(d13),.d(c13),.e(1'b0),.f(1'b0));  // 4 ins 1 outs

    xor6 x26i (.out(x26),.a(d11),.b(d14),.c(c3),.d(c14),.e(d3),.f(1'b0));  // 5 ins 2 outs

    xor6 x24i (.out(x24),.a(d11),.b(d4),.c(c15),.d(d15),.e(c4),.f(1'b0));  // 5 ins 2 outs

    xor6 x23i (.out(x23),.a(d4),.b(c11),.c(d0),.d(c0),.e(c4),.f(1'b0));  // 5 ins 3 outs

    xor6 x22i (.out(x22),.a(c5),.b(d1),.c(c1),.d(d5),.e(1'b0),.f(1'b0));  // 4 ins 3 outs

    xor6 x21i (.out(x21),.a(c9),.b(c6),.c(d2),.d(c2),.e(1'b0),.f(1'b0));  // 4 ins 3 outs

    xor6 x20i (.out(x20),.a(d11),.b(d3),.c(c3),.d(c10),.e(d10),.f(1'b0));  // 5 ins 1 outs

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

    xor6 x18i (.out(x18),.a(d11),.b(c8),.c(d12),.d(c12),.e(d8),.f(1'b0));  // 5 ins 5 outs

    xor6 x17i (.out(x17),.a(d9),.b(c13),.c(d13),.d(c9),.e(d5),.f(1'b0));  // 5 ins 5 outs

    xor6 x16i (.out(x16),.a(d6),.b(c10),.c(d14),.d(c14),.e(d10),.f(1'b0));  // 5 ins 5 outs

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

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

    xor6 x13i (.out(x13),.a(d9),.b(x22),.c(c8),.d(d8),.e(c9),.f(1'b0));  // 5 ins 1 outs

    xor6 x12i (.out(x12),.a(c8),.b(d8),.c(x19),.d(x23),.e(1'b0),.f(1'b0));  // 4 ins 1 outs

    xor6 x11i (.out(x11),.a(d15),.b(x16),.c(c6),.d(c11),.e(c15),.f(d11));  // 6 ins 1 outs

    xor6 x10i (.out(x10),.a(d6),.b(x16),.c(c5),.d(x17),.e(1'b0),.f(1'b0));  // 4 ins 1 outs

    xor6 x9i (.out(x9),.a(x17),.b(d5),.c(x18),.d(x24),.e(1'b0),.f(1'b0));  // 4 ins 1 outs

    xor6 x8i (.out(x8),.a(x18),.b(x19),.c(x26),.d(d11),.e(1'b0),.f(1'b0));  // 4 ins 1 outs

    xor6 x7i (.out(x7),.a(x27),.b(x21),.c(x16),.d(x19),.e(1'b0),.f(1'b0));  // 4 ins 1 outs

    xor6 x6i (.out(x6),.a(x28),.b(x17),.c(x22),.d(x16),.e(1'b0),.f(1'b0));  // 4 ins 1 outs

    xor6 x5i (.out(x5),.a(x17),.b(x18),.c(c5),.d(x23),.e(1'b0),.f(1'b0));  // 4 ins 1 outs

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

    xor6 x3i (.out(x3),.a(x19),.b(x26),.c(1'b0),.d(1'b0),.e(1'b0),.f(1'b0));  // 2 ins 1 outs

    xor6 x2i (.out(x2),.a(x21),.b(x16),.c(c9),.d(c13),.e(d13),.f(1'b0));  // 5 ins 1 outs

    xor6 x1i (.out(x1),.a(x17),.b(d12),.c(c12),.d(x22),.e(d5),.f(1'b0));  // 5 ins 1 outs

    xor6 x0i (.out(x0),.a(x18),.b(x23),.c(1'b0),.d(1'b0),.e(1'b0),.f(1'b0));  // 2 ins 1 outs

endmodule

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
日韩一区二区在线看| 日韩欧美电影在线| 日韩电影在线免费看| 91精品国产入口在线| 北条麻妃一区二区三区| 欧美日韩不卡在线| 色八戒一区二区三区| 国产91精品一区二区麻豆亚洲| 日韩免费高清视频| 麻豆国产精品视频| 亚洲欧洲av在线| 欧美一级黄色大片| 精品亚洲成a人| 国产成人99久久亚洲综合精品| 亚洲第一精品在线| 国产精品国产三级国产aⅴ原创| 日韩欧美成人激情| 北条麻妃一区二区三区| 国产成人精品1024| 午夜精品福利一区二区三区av | 免费观看日韩av| 国产精品污网站| 亚洲色图.com| 综合久久久久综合| 国产精品久久网站| 国产午夜精品一区二区| 欧美电影一区二区三区| 日韩欧美国产一区二区在线播放| 色94色欧美sute亚洲线路一久 | 99久久亚洲一区二区三区青草| 奇米一区二区三区| 国产精品123区| 99精品视频一区二区三区| 成人黄色网址在线观看| 懂色av一区二区在线播放| 日韩国产欧美在线视频| 久久99久久久久久久久久久| 久久99精品国产.久久久久| 五月天欧美精品| www..com久久爱| 91麻豆国产精品久久| 欧美日韩国产高清一区二区三区| 欧美日韩视频专区在线播放| 国产精品视频一区二区三区不卡| 一区二区三区四区激情| 一区二区欧美精品| 男人的天堂久久精品| 日韩精品91亚洲二区在线观看| 一区二区三区不卡视频在线观看| 欧美影视一区二区三区| 欧美电影影音先锋| 欧美精品一区二区精品网| 国产亚洲欧洲997久久综合 | 懂色av噜噜一区二区三区av| 成人中文字幕电影| 色哟哟欧美精品| 日韩影院在线观看| 亚洲精品视频在线看| 在线免费不卡电影| 亚洲视频资源在线| 国产一区二区电影| 国产精品日产欧美久久久久| 国产农村妇女毛片精品久久麻豆| 欧美伊人久久久久久久久影院| 一区二区在线电影| 亚洲国产人成综合网站| 成人性生交大片免费看中文| 成熟亚洲日本毛茸茸凸凹| 欧美日韩综合在线免费观看| 青椒成人免费视频| 亚洲天堂a在线| 欧美一级日韩免费不卡| 成人午夜精品在线| 亚洲综合另类小说| 精品不卡在线视频| 色综合婷婷久久| 美女一区二区视频| 国产精品卡一卡二| 欧美电影免费提供在线观看| 91视频精品在这里| 国产剧情一区二区| 日韩不卡一二三区| 亚洲视频小说图片| 久久综合色播五月| 欧洲视频一区二区| 成人免费黄色在线| 亚洲不卡一区二区三区| 91在线丨porny丨国产| 91精品国产综合久久婷婷香蕉 | 日韩一区在线播放| 在线观看视频91| 国产蜜臀97一区二区三区| www.欧美色图| 国产精品久久久久久久午夜片| 亚洲女人的天堂| 中日韩免费视频中文字幕| 日韩免费在线观看| 国产日韩精品视频一区| 国产婷婷一区二区| 亚洲成人1区2区| 国产精品亚洲第一| 久久综合久久99| 一区二区三区在线播| av中文一区二区三区| 欧美一区在线视频| 婷婷综合另类小说色区| 在线中文字幕一区二区| 亚洲自拍偷拍九九九| 久久综合丝袜日本网| 欧美在线你懂的| 亚洲女同ⅹxx女同tv| 欧美激情中文不卡| 成人午夜在线视频| 成人激情免费视频| 亚洲国产精品成人久久综合一区| 成人免费黄色在线| 亚洲精品老司机| 国产日韩欧美不卡在线| av资源站一区| 亚洲动漫第一页| 中文字幕av在线一区二区三区| 99国产欧美久久久精品| 午夜久久久久久电影| 精品国产区一区| 日韩一区二区三区免费观看| 丁香亚洲综合激情啪啪综合| 成人性视频网站| 亚洲视频在线观看一区| 欧美日韩午夜在线| 99精品一区二区| 777奇米四色成人影色区| 另类人妖一区二区av| 亚洲成人资源在线| 尤物视频一区二区| 亚洲精品中文在线影院| 国产精品灌醉下药二区| 亚洲一区二区三区视频在线 | 韩国一区二区在线观看| 色综合久久综合网欧美综合网 | 一区二区免费视频| 亚洲午夜激情av| 麻豆91精品视频| 国产河南妇女毛片精品久久久| 国产成人超碰人人澡人人澡| 91色.com| 欧美区视频在线观看| 精品久久五月天| 亚洲日本在线a| 美女尤物国产一区| 91尤物视频在线观看| 91精品中文字幕一区二区三区| 久久综合成人精品亚洲另类欧美| 国产精品国产三级国产a| 午夜精品一区二区三区三上悠亚| 国产一区91精品张津瑜| 91行情网站电视在线观看高清版| 欧美一级午夜免费电影| 国产精品久久久久影院色老大| 亚洲黄色av一区| 久久99国产精品尤物| 色婷婷av一区二区三区大白胸| 精品va天堂亚洲国产| 一区二区国产盗摄色噜噜| 日本美女一区二区| 91在线一区二区三区| 久久综合丝袜日本网| 首页国产欧美日韩丝袜| 不卡一区二区在线| 精品国产一区二区国模嫣然| 亚洲成人精品一区| 99r国产精品| 久久综合久久久久88| 天天操天天色综合| 日本道免费精品一区二区三区| 久久精品水蜜桃av综合天堂| 日本vs亚洲vs韩国一区三区二区| 99久免费精品视频在线观看| 久久久精品欧美丰满| 日本不卡中文字幕| 欧美主播一区二区三区| 国产精品福利一区二区三区| 狠狠色丁香久久婷婷综合丁香| 精品1区2区3区| 亚洲精品日韩一| 91在线码无精品| 日本一区二区视频在线观看| 久久国产日韩欧美精品| 欧美精品久久99久久在免费线| 亚洲激情五月婷婷| 欧美亚洲动漫精品| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆| 蜜桃91丨九色丨蝌蚪91桃色| 欧美精品在线视频| 午夜欧美在线一二页| 欧洲国产伦久久久久久久| 一区二区三区加勒比av| 日本韩国欧美一区| 亚洲高清在线精品| 欧美日韩亚洲综合在线| 亚洲成人www|