clkscan1.bdf
来自「采用Quartus2编写的数码管扫描显示电路 共有三个电路 电路1:当按下启」· BDF 代码 · 共 413 行
BDF
413 行
/*
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-2005 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 80 120 248 136)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "clk" (rect 5 0 19 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 -8 136 80 168))
)
(pin
(input)
(rect 40 248 208 264)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "startn" (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 -56 264 32 296))
)
(pin
(input)
(rect 40 376 208 392)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "resetn" (rect 5 0 35 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 392 32 424))
)
(pin
(output)
(rect 944 136 1120 152)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "out[7..0]" (rect 90 0 131 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 1120 152 1208 280))
)
(pin
(output)
(rect 776 56 952 72)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "scan_en[8..1]" (rect 90 0 157 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 952 72 1040 200))
)
(pin
(output)
(rect 752 240 928 256)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "scan_data[3..0]" (rect 90 0 166 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 296 224 408 320)
(text "button" (rect 5 0 35 12)(font "Arial" ))
(text "inst3" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "pbn" (rect 0 0 17 12)(font "Arial" ))
(text "pbn" (rect 21 27 38 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "clk" (rect 0 0 14 12)(font "Arial" ))
(text "clk" (rect 21 43 35 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 112 32)
(output)
(text "signal" (rect 0 0 28 12)(font "Arial" ))
(text "signal" (rect 63 27 91 39)(font "Arial" ))
(line (pt 112 32)(pt 96 32)(line_width 1))
)
(port
(pt 112 48)
(output)
(text "enable" (rect 0 0 31 12)(font "Arial" ))
(text "enable" (rect 60 43 91 55)(font "Arial" ))
(line (pt 112 48)(pt 96 48)(line_width 1))
)
(port
(pt 112 64)
(output)
(text "cnt[6..0]" (rect 0 0 41 12)(font "Arial" ))
(text "cnt[6..0]" (rect 50 59 91 71)(font "Arial" ))
(line (pt 112 64)(pt 96 64)(line_width 3))
)
(drawing
(rectangle (rect 16 16 96 80)(line_width 1))
)
)
(symbol
(rect 296 352 408 448)
(text "button" (rect 5 0 35 12)(font "Arial" ))
(text "inst4" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "pbn" (rect 0 0 17 12)(font "Arial" ))
(text "pbn" (rect 21 27 38 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "clk" (rect 0 0 14 12)(font "Arial" ))
(text "clk" (rect 21 43 35 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 112 32)
(output)
(text "signal" (rect 0 0 28 12)(font "Arial" ))
(text "signal" (rect 63 27 91 39)(font "Arial" ))
(line (pt 112 32)(pt 96 32)(line_width 1))
)
(port
(pt 112 48)
(output)
(text "enable" (rect 0 0 31 12)(font "Arial" ))
(text "enable" (rect 60 43 91 55)(font "Arial" ))
(line (pt 112 48)(pt 96 48)(line_width 1))
)
(port
(pt 112 64)
(output)
(text "cnt[6..0]" (rect 0 0 41 12)(font "Arial" ))
(text "cnt[6..0]" (rect 50 59 91 71)(font "Arial" ))
(line (pt 112 64)(pt 96 64)(line_width 3))
)
(drawing
(rectangle (rect 16 16 96 80)(line_width 1))
)
)
(symbol
(rect 288 96 408 192)
(text "clkdiv" (rect 5 0 34 12)(font "Arial" ))
(text "inst" (rect 8 80 25 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clkin" (rect 0 0 22 12)(font "Arial" ))
(text "clkin" (rect 21 27 43 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 120 32)
(output)
(text "clk_4Hz" (rect 0 0 38 12)(font "Arial" ))
(text "clk_4Hz" (rect 61 27 99 39)(font "Arial" ))
(line (pt 120 32)(pt 104 32)(line_width 1))
)
(port
(pt 120 48)
(output)
(text "clk_1KHz" (rect 0 0 46 12)(font "Arial" ))
(text "clk_1KHz" (rect 53 43 99 55)(font "Arial" ))
(line (pt 120 48)(pt 104 48)(line_width 1))
)
(drawing
(rectangle (rect 16 16 104 80)(line_width 1))
)
)
(symbol
(rect 760 112 912 208)
(text "p7segment" (rect 5 0 59 12)(font "Arial" ))
(text "inst6" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "datain[3..0]" (rect 0 0 55 12)(font "Arial" ))
(text "datain[3..0]" (rect 21 27 76 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 152 32)
(output)
(text "out[7..0]" (rect 0 0 41 12)(font "Arial" ))
(text "out[7..0]" (rect 90 27 131 39)(font "Arial" ))
(line (pt 152 32)(pt 136 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 136 80)(line_width 1))
)
)
(symbol
(rect 512 96 672 192)
(text "clkscan" (rect 5 0 42 12)(font "Arial" ))
(text "inst5" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clk" (rect 0 0 14 12)(font "Arial" ))
(text "clk" (rect 21 27 35 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "startn" (rect 0 0 28 12)(font "Arial" ))
(text "startn" (rect 21 43 49 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "resetn" (rect 0 0 30 12)(font "Arial" ))
(text "resetn" (rect 21 59 51 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 160 32)
(output)
(text "scan_en[8..1]" (rect 0 0 67 12)(font "Arial" ))
(text "scan_en[8..1]" (rect 72 27 139 39)(font "Arial" ))
(line (pt 160 32)(pt 144 32)(line_width 3))
)
(port
(pt 160 48)
(output)
(text "scan_data[3..0]" (rect 0 0 76 12)(font "Arial" ))
(text "scan_data[3..0]" (rect 63 43 139 55)(font "Arial" ))
(line (pt 160 48)(pt 144 48)(line_width 3))
)
(drawing
(rectangle (rect 16 16 144 80)(line_width 1))
)
)
(connector
(pt 248 128)
(pt 288 128)
)
(connector
(pt 408 128)
(pt 512 128)
)
(connector
(pt 408 144)
(pt 432 144)
)
(connector
(pt 432 144)
(pt 432 208)
)
(connector
(pt 264 208)
(pt 432 208)
)
(connector
(pt 264 400)
(pt 296 400)
)
(connector
(pt 296 272)
(pt 264 272)
)
(connector
(pt 264 208)
(pt 264 272)
)
(connector
(pt 264 272)
(pt 264 400)
)
(connector
(pt 408 256)
(pt 472 256)
)
(connector
(pt 472 256)
(pt 472 144)
)
(connector
(pt 472 144)
(pt 512 144)
)
(connector
(pt 512 160)
(pt 488 160)
)
(connector
(pt 488 160)
(pt 488 384)
)
(connector
(pt 488 384)
(pt 408 384)
)
(connector
(pt 208 256)
(pt 296 256)
)
(connector
(pt 208 384)
(pt 296 384)
)
(connector
(pt 720 64)
(pt 776 64)
(bus)
)
(connector
(pt 672 128)
(pt 720 128)
(bus)
)
(connector
(pt 720 64)
(pt 720 128)
(bus)
)
(connector
(pt 912 144)
(pt 944 144)
(bus)
)
(connector
(pt 712 144)
(pt 712 248)
(bus)
)
(connector
(pt 712 248)
(pt 752 248)
(bus)
)
(connector
(pt 672 144)
(pt 712 144)
(bus)
)
(connector
(pt 712 144)
(pt 760 144)
(bus)
)
(junction (pt 264 272))
(junction (pt 712 144))
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?