adc_test.bdf
来自「这是sd/mmc卡程序的第三部分」· BDF 代码 · 共 305 行
BDF
305 行
/*
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-2006 Altera Corporation
Your use of Altera Corporation's design tools, logic functions
and other software and tools, and its AMPP partner logic
functions, and any output files any of the foregoing
(including device programming or simulation files), and any
associated documentation or information are expressly subject
to the terms and conditions of the Altera Program License
Subscription Agreement, Altera MegaCore Function License
Agreement, or other applicable license agreement, including,
without limitation, that your use is for the sole purpose of
programming logic devices manufactured by Altera and sold by
Altera or its authorized distributors. Please refer to the
applicable agreement for further details.
*/
(header "graphic" (version "1.3"))
(pin
(input)
(rect -8 224 160 240)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "sclk" (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 156 17)(font "Arial" (font_size 6)))
(annotation_block (location)(rect -56 240 0 256))
)
(pin
(input)
(rect -8 240 160 256)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "sdo" (rect 5 0 22 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 156 17)(font "Arial" (font_size 6)))
(annotation_block (location)(rect -64 256 -8 272))
)
(pin
(input)
(rect -8 256 160 272)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "sdofs" (rect 5 0 33 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 156 17)(font "Arial" (font_size 6)))
(annotation_block (location)(rect -64 272 -8 288))
)
(pin
(output)
(rect 480 192 656 208)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "rev_data[15..0]" (rect 90 0 165 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))
)
(annotation_block (location)(rect 656 208 720 432))
)
(pin
(output)
(rect 480 224 656 240)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "se" (rect 90 0 101 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))
)
(annotation_block (location)(rect 656 240 712 256))
)
(pin
(output)
(rect 480 240 656 256)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "sdi" (rect 90 0 104 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))
)
(annotation_block (location)(rect 656 256 712 272))
)
(symbol
(rect 16 96 48 112)
(text "VCC" (rect 7 0 27 10)(font "Arial" (font_size 6)))
(text "inst1" (rect 3 5 26 17)(font "Arial" )(invisible))
(port
(pt 16 16)
(output)
(text "1" (rect 19 7 24 19)(font "Courier New" (bold))(invisible))
(text "1" (rect 19 7 24 19)(font "Courier New" (bold))(invisible))
(line (pt 16 16)(pt 16 8)(line_width 1))
)
(drawing
(line (pt 8 8)(pt 24 8)(line_width 1))
)
)
(symbol
(rect 248 168 424 296)
(text "adc_base" (rect 5 0 52 12)(font "Arial" ))
(text "inst" (rect 8 112 25 124)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "ad_enable" (rect 0 0 49 12)(font "Arial" ))
(text "ad_enable" (rect 21 27 70 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "reset1_n" (rect 0 0 42 12)(font "Arial" ))
(text "reset1_n" (rect 21 43 63 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "sclk" (rect 0 0 20 12)(font "Arial" ))
(text "sclk" (rect 21 59 41 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 0 80)
(input)
(text "sdo" (rect 0 0 17 12)(font "Arial" ))
(text "sdo" (rect 21 75 38 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 1))
)
(port
(pt 0 96)
(input)
(text "sdofs" (rect 0 0 28 12)(font "Arial" ))
(text "sdofs" (rect 21 91 49 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96)(line_width 1))
)
(port
(pt 176 32)
(output)
(text "rev_data[15..0]" (rect 0 0 75 12)(font "Arial" ))
(text "rev_data[15..0]" (rect 80 27 155 39)(font "Arial" ))
(line (pt 176 32)(pt 160 32)(line_width 3))
)
(port
(pt 176 48)
(output)
(text "reset2_n" (rect 0 0 42 12)(font "Arial" ))
(text "reset2_n" (rect 113 43 155 55)(font "Arial" ))
(line (pt 176 48)(pt 160 48)(line_width 1))
)
(port
(pt 176 64)
(output)
(text "se" (rect 0 0 11 12)(font "Arial" ))
(text "se" (rect 144 59 155 71)(font "Arial" ))
(line (pt 176 64)(pt 160 64)(line_width 1))
)
(port
(pt 176 80)
(output)
(text "sdi" (rect 0 0 14 12)(font "Arial" ))
(text "sdi" (rect 141 75 155 87)(font "Arial" ))
(line (pt 176 80)(pt 160 80)(line_width 1))
)
(port
(pt 176 96)
(output)
(text "data_ready" (rect 0 0 55 12)(font "Arial" ))
(text "data_ready" (rect 100 91 155 103)(font "Arial" ))
(line (pt 176 96)(pt 160 96)(line_width 1))
)
(parameter
"all_data"
"B\"1000000100000011100000100000000110000011000010001000010000000000100001010000000010000110100000011000011100000000100000000000000101111111111111111111111111111111\""
""
)
(parameter
"idle"
"B\"00\""
""
)
(parameter
"spi_shift0"
"B\"01\""
""
)
(parameter
"spi_shift1"
"B\"10\""
""
)
(parameter
"spi_shift_comp"
"B\"11\""
""
)
(parameter
"ready"
"B\"00\""
""
)
(parameter
"spi_shift2"
"B\"01\""
""
)
(parameter
"spi_shift3"
"B\"10\""
""
)
(parameter
"spi_shift_fini"
"B\"11\""
""
)
(drawing
(rectangle (rect 16 16 160 112)(line_width 1))
)
(annotation_block (parameter)(rect 424 24 1480 168))
)
(connector
(pt 32 200)
(pt 248 200)
)
(connector
(pt 32 216)
(pt 248 216)
)
(connector
(pt 32 112)
(pt 32 200)
)
(connector
(pt 32 200)
(pt 32 216)
)
(connector
(pt 248 232)
(pt 160 232)
)
(connector
(pt 248 248)
(pt 160 248)
)
(connector
(pt 248 264)
(pt 160 264)
)
(connector
(pt 424 200)
(pt 480 200)
(bus)
)
(connector
(pt 424 232)
(pt 480 232)
)
(connector
(pt 424 248)
(pt 480 248)
)
(junction (pt 32 200))
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?