📄 crc.bdf
字号:
/*
WARNING: Do NOT edit the input and output ports in this file in a text
editor if you plan to continue editing the block that represents it in
the Block Editor! File corruption is VERY likely to occur.
*/
/*
Copyright (C) 1991-2003 Altera Corporation
Any megafunction design, and related netlist (encrypted or decrypted),
support information, device programming or simulation file, and any other
associated documentation or information provided by Altera or a partner
under Altera's Megafunction Partnership Program may be used only
to program PLD devices (but not masked PLD devices) from Altera. Any
other use of such megafunction design, netlist, support information,
device programming or simulation file, or any other related documentation
or information is prohibited for any other purpose, including, but not
limited to modification, reverse engineering, de-compiling, or use with
any other silicon devices, unless such use is explicitly licensed under
a separate agreement with Altera or a megafunction partner. Title to the
intellectual property, including patents, copyrights, trademarks, trade
secrets, or maskworks, embodied in any such megafunction design, netlist,
support information, device programming or simulation file, or any other
related documentation or information provided by Altera or a megafunction
partner, remains with Altera, the megafunction partner, or their respective
licensors. No other licenses, including any licenses needed under any third
party's intellectual property, are provided herein.
*/
(header "graphic" (version "1.2"))
(pin
(input)
(rect 24 80 192 96)
(text "INPUT" (rect 133 0 159 10)(font "Arial" (font_size 6)))
(text "clk" (rect 5 0 18 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 154 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect 24 56 192 72)
(text "INPUT" (rect 133 0 159 10)(font "Arial" (font_size 6)))
(text "reset" (rect 5 0 28 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 154 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect -40 120 128 136)
(text "INPUT" (rect 133 0 159 10)(font "Arial" (font_size 6)))
(text "start" (rect 5 0 25 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 154 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect -40 136 128 152)
(text "INPUT" (rect 133 0 159 10)(font "Arial" (font_size 6)))
(text "clk_en" (rect 5 0 34 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 154 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect -96 320 72 336)
(text "INPUT" (rect 133 0 159 10)(font "Arial" (font_size 6)))
(text "dataa[31..0]" (rect 5 0 60 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 154 17)(font "Arial" (font_size 6)))
)
(pin
(input)
(rect -96 352 72 368)
(text "INPUT" (rect 133 0 159 10)(font "Arial" (font_size 6)))
(text "datab[31..0]" (rect 5 0 60 12)(font "Arial" ))
(pt 168 8)
(drawing
(line (pt 92 12)(pt 117 12)(line_width 1))
(line (pt 92 4)(pt 117 4)(line_width 1))
(line (pt 121 8)(pt 168 8)(line_width 1))
(line (pt 92 12)(pt 92 4)(line_width 1))
(line (pt 117 4)(pt 121 8)(line_width 1))
(line (pt 117 12)(pt 121 8)(line_width 1))
)
(text "VCC" (rect 136 7 154 17)(font "Arial" (font_size 6)))
)
(pin
(output)
(rect 480 304 656 320)
(text "OUTPUT" (rect 1 0 37 10)(font "Arial" (font_size 6)))
(text "result[31..0]" (rect 90 0 145 12)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 0 8)(pt 52 8)(line_width 1))
(line (pt 52 4)(pt 78 4)(line_width 1))
(line (pt 52 12)(pt 78 12)(line_width 1))
(line (pt 52 12)(pt 52 4)(line_width 1))
(line (pt 78 4)(pt 82 8)(line_width 1))
(line (pt 82 8)(pt 78 12)(line_width 1))
(line (pt 78 12)(pt 82 8)(line_width 1))
)
)
(symbol
(rect 240 136 376 264)
(text "reg16" (rect 5 0 35 14)(font "Arial" (font_size 8)))
(text "inst" (rect 8 112 24 124)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clr" (rect 0 0 13 14)(font "Arial" (font_size 8)))
(text "clr" (rect 21 27 34 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "clk" (rect 0 0 14 14)(font "Arial" (font_size 8)))
(text "clk" (rect 21 43 35 57)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "en" (rect 0 0 13 14)(font "Arial" (font_size 8)))
(text "en" (rect 21 59 34 73)(font "Arial" (font_size 8)))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 0 80)
(input)
(text "d[15..0]" (rect 0 0 39 14)(font "Arial" (font_size 8)))
(text "d[15..0]" (rect 21 75 60 89)(font "Arial" (font_size 8)))
(line (pt 0 80)(pt 16 80)(line_width 3))
)
(port
(pt 136 32)
(output)
(text "q[15..0]" (rect 0 0 39 14)(font "Arial" (font_size 8)))
(text "q[15..0]" (rect 76 27 115 41)(font "Arial" (font_size 8)))
(line (pt 136 32)(pt 120 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 120 112)(line_width 1))
)
)
(symbol
(rect 64 184 200 280)
(text "crc_mux" (rect 5 0 51 14)(font "Arial" (font_size 8)))
(text "inst19" (rect 8 80 35 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "A[15..0]" (rect 0 0 41 14)(font "Arial" (font_size 8)))
(text "A[15..0]" (rect 21 27 62 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "B[15..0]" (rect 0 0 40 14)(font "Arial" (font_size 8)))
(text "B[15..0]" (rect 21 43 61 57)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "sel" (rect 0 0 15 14)(font "Arial" (font_size 8)))
(text "sel" (rect 21 59 36 73)(font "Arial" (font_size 8)))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 136 32)
(output)
(text "Y[15..0]" (rect 0 0 41 14)(font "Arial" (font_size 8)))
(text "Y[15..0]" (rect 74 27 115 41)(font "Arial" (font_size 8)))
(line (pt 136 32)(pt 120 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 120 80)(line_width 1))
)
)
(symbol
(rect 240 336 376 432)
(text "endian_convert" (rect 5 0 87 14)(font "Arial" (font_size 8)))
(text "inst22" (rect 8 80 35 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "a[15..0]" (rect 0 0 39 14)(font "Arial" (font_size 8)))
(text "a[15..0]" (rect 21 27 60 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 136 32)
(output)
(text "y[15..0]" (rect 0 0 39 14)(font "Arial" (font_size 8)))
(text "y[15..0]" (rect 76 27 115 41)(font "Arial" (font_size 8)))
(line (pt 136 32)(pt 120 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 120 80)(line_width 1))
)
)
(symbol
(rect 128 112 192 160)
(text "AND2" (rect 1 0 24 10)(font "Arial" (font_size 6)))
(text "inst20" (rect 3 37 30 49)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN1" (rect 2 7 18 19)(font "Courier New" (bold))(invisible))
(text "IN1" (rect 2 7 18 19)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 14 16)(line_width 1))
)
(port
(pt 0 32)
(input)
(text "IN2" (rect 2 23 18 35)(font "Courier New" (bold))(invisible))
(text "IN2" (rect 2 23 18 35)(font "Courier New" (bold))(invisible))
(line (pt 0 32)(pt 14 32)(line_width 1))
)
(port
(pt 64 24)
(output)
(text "OUT" (rect 48 15 64 27)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 48 15 64 27)(font "Courier New" (bold))(invisible))
(line (pt 42 24)(pt 64 24)(line_width 1))
)
(drawing
(line (pt 14 12)(pt 30 12)(line_width 1))
(line (pt 14 37)(pt 31 37)(line_width 1))
(line (pt 14 12)(pt 14 37)(line_width 1))
(arc (pt 31 37)(pt 30 12)(rect 18 12 43 37)(line_width 1))
)
)
(symbol
(rect 0 232 48 264)
(text "NOT" (rect 1 0 19 10)(font "Arial" (font_size 6)))
(text "inst21" (rect 3 21 30 33)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 13 16)(line_width 1))
)
(port
(pt 48 16)
(output)
(text "OUT" (rect 32 7 48 19)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 32 7 48 19)(font "Courier New" (bold))(invisible))
(line (pt 39 16)(pt 48 16)(line_width 1))
)
(drawing
(line (pt 13 25)(pt 13 7)(line_width 1))
(line (pt 13 7)(pt 31 16)(line_width 1))
(line (pt 13 25)(pt 31 16)(line_width 1))
(circle (rect 31 12 39 20)(line_width 1))
)
)
(symbol
(rect 504 392 536 424)
(text "GND" (rect 8 16 27 26)(font "Arial" (font_size 6)))
(text "inst17" (rect 3 21 30 33)(font "Arial" )(invisible))
(port
(pt 16 0)
(output)
(text "1" (rect 18 0 23 12)(font "Courier New" (bold))(invisible))
(text "1" (rect 18 0 23 12)(font "Courier New" (bold))(invisible))
(line (pt 16 8)(pt 16 0)(line_width 1))
)
(drawing
(line (pt 8 8)(pt 16 16)(line_width 1))
(line (pt 16 16)(pt 24 8)(line_width 1))
(line (pt 8 8)(pt 24 8)(line_width 1))
)
)
(symbol
(rect 416 136 552 232)
(text "xor_shift_crc16_ccitt" (rect 5 0 118 14)(font "Arial" (font_size 8)))
(text "inst1" (rect 8 80 30 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "a[15..0]" (rect 0 0 39 14)(font "Arial" (font_size 8)))
(text "a[15..0]" (rect 21 27 60 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "new_bit" (rect 0 0 42 14)(font "Arial" (font_size 8)))
(text "new_bit" (rect 21 43 63 57)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 136 32)
(output)
(text "y[15..0]" (rect 0 0 39 14)(font "Arial" (font_size 8)))
(text "y[15..0]" (rect 76 27 115 41)(font "Arial" (font_size 8)))
(line (pt 136 32)(pt 120 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 120 80)(line_width 1))
)
)
(symbol
(rect 592 136 728 232)
(text "xor_shift_crc16_ccitt" (rect 5 0 118 14)(font "Arial" (font_size 8)))
(text "inst2" (rect 8 80 30 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "a[15..0]" (rect 0 0 39 14)(font "Arial" (font_size 8)))
(text "a[15..0]" (rect 21 27 60 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "new_bit" (rect 0 0 42 14)(font "Arial" (font_size 8)))
(text "new_bit" (rect 21 43 63 57)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 136 32)
(output)
(text "y[15..0]" (rect 0 0 39 14)(font "Arial" (font_size 8)))
(text "y[15..0]" (rect 76 27 115 41)(font "Arial" (font_size 8)))
(line (pt 136 32)(pt 120 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 120 80)(line_width 1))
)
)
(symbol
(rect 768 136 904 232)
(text "xor_shift_crc16_ccitt" (rect 5 0 118 14)(font "Arial" (font_size 8)))
(text "inst3" (rect 8 80 30 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "a[15..0]" (rect 0 0 39 14)(font "Arial" (font_size 8)))
(text "a[15..0]" (rect 21 27 60 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "new_bit" (rect 0 0 42 14)(font "Arial" (font_size 8)))
(text "new_bit" (rect 21 43 63 57)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 136 32)
(output)
(text "y[15..0]" (rect 0 0 39 14)(font "Arial" (font_size 8)))
(text "y[15..0]" (rect 76 27 115 41)(font "Arial" (font_size 8)))
(line (pt 136 32)(pt 120 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 120 80)(line_width 1))
)
)
(symbol
(rect 944 136 1080 232)
(text "xor_shift_crc16_ccitt" (rect 5 0 118 14)(font "Arial" (font_size 8)))
(text "inst4" (rect 8 80 30 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "a[15..0]" (rect 0 0 39 14)(font "Arial" (font_size 8)))
(text "a[15..0]" (rect 21 27 60 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "new_bit" (rect 0 0 42 14)(font "Arial" (font_size 8)))
(text "new_bit" (rect 21 43 63 57)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 136 32)
(output)
(text "y[15..0]" (rect 0 0 39 14)(font "Arial" (font_size 8)))
(text "y[15..0]" (rect 76 27 115 41)(font "Arial" (font_size 8)))
(line (pt 136 32)(pt 120 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 120 80)(line_width 1))
)
)
(symbol
(rect 1120 136 1256 232)
(text "xor_shift_crc16_ccitt" (rect 5 0 118 14)(font "Arial" (font_size 8)))
(text "inst5" (rect 8 80 30 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "a[15..0]" (rect 0 0 39 14)(font "Arial" (font_size 8)))
(text "a[15..0]" (rect 21 27 60 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "new_bit" (rect 0 0 42 14)(font "Arial" (font_size 8)))
(text "new_bit" (rect 21 43 63 57)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 136 32)
(output)
(text "y[15..0]" (rect 0 0 39 14)(font "Arial" (font_size 8)))
(text "y[15..0]" (rect 76 27 115 41)(font "Arial" (font_size 8)))
(line (pt 136 32)(pt 120 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 120 80)(line_width 1))
)
)
(symbol
(rect 1296 136 1432 232)
(text "xor_shift_crc16_ccitt" (rect 5 0 118 14)(font "Arial" (font_size 8)))
(text "inst6" (rect 8 80 30 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "a[15..0]" (rect 0 0 39 14)(font "Arial" (font_size 8)))
(text "a[15..0]" (rect 21 27 60 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "new_bit" (rect 0 0 42 14)(font "Arial" (font_size 8)))
(text "new_bit" (rect 21 43 63 57)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 136 32)
(output)
(text "y[15..0]" (rect 0 0 39 14)(font "Arial" (font_size 8)))
(text "y[15..0]" (rect 76 27 115 41)(font "Arial" (font_size 8)))
(line (pt 136 32)(pt 120 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 120 80)(line_width 1))
)
)
(symbol
(rect 1472 136 1608 232)
(text "xor_shift_crc16_ccitt" (rect 5 0 118 14)(font "Arial" (font_size 8)))
(text "inst7" (rect 8 80 30 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "a[15..0]" (rect 0 0 39 14)(font "Arial" (font_size 8)))
(text "a[15..0]" (rect 21 27 60 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "new_bit" (rect 0 0 42 14)(font "Arial" (font_size 8)))
(text "new_bit" (rect 21 43 63 57)(font "Arial" (font_size 8)))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 136 32)
(output)
(text "y[15..0]" (rect 0 0 39 14)(font "Arial" (font_size 8)))
(text "y[15..0]" (rect 76 27 115 41)(font "Arial" (font_size 8)))
(line (pt 136 32)(pt 120 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 120 80)(line_width 1))
)
)
(symbol
(rect 1648 136 1784 232)
(text "xor_shift_crc16_ccitt" (rect 5 0 118 14)(font "Arial" (font_size 8)))
(text "inst8" (rect 8 80 30 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "a[15..0]" (rect 0 0 39 14)(font "Arial" (font_size 8)))
(text "a[15..0]" (rect 21 27 60 41)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -