⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 crc32_dat112.v

📁 本電子檔為 verilog cookbook,包含了通訊,影像,DSP等重要常用之verilog編碼,可作為工程師與初學者的參考手冊
💻 V
📖 第 1 页 / 共 5 页
字号:
       x24, x23, x22, x21, x20, x19, x18, x17, 
       x16;

assign crc_out = {x31,x30,x29,x28,x27,x26,x25,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};

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,d24,d25,d26,d27,d28,d29,d30,
    d31,d32,d33,d34,d35,d36,d37,d38,d39,d40,d41,d42,d43,d44,d45,d46,
    d47,d48,d49,d50,d51,d52,d53,d54,d55,d56,d57,d58,d59,d60,d61,d62,
    d63,d64,d65,d66,d67,d68,d69,d70,d71,d72,d73,d74,d75,d76,d77,d78,
    d79,d80,d81,d82,d83,d84,d85,d86,d87,d88,d89,d90,d91,d92,d93,d94,
    d95,d96,d97,d98,d99,d100,d101,d102,d103,d104,d105,d106,d107,d108,d109,d110,
    d111;

assign { d111,d110,d109,d108,d107,d106,d105,d104,d103,d102,d101,d100,d99,d98,d97,
        d96,d95,d94,d93,d92,d91,d90,d89,d88,d87,d86,d85,d84,d83,d82,d81,
        d80,d79,d78,d77,d76,d75,d74,d73,d72,d71,d70,d69,d68,d67,d66,d65,
        d64,d63,d62,d61,d60,d59,d58,d57,d56,d55,d54,d53,d52,d51,d50,d49,
        d48,d47,d46,d45,d44,d43,d42,d41,d40,d39,d38,d37,d36,d35,d34,d33,
        d32,d31,d30,d29,d28,d27,d26,d25,d24,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 [111:0];

wire c0,c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,
    c15,c16,c17,c18,c19,c20,c21,c22,c23,c24,c25,c26,c27,c28,c29,c30,
    c31;

assign { c31,c30,c29,c28,c27,c26,c25,c24,c23,c22,c21,c20,c19,c18,c17,
        c16,c15,c14,c13,c12,c11,c10,c9,c8,c7,c6,c5,c4,c3,c2,c1,
        c0} = crc_in [31:0];

    xor6 x332i (.out(x332),.a(x324),.b(x57),.c(x40),.d(x50),.e(x38),.f(1'b0));  // 5 ins 1 outs level 2

    xor6 x331i (.out(x331),.a(x325),.b(x326),.c(x327),.d(x328),.e(x329),.f(1'b0));  // 5 ins 1 outs level 2

    xor6 x330i (.out(x330),.a(d75),.b(d102),.c(d83),.d(1'b0),.e(1'b0),.f(1'b0));  // 3 ins 1 outs level 1

    xor6 x329i (.out(x329),.a(d100),.b(c22),.c(d44),.d(d56),.e(d13),.f(c24));  // 6 ins 1 outs level 1

    xor6 x328i (.out(x328),.a(d94),.b(c30),.c(d17),.d(d84),.e(d21),.f(c7));  // 6 ins 1 outs level 1

    xor6 x327i (.out(x327),.a(d35),.b(d24),.c(d110),.d(c10),.e(d47),.f(c1));  // 6 ins 1 outs level 1

    xor6 x326i (.out(x326),.a(d97),.b(c3),.c(d12),.d(d7),.e(d37),.f(d86));  // 6 ins 1 outs level 1

    xor6 x325i (.out(x325),.a(c20),.b(d46),.c(d68),.d(d66),.e(c25),.f(c23));  // 6 ins 1 outs level 1

    xor6 x324i (.out(x324),.a(d26),.b(c4),.c(d48),.d(d19),.e(c6),.f(d30));  // 6 ins 1 outs level 1

    xor6 x323i (.out(x323),.a(x32),.b(x68),.c(x33),.d(x35),.e(x61),.f(1'b0));  // 5 ins 1 outs level 2

    xor6 x322i (.out(x322),.a(x317),.b(x318),.c(x319),.d(x320),.e(x321),.f(1'b0));  // 5 ins 1 outs level 2

    xor6 x321i (.out(x321),.a(d6),.b(d67),.c(d1),.d(d69),.e(d87),.f(d33));  // 6 ins 1 outs level 1

    xor6 x320i (.out(x320),.a(d85),.b(d5),.c(d9),.d(d84),.e(d101),.f(c5));  // 6 ins 1 outs level 1

    xor6 x319i (.out(x319),.a(d38),.b(d29),.c(d27),.d(c21),.e(d30),.f(c26));  // 6 ins 1 outs level 1

    xor6 x318i (.out(x318),.a(d98),.b(d78),.c(d22),.d(d76),.e(d95),.f(d25));  // 6 ins 1 outs level 1

    xor6 x317i (.out(x317),.a(c30),.b(d106),.c(d58),.d(d92),.e(d18),.f(d105));  // 6 ins 1 outs level 1

    xor6 x316i (.out(x316),.a(c1),.b(d48),.c(c23),.d(c4),.e(d45),.f(c14));  // 6 ins 1 outs level 1

    xor6 x315i (.out(x315),.a(x307),.b(x41),.c(x40),.d(x49),.e(x32),.f(1'b0));  // 5 ins 1 outs level 2

    xor6 x314i (.out(x314),.a(x308),.b(x309),.c(x310),.d(x311),.e(x312),.f(1'b0));  // 5 ins 1 outs level 2

    xor6 x312i (.out(x312),.a(d44),.b(d46),.c(d69),.d(d9),.e(c13),.f(d80));  // 6 ins 1 outs level 1

    xor6 x311i (.out(x311),.a(d85),.b(d107),.c(c25),.d(d93),.e(d91),.f(c21));  // 6 ins 1 outs level 1

    xor6 x310i (.out(x310),.a(d70),.b(d104),.c(c7),.d(c9),.e(c31),.f(d23));  // 6 ins 1 outs level 1

    xor6 x309i (.out(x309),.a(d50),.b(d89),.c(c0),.d(d26),.e(d77),.f(d49));  // 6 ins 1 outs level 1

    xor6 x308i (.out(x308),.a(d21),.b(c12),.c(d6),.d(d105),.e(d39),.f(d48));  // 6 ins 1 outs level 1

    xor6 x307i (.out(x307),.a(d65),.b(c19),.c(d14),.d(c11),.e(d19),.f(c17));  // 6 ins 1 outs level 1

    xor6 x306i (.out(x306),.a(x299),.b(x48),.c(x69),.d(x44),.e(x42),.f(1'b0));  // 5 ins 1 outs level 2

    xor6 x305i (.out(x305),.a(x300),.b(x304),.c(x301),.d(x302),.e(x303),.f(1'b0));  // 5 ins 1 outs level 2

    xor6 x304i (.out(x304),.a(d51),.b(d38),.c(d15),.d(c5),.e(1'b0),.f(1'b0));  // 4 ins 1 outs level 1

    xor6 x303i (.out(x303),.a(c1),.b(d90),.c(c7),.d(d11),.e(d16),.f(d32));  // 6 ins 1 outs level 1

    xor6 x302i (.out(x302),.a(d7),.b(d81),.c(d102),.d(c17),.e(d62),.f(c23));  // 6 ins 1 outs level 1

    xor6 x301i (.out(x301),.a(d35),.b(d22),.c(d107),.d(d59),.e(d79),.f(c10));  // 6 ins 1 outs level 1

    xor6 x300i (.out(x300),.a(d29),.b(d47),.c(d45),.d(d95),.e(d103),.f(d106));  // 6 ins 1 outs level 1

    xor6 x299i (.out(x299),.a(c25),.b(c27),.c(d3),.d(c19),.e(c22),.f(d105));  // 6 ins 1 outs level 1

    xor6 x298i (.out(x298),.a(x296),.b(x61),.c(x43),.d(x38),.e(x32),.f(1'b0));  // 5 ins 1 outs level 2

    xor6 x297i (.out(x297),.a(x291),.b(x33),.c(x292),.d(x293),.e(x294),.f(1'b0));  // 5 ins 1 outs level 2

    xor6 x296i (.out(x296),.a(d12),.b(d30),.c(d59),.d(d50),.e(1'b0),.f(1'b0));  // 4 ins 1 outs level 1

    xor6 x295i (.out(x295),.a(c26),.b(d86),.c(d105),.d(d72),.e(d87),.f(d8));  // 6 ins 1 outs level 1

    xor6 x294i (.out(x294),.a(d34),.b(d66),.c(d52),.d(c18),.e(d106),.f(c27));  // 6 ins 1 outs level 1

    xor6 x293i (.out(x293),.a(d109),.b(c28),.c(d108),.d(c23),.e(d75),.f(c15));  // 6 ins 1 outs level 1

    xor6 x292i (.out(x292),.a(d23),.b(c31),.c(d78),.d(d94),.e(d107),.f(d4));  // 6 ins 1 outs level 1

    xor6 x291i (.out(x291),.a(d70),.b(d14),.c(c6),.d(d17),.e(c29),.f(d39));  // 6 ins 1 outs level 1

    xor6 x290i (.out(x290),.a(x284),.b(d96),.c(x48),.d(x47),.e(1'b0),.f(1'b0));  // 4 ins 1 outs level 2

    xor6 x289i (.out(x289),.a(x285),.b(x288),.c(x32),.d(x60),.e(x286),.f(x287));  // 6 ins 1 outs level 2

    xor6 x288i (.out(x288),.a(d73),.b(d49),.c(d108),.d(1'b0),.e(1'b0),.f(1'b0));  // 3 ins 1 outs level 1

    xor6 x287i (.out(x287),.a(d107),.b(d99),.c(d26),.d(d91),.e(c11),.f(d95));  // 6 ins 1 outs level 1

    xor6 x286i (.out(x286),.a(d110),.b(d109),.c(d42),.d(d61),.e(d5),.f(c29));  // 6 ins 1 outs level 1

    xor6 x285i (.out(x285),.a(d13),.b(d71),.c(d17),.d(d8),.e(d31),.f(d35));  // 6 ins 1 outs level 1

    xor6 x284i (.out(x284),.a(c28),.b(d97),.c(d62),.d(c25),.e(d24),.f(1'b0));  // 5 ins 1 outs level 1

    xor6 x283i (.out(x283),.a(x61),.b(x41),.c(x42),.d(x50),.e(x48),.f(x33));  // 6 ins 1 outs level 2

    xor6 x282i (.out(x282),.a(x277),.b(x35),.c(x278),.d(x279),.e(x280),.f(x281));  // 6 ins 1 outs level 2

    xor6 x281i (.out(x281),.a(d47),.b(d12),.c(c25),.d(d99),.e(d58),.f(d73));  // 6 ins 1 outs level 1

    xor6 x280i (.out(x280),.a(d45),.b(c12),.c(d33),.d(d26),.e(d8),.f(d44));  // 6 ins 1 outs level 1

    xor6 x279i (.out(x279),.a(d90),.b(d61),.c(d48),.d(c13),.e(d93),.f(d34));  // 6 ins 1 outs level 1

    xor6 x278i (.out(x278),.a(d100),.b(d62),.c(c18),.d(d52),.e(c20),.f(d37));  // 6 ins 1 outs level 1

    xor6 x277i (.out(x277),.a(d19),.b(d51),.c(d35),.d(d92),.e(c29),.f(d67));  // 6 ins 1 outs level 1

    xor6 x276i (.out(x276),.a(d94),.b(d41),.c(d18),.d(d59),.e(d74),.f(d27));  // 6 ins 1 outs level 1

    xor6 x275i (.out(x275),.a(x273),.b(x54),.c(x47),.d(x41),.e(x40),.f(x32));  // 6 ins 1 outs level 2

    xor6 x274i (.out(x274),.a(x268),.b(x45),.c(x269),.d(x270),.e(x271),.f(x272));  // 6 ins 1 outs level 2

    xor6 x273i (.out(x273),.a(c6),.b(d60),.c(1'b0),.d(1'b0),.e(1'b0),.f(1'b0));  // 2 ins 1 outs level 1

    xor6 x272i (.out(x272),.a(d69),.b(d13),.c(d15),.d(c9),.e(d17),.f(d35));  // 6 ins 1 outs level 1

    xor6 x271i (.out(x271),.a(d73),.b(c13),.c(d46),.d(d87),.e(d105),.f(d93));  // 6 ins 1 outs level 1

    xor6 x270i (.out(x270),.a(d76),.b(d81),.c(d75),.d(d42),.e(c17),.f(c10));  // 6 ins 1 outs level 1

    xor6 x269i (.out(x269),.a(d84),.b(d38),.c(d86),.d(d36),.e(d96),.f(d26));  // 6 ins 1 outs level 1

    xor6 x268i (.out(x268),.a(d110),.b(c23),.c(d85),.d(c29),.e(d16),.f(d89));  // 6 ins 1 outs level 1

    xor6 x267i (.out(x267),.a(d68),.b(d34),.c(d6),.d(d72),.e(c4),.f(d51));  // 6 ins 1 outs level 1

    xor6 x266i (.out(x266),.a(x260),.b(x61),.c(x48),.d(x54),.e(x43),.f(x37));  // 6 ins 1 outs level 2

    xor6 x265i (.out(x265),.a(x261),.b(x40),.c(x32),.d(x264),.e(x262),.f(x263));  // 6 ins 1 outs level 2

    xor6 x264i (.out(x264),.a(d69),.b(d8),.c(c23),.d(d70),.e(1'b0),.f(1'b0));  // 4 ins 1 outs level 1

    xor6 x263i (.out(x263),.a(d41),.b(d20),.c(d17),.d(c30),.e(d85),.f(d61));  // 6 ins 1 outs level 1

    xor6 x262i (.out(x262),.a(d33),.b(d2),.c(d10),.d(d73),.e(d48),.f(c5));  // 6 ins 1 outs level 1

    xor6 x261i (.out(x261),.a(d16),.b(d106),.c(c31),.d(d18),.e(d30),.f(d83));  // 6 ins 1 outs level 1

    xor6 x260i (.out(x260),.a(d37),.b(d43),.c(c3),.d(d66),.e(d35),.f(d63));  // 6 ins 1 outs level 1

    xor6 x259i (.out(x259),.a(x257),.b(x49),.c(x48),.d(x43),.e(x45),.f(x39));  // 6 ins 1 outs level 2

    xor6 x258i (.out(x258),.a(x252),.b(x36),.c(x253),.d(x254),.e(x255),.f(x256));  // 6 ins 1 outs level 2

    xor6 x257i (.out(x257),.a(d15),.b(d64),.c(1'b0),.d(1'b0),.e(1'b0),.f(1'b0));  // 2 ins 1 outs level 1

    xor6 x256i (.out(x256),.a(d48),.b(d22),.c(c25),.d(d56),.e(d3),.f(d61));  // 6 ins 1 outs level 1

    xor6 x255i (.out(x255),.a(d36),.b(d18),.c(d99),.d(d43),.e(d76),.f(d95));  // 6 ins 1 outs level 1

    xor6 x254i (.out(x254),.a(d33),.b(c10),.c(c18),.d(d79),.e(d20),.f(d102));  // 6 ins 1 outs level 1

    xor6 x253i (.out(x253),.a(c12),.b(d106),.c(d19),.d(d107),.e(d31),.f(c13));  // 6 ins 1 outs level 1

    xor6 x252i (.out(x252),.a(d105),.b(d71),.c(c22),.d(d69),.e(d74),.f(d37));  // 6 ins 1 outs level 1

    xor6 x251i (.out(x251),.a(d17),.b(d67),.c(c27),.d(d77),.e(d93),.f(d40));  // 6 ins 1 outs level 1

    xor6 x250i (.out(x250),.a(x248),.b(x52),.c(x44),.d(x32),.e(x33),.f(x42));  // 6 ins 1 outs level 2

    xor6 x249i (.out(x249),.a(x243),.b(x45),.c(x244),.d(x245),.e(x246),.f(x247));  // 6 ins 1 outs level 2

    xor6 x248i (.out(x248),.a(d21),.b(d54),.c(c10),.d(1'b0),.e(1'b0),.f(1'b0));  // 3 ins 1 outs level 1

    xor6 x247i (.out(x247),.a(d26),.b(d104),.c(d98),.d(d0),.e(d61),.f(d2));  // 6 ins 1 outs level 1

    xor6 x246i (.out(x246),.a(d48),.b(c7),.c(d59),.d(d22),.e(d73),.f(c17));  // 6 ins 1 outs level 1

    xor6 x245i (.out(x245),.a(d60),.b(d107),.c(d67),.d(d105),.e(d39),.f(d44));  // 6 ins 1 outs level 1

    xor6 x244i (.out(x244),.a(d18),.b(d3),.c(d76),.d(d10),.e(d19),.f(d38));  // 6 ins 1 outs level 1

    xor6 x243i (.out(x243),.a(d4),.b(d55),.c(c9),.d(d77),.e(c15),.f(d85));  // 6 ins 1 outs level 1

    xor6 x242i (.out(x242),.a(c12),.b(d89),.c(d94),.d(d66),.e(d50),.f(d31));  // 6 ins 1 outs level 1

    xor6 x241i (.out(x241),.a(x234),.b(x44),.c(x57),.d(x54),.e(x40),.f(x38));  // 6 ins 1 outs level 2

    xor6 x240i (.out(x240),.a(x235),.b(x37),.c(x236),.d(x237),.e(x238),.f(x239));  // 6 ins 1 outs level 2

    xor6 x239i (.out(x239),.a(c1),.b(c25),.c(d109),.d(d89),.e(d58),.f(d29));  // 6 ins 1 outs level 1

    xor6 x238i (.out(x238),.a(c16),.b(d67),.c(d106),.d(d42),.e(d21),.f(c17));  // 6 ins 1 outs level 1

    xor6 x237i (.out(x237),.a(c10),.b(d98),.c(d19),.d(d96),.e(c18),.f(d78));  // 6 ins 1 outs level 1

    xor6 x236i (.out(x236),.a(d82),.b(d68),.c(d43),.d(d97),.e(d92),.f(c2));  // 6 ins 1 outs level 1

    xor6 x235i (.out(x235),.a(d53),.b(d26),.c(d85),.d(d48),.e(d20),.f(d45));  // 6 ins 1 outs level 1

    xor6 x234i (.out(x234),.a(d50),.b(d11),.c(c9),.d(d95),.e(d62),.f(d49));  // 6 ins 1 outs level 1

    xor6 x233i (.out(x233),.a(d99),.b(x225),.c(x77),.d(d42),.e(c17),.f(x44));  // 6 ins 1 outs level 2

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -