📄 top1.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-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 -72 56 96 72)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "S_H" (rect 5 0 26 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)))
)
(pin
(input)
(rect -80 184 88 200)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "S_M" (rect 5 0 26 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)))
)
(pin
(input)
(rect -80 264 88 280)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "S_S" (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)))
)
(pin
(input)
(rect -80 296 88 312)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "CLK_5Hz" (rect 5 0 51 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)))
)
(pin
(input)
(rect 288 -24 456 -8)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "CLK1kHz" (rect 5 0 51 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)))
)
(pin
(input)
(rect 560 344 728 360)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "CLK2kHz" (rect 5 0 51 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)))
)
(pin
(output)
(rect 576 272 752 288)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "LED[7..0]" (rect 90 0 137 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))
)
)
(pin
(output)
(rect 576 304 752 320)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "LED_S[2..0]" (rect 90 0 150 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))
)
)
(pin
(output)
(rect 888 480 1064 496)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "sound" (rect 90 0 119 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 152 32 248 128)
(text "t_mux2" (rect 5 0 41 12)(font "Arial" ))
(text "inst" (rect 8 80 25 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "sel" (rect 0 0 14 12)(font "Arial" ))
(text "sel" (rect 21 27 35 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "a" (rect 0 0 5 12)(font "Arial" ))
(text "a" (rect 21 43 26 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "b" (rect 0 0 5 12)(font "Arial" ))
(text "b" (rect 21 59 26 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 96 32)
(output)
(text "q" (rect 0 0 5 12)(font "Arial" ))
(text "q" (rect 70 27 75 39)(font "Arial" ))
(line (pt 96 32)(pt 80 32)(line_width 1))
)
(drawing
(rectangle (rect 16 16 80 80)(line_width 1))
)
)
(symbol
(rect 152 160 248 256)
(text "t_mux2" (rect 5 0 41 12)(font "Arial" ))
(text "inst1" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "sel" (rect 0 0 14 12)(font "Arial" ))
(text "sel" (rect 21 27 35 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "a" (rect 0 0 5 12)(font "Arial" ))
(text "a" (rect 21 43 26 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "b" (rect 0 0 5 12)(font "Arial" ))
(text "b" (rect 21 59 26 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 96 32)
(output)
(text "q" (rect 0 0 5 12)(font "Arial" ))
(text "q" (rect 70 27 75 39)(font "Arial" ))
(line (pt 96 32)(pt 80 32)(line_width 1))
)
(drawing
(rectangle (rect 16 16 80 80)(line_width 1))
)
)
(symbol
(rect 320 32 464 128)
(text "t_count24" (rect 5 0 53 12)(font "Arial" ))
(text "inst2" (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 144 32)
(bidir)
(text "bcd10_out[3..0]" (rect 0 0 76 12)(font "Arial" ))
(text "bcd10_out[3..0]" (rect 47 27 123 39)(font "Arial" ))
(line (pt 144 32)(pt 128 32)(line_width 3))
)
(port
(pt 144 48)
(bidir)
(text "bcd1_out[3..0]" (rect 0 0 70 12)(font "Arial" ))
(text "bcd1_out[3..0]" (rect 53 43 123 55)(font "Arial" ))
(line (pt 144 48)(pt 128 48)(line_width 3))
)
(drawing
(rectangle (rect 16 16 128 80)(line_width 1))
)
)
(symbol
(rect 320 160 456 256)
(text "t_count60" (rect 5 0 53 12)(font "Arial" ))
(text "inst3" (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 "preset" (rect 0 0 30 12)(font "Arial" ))
(text "preset" (rect 21 43 51 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 136 64)
(output)
(text "co" (rect 0 0 11 12)(font "Arial" ))
(text "co" (rect 104 59 115 71)(font "Arial" ))
(line (pt 136 64)(pt 120 64)(line_width 1))
)
(port
(pt 136 32)
(bidir)
(text "bcd10[3..0]" (rect 0 0 55 12)(font "Arial" ))
(text "bcd10[3..0]" (rect 60 27 115 39)(font "Arial" ))
(line (pt 136 32)(pt 120 32)(line_width 3))
)
(port
(pt 136 48)
(bidir)
(text "bcd1[3..0]" (rect 0 0 49 12)(font "Arial" ))
(text "bcd1[3..0]" (rect 66 43 115 55)(font "Arial" ))
(line (pt 136 48)(pt 120 48)(line_width 3))
)
(drawing
(rectangle (rect 16 16 120 80)(line_width 1))
)
)
(symbol
(rect 328 272 464 368)
(text "t_count60" (rect 5 0 53 12)(font "Arial" ))
(text "inst4" (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 "preset" (rect 0 0 30 12)(font "Arial" ))
(text "preset" (rect 21 43 51 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 136 64)
(output)
(text "co" (rect 0 0 11 12)(font "Arial" ))
(text "co" (rect 104 59 115 71)(font "Arial" ))
(line (pt 136 64)(pt 120 64)(line_width 1))
)
(port
(pt 136 32)
(bidir)
(text "bcd10[3..0]" (rect 0 0 55 12)(font "Arial" ))
(text "bcd10[3..0]" (rect 60 27 115 39)(font "Arial" ))
(line (pt 136 32)(pt 120 32)(line_width 3))
)
(port
(pt 136 48)
(bidir)
(text "bcd1[3..0]" (rect 0 0 49 12)(font "Arial" ))
(text "bcd1[3..0]" (rect 66 43 115 55)(font "Arial" ))
(line (pt 136 48)(pt 120 48)(line_width 3))
)
(drawing
(rectangle (rect 16 16 120 80)(line_width 1))
)
)
(symbol
(rect 152 272 248 368)
(text "t_div5" (rect 5 0 35 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 96 32)
(output)
(text "q" (rect 0 0 5 12)(font "Arial" ))
(text "q" (rect 70 27 75 39)(font "Arial" ))
(line (pt 96 32)(pt 80 32)(line_width 1))
)
(drawing
(rectangle (rect 16 16 80 80)(line_width 1))
)
)
(symbol
(rect 576 32 720 256)
(text "display" (rect 5 0 40 12)(font "Arial" ))
(text "inst6" (rect 8 208 31 220)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "din0[3..0]" (rect 0 0 46 12)(font "Arial" ))
(text "din0[3..0]" (rect 21 27 67 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "din1[3..0]" (rect 0 0 46 12)(font "Arial" ))
(text "din1[3..0]" (rect 21 43 67 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "din2[3..0]" (rect 0 0 46 12)(font "Arial" ))
(text "din2[3..0]" (rect 21 59 67 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 0 80)
(input)
(text "din3[3..0]" (rect 0 0 46 12)(font "Arial" ))
(text "din3[3..0]" (rect 21 75 67 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 3))
)
(port
(pt 0 96)
(input)
(text "din4[3..0]" (rect 0 0 46 12)(font "Arial" ))
(text "din4[3..0]" (rect 21 91 67 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96)(line_width 3))
)
(port
(pt 0 112)
(input)
(text "din5[3..0]" (rect 0 0 46 12)(font "Arial" ))
(text "din5[3..0]" (rect 21 107 67 119)(font "Arial" ))
(line (pt 0 112)(pt 16 112)(line_width 3))
)
(port
(pt 0 128)
(input)
(text "CLK" (rect 0 0 21 12)(font "Arial" ))
(text "CLK" (rect 21 123 42 135)(font "Arial" ))
(line (pt 0 128)(pt 16 128)(line_width 1))
)
(port
(pt 144 32)
(output)
(text "LED_SA" (rect 0 0 41 12)(font "Arial" ))
(text "LED_SA" (rect 82 27 123 39)(font "Arial" ))
(line (pt 144 32)(pt 128 32)(line_width 1))
)
(port
(pt 144 48)
(output)
(text "LED_SB" (rect 0 0 41 12)(font "Arial" ))
(text "LED_SB" (rect 82 43 123 55)(font "Arial" ))
(line (pt 144 48)(pt 128 48)(line_width 1))
)
(port
(pt 144 64)
(output)
(text "LED_SC" (rect 0 0 42 12)(font "Arial" ))
(text "LED_SC" (rect 81 59 123 71)(font "Arial" ))
(line (pt 144 64)(pt 128 64)(line_width 1))
)
(port
(pt 144 80)
(output)
(text "LED_A" (rect 0 0 34 12)(font "Arial" ))
(text "LED_A" (rect 89 75 123 87)(font "Arial" ))
(line (pt 144 80)(pt 128 80)(line_width 1))
)
(port
(pt 144 96)
(output)
(text "LED_B" (rect 0 0 34 12)(font "Arial" ))
(text "LED_B" (rect 89 91 123 103)(font "Arial" ))
(line (pt 144 96)(pt 128 96)(line_width 1))
)
(port
(pt 144 112)
(output)
(text "LED_C" (rect 0 0 35 12)(font "Arial" ))
(text "LED_C" (rect 88 107 123 119)(font "Arial" ))
(line (pt 144 112)(pt 128 112)(line_width 1))
)
(port
(pt 144 128)
(output)
(text "LED_D" (rect 0 0 35 12)(font "Arial" ))
(text "LED_D" (rect 88 123 123 135)(font "Arial" ))
(line (pt 144 128)(pt 128 128)(line_width 1))
)
(port
(pt 144 144)
(output)
(text "LED_E" (rect 0 0 34 12)(font "Arial" ))
(text "LED_E" (rect 89 139 123 151)(font "Arial" ))
(line (pt 144 144)(pt 128 144)(line_width 1))
)
(port
(pt 144 160)
(output)
(text "LED_F" (rect 0 0 34 12)(font "Arial" ))
(text "LED_F" (rect 89 155 123 167)(font "Arial" ))
(line (pt 144 160)(pt 128 160)(line_width 1))
)
(port
(pt 144 176)
(output)
(text "LED_G" (rect 0 0 35 12)(font "Arial" ))
(text "LED_G" (rect 88 171 123 183)(font "Arial" ))
(line (pt 144 176)(pt 128 176)(line_width 1))
)
(port
(pt 144 192)
(output)
(text "LED_DP" (rect 0 0 42 12)(font "Arial" ))
(text "LED_DP" (rect 81 187 123 199)(font "Arial" ))
(line (pt 144 192)(pt 128 192)(line_width 1))
)
(drawing
(rectangle (rect 16 16 128 208)(line_width 1))
)
)
(symbol
(rect 272 192 304 208)
(text "VCC" (rect 7 0 27 10)(font "Arial" (font_size 6)))
(text "inst13" (rect 3 5 32 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))
)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -