watch.bdf
来自「VHDL编写的」· BDF 代码 · 共 552 行
BDF
552 行
/*
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-2008 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 from 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.
*/
//#pragma file_not_in_maxplusii_format
(header "graphic" (version "1.3"))
(pin
(input)
(rect 56 128 72 298)
(text "INPUT" (rect 6 7 16 35)(font "Arial" (font_size 6))(vertical))
(text "keyin[3..0]" (rect 4 112 16 165)(font "Arial" )(vertical))
(pt 8 0)
(drawing
(line (pt 4 76)(pt 4 51)(line_width 1))
(line (pt 12 76)(pt 12 51)(line_width 1))
(line (pt 8 47)(pt 8 0)(line_width 1))
(line (pt 4 76)(pt 12 76)(line_width 1))
(line (pt 12 51)(pt 8 47)(line_width 1))
(line (pt 4 51)(pt 8 47)(line_width 1))
)
(flipx_rotate90)
(text "VCC" (rect -1 12 9 32)(font "Arial" (font_size 6))(vertical))
(annotation_block (location)(rect 8 298 56 354))
)
(pin
(input)
(rect 96 -64 264 -48)
(text "INPUT" (rect 7 6 35 16)(font "Arial" (font_size 6)))
(text "clk" (rect 149 4 163 16)(font "Arial" ))
(pt 0 8)
(drawing
(line (pt 76 4)(pt 51 4)(line_width 1))
(line (pt 76 12)(pt 51 12)(line_width 1))
(line (pt 47 8)(pt 0 8)(line_width 1))
(line (pt 76 4)(pt 76 12)(line_width 1))
(line (pt 51 12)(pt 47 8)(line_width 1))
(line (pt 51 4)(pt 47 8)(line_width 1))
)
(rotate180)
(text "VCC" (rect 12 -1 32 9)(font "Arial" (font_size 6)))
(annotation_block (location)(rect 160 -32 208 -16))
)
(pin
(output)
(rect 744 192 760 368)
(text "OUTPUT" (rect 6 1 16 39)(font "Arial" (font_size 6))(vertical))
(text "bcd[3..0]" (rect 5 89 17 132)(font "Arial" )(vertical))
(pt 8 0)
(drawing
(line (pt 8 0)(pt 8 52)(line_width 1))
(line (pt 12 52)(pt 12 78)(line_width 1))
(line (pt 4 52)(pt 4 78)(line_width 1))
(line (pt 4 52)(pt 12 52)(line_width 1))
(line (pt 12 78)(pt 8 82)(line_width 1))
(line (pt 8 82)(pt 4 78)(line_width 1))
(line (pt 4 78)(pt 8 82)(line_width 1))
)
(rotate270)
(annotation_block (location)(rect 760 368 808 424))
)
(pin
(output)
(rect 280 288 296 464)
(text "OUTPUT" (rect 6 1 16 39)(font "Arial" (font_size 6))(vertical))
(text "keyout[3..0]" (rect 4 90 16 150)(font "Arial" )(vertical))
(pt 8 0)
(drawing
(line (pt 8 0)(pt 8 52)(line_width 1))
(line (pt 12 52)(pt 12 78)(line_width 1))
(line (pt 4 52)(pt 4 78)(line_width 1))
(line (pt 4 52)(pt 12 52)(line_width 1))
(line (pt 12 78)(pt 8 82)(line_width 1))
(line (pt 8 82)(pt 4 78)(line_width 1))
(line (pt 4 78)(pt 8 82)(line_width 1))
)
(rotate270)
(annotation_block (location)(rect 296 464 344 520))
)
(pin
(output)
(rect 696 184 712 360)
(text "OUTPUT" (rect 6 1 16 39)(font "Arial" (font_size 6))(vertical))
(text "bcds" (rect 5 89 17 112)(font "Arial" )(vertical))
(pt 8 0)
(drawing
(line (pt 8 0)(pt 8 52)(line_width 1))
(line (pt 12 52)(pt 12 78)(line_width 1))
(line (pt 4 52)(pt 4 78)(line_width 1))
(line (pt 4 52)(pt 12 52)(line_width 1))
(line (pt 12 78)(pt 8 82)(line_width 1))
(line (pt 8 82)(pt 4 78)(line_width 1))
(line (pt 4 78)(pt 8 82)(line_width 1))
)
(rotate270)
(annotation_block (location)(rect 608 472 656 488))
)
(pin
(output)
(rect 800 128 816 304)
(text "OUTPUT" (rect 6 1 16 39)(font "Arial" (font_size 6))(vertical))
(text "lsd[2..0]" (rect 4 90 16 130)(font "Arial" )(vertical))
(pt 8 0)
(drawing
(line (pt 8 0)(pt 8 52)(line_width 1))
(line (pt 12 52)(pt 12 78)(line_width 1))
(line (pt 4 52)(pt 4 78)(line_width 1))
(line (pt 4 52)(pt 12 52)(line_width 1))
(line (pt 12 78)(pt 8 82)(line_width 1))
(line (pt 8 82)(pt 4 78)(line_width 1))
(line (pt 4 78)(pt 8 82)(line_width 1))
)
(rotate270)
(annotation_block (location)(rect 816 304 864 352))
)
(pin
(output)
(rect 584 24 760 40)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "led[2..0]" (rect 90 0 130 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 776 -56 824 -8))
)
(pin
(output)
(rect 280 -72 456 -56)
(text "OUTPUT" (rect 137 6 175 16)(font "Arial" (font_size 6)))
(text "bell" (rect 70 4 86 16)(font "Arial" ))
(pt 176 8)
(drawing
(line (pt 176 8)(pt 124 8)(line_width 1))
(line (pt 124 12)(pt 98 12)(line_width 1))
(line (pt 124 4)(pt 98 4)(line_width 1))
(line (pt 124 4)(pt 124 12)(line_width 1))
(line (pt 98 12)(pt 94 8)(line_width 1))
(line (pt 94 8)(pt 98 4)(line_width 1))
(line (pt 98 4)(pt 94 8)(line_width 1))
)
(rotate180)
(annotation_block (location)(rect 272 -48 320 -32))
)
(symbol
(rect 536 56 688 184)
(text "display" (rect 5 0 40 12)(font "Arial" ))
(text "inst1" (rect 8 112 31 124)(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 "sec10[3..0]" (rect 0 0 55 12)(font "Arial" ))
(text "sec10[3..0]" (rect 21 43 76 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "sec[3..0]" (rect 0 0 43 12)(font "Arial" ))
(text "sec[3..0]" (rect 21 59 64 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 0 80)
(input)
(text "secl[3..0]" (rect 0 0 46 12)(font "Arial" ))
(text "secl[3..0]" (rect 21 75 67 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 3))
)
(port
(pt 152 32)
(output)
(text "lsd[2..0]" (rect 0 0 40 12)(font "Arial" ))
(text "lsd[2..0]" (rect 91 27 131 39)(font "Arial" ))
(line (pt 152 32)(pt 136 32)(line_width 3))
)
(port
(pt 152 48)
(output)
(text "bcd[3..0]" (rect 0 0 43 12)(font "Arial" ))
(text "bcd[3..0]" (rect 88 43 131 55)(font "Arial" ))
(line (pt 152 48)(pt 136 48)(line_width 3))
)
(port
(pt 152 64)
(output)
(text "bcds" (rect 0 0 23 12)(font "Arial" ))
(text "bcds" (rect 108 59 131 71)(font "Arial" ))
(line (pt 152 64)(pt 136 64)(line_width 1))
)
(drawing
(rectangle (rect 16 16 136 112)(line_width 1))
)
)
(symbol
(rect 96 56 264 248)
(text "keyboard" (rect 5 0 51 12)(font "Arial" ))
(text "inst" (rect 8 176 25 188)(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 "keyin[3..0]" (rect 0 0 53 12)(font "Arial" ))
(text "keyin[3..0]" (rect 21 43 74 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 168 32)
(output)
(text "keyout[3..0]" (rect 0 0 60 12)(font "Arial" ))
(text "keyout[3..0]" (rect 87 27 147 39)(font "Arial" ))
(line (pt 168 32)(pt 152 32)(line_width 3))
)
(port
(pt 168 48)
(output)
(text "reset" (rect 0 0 24 12)(font "Arial" ))
(text "reset" (rect 123 43 147 55)(font "Arial" ))
(line (pt 168 48)(pt 152 48)(line_width 1))
)
(port
(pt 168 64)
(output)
(text "cnt" (rect 0 0 15 12)(font "Arial" ))
(text "cnt" (rect 132 59 147 71)(font "Arial" ))
(line (pt 168 64)(pt 152 64)(line_width 1))
)
(port
(pt 168 80)
(output)
(text "updown" (rect 0 0 36 12)(font "Arial" ))
(text "updown" (rect 111 75 147 87)(font "Arial" ))
(line (pt 168 80)(pt 152 80)(line_width 1))
)
(port
(pt 168 96)
(output)
(text "set" (rect 0 0 15 12)(font "Arial" ))
(text "set" (rect 132 91 147 103)(font "Arial" ))
(line (pt 168 96)(pt 152 96)(line_width 1))
)
(port
(pt 168 112)
(output)
(text "set_sec" (rect 0 0 38 12)(font "Arial" ))
(text "set_sec" (rect 109 107 147 119)(font "Arial" ))
(line (pt 168 112)(pt 152 112)(line_width 1))
)
(port
(pt 168 128)
(output)
(text "set_secl" (rect 0 0 41 12)(font "Arial" ))
(text "set_secl" (rect 106 123 147 135)(font "Arial" ))
(line (pt 168 128)(pt 152 128)(line_width 1))
)
(port
(pt 168 144)
(output)
(text "bell_1" (rect 0 0 28 12)(font "Arial" ))
(text "bell_1" (rect 119 139 147 151)(font "Arial" ))
(line (pt 168 144)(pt 152 144)(line_width 1))
)
(drawing
(rectangle (rect 16 16 152 176)(line_width 1))
)
)
(symbol
(rect 344 40 496 232)
(text "ctr" (rect 5 0 17 12)(font "Arial" ))
(text "inst2" (rect 8 176 31 188)(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 "bell_2" (rect 0 0 28 12)(font "Arial" ))
(text "bell_2" (rect 21 43 49 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "reset" (rect 0 0 24 12)(font "Arial" ))
(text "reset" (rect 21 59 45 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 0 80)
(input)
(text "cnt" (rect 0 0 15 12)(font "Arial" ))
(text "cnt" (rect 21 75 36 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 1))
)
(port
(pt 0 96)
(input)
(text "updown" (rect 0 0 36 12)(font "Arial" ))
(text "updown" (rect 21 91 57 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96)(line_width 1))
)
(port
(pt 0 112)
(input)
(text "set" (rect 0 0 15 12)(font "Arial" ))
(text "set" (rect 21 107 36 119)(font "Arial" ))
(line (pt 0 112)(pt 16 112)(line_width 1))
)
(port
(pt 0 128)
(input)
(text "set_sec" (rect 0 0 38 12)(font "Arial" ))
(text "set_sec" (rect 21 123 59 135)(font "Arial" ))
(line (pt 0 128)(pt 16 128)(line_width 1))
)
(port
(pt 0 144)
(input)
(text "set_secl" (rect 0 0 41 12)(font "Arial" ))
(text "set_secl" (rect 21 139 62 151)(font "Arial" ))
(line (pt 0 144)(pt 16 144)(line_width 1))
)
(port
(pt 152 32)
(output)
(text "bell" (rect 0 0 16 12)(font "Arial" ))
(text "bell" (rect 115 27 131 39)(font "Arial" ))
(line (pt 152 32)(pt 136 32)(line_width 1))
)
(port
(pt 152 48)
(output)
(text "led[2..0]" (rect 0 0 40 12)(font "Arial" ))
(text "led[2..0]" (rect 91 43 131 55)(font "Arial" ))
(line (pt 152 48)(pt 136 48)(line_width 3))
)
(port
(pt 152 64)
(output)
(text "sec10[3..0]" (rect 0 0 55 12)(font "Arial" ))
(text "sec10[3..0]" (rect 76 59 131 71)(font "Arial" ))
(line (pt 152 64)(pt 136 64)(line_width 3))
)
(port
(pt 152 80)
(output)
(text "sec[3..0]" (rect 0 0 43 12)(font "Arial" ))
(text "sec[3..0]" (rect 88 75 131 87)(font "Arial" ))
(line (pt 152 80)(pt 136 80)(line_width 3))
)
(port
(pt 152 96)
(output)
(text "secl[3..0]" (rect 0 0 46 12)(font "Arial" ))
(text "secl[3..0]" (rect 85 91 131 103)(font "Arial" ))
(line (pt 152 96)(pt 136 96)(line_width 3))
)
(drawing
(rectangle (rect 16 16 136 176)(line_width 1))
)
)
(connector
(pt 320 72)
(pt 320 8)
)
(connector
(pt 320 72)
(pt 344 72)
)
(connector
(pt 288 88)
(pt 264 88)
(bus)
)
(connector
(pt 288 288)
(pt 288 88)
(bus)
)
(connector
(pt 344 104)
(pt 264 104)
)
(connector
(pt 344 120)
(pt 264 120)
)
(connector
(pt 344 136)
(pt 264 136)
)
(connector
(pt 344 152)
(pt 264 152)
)
(connector
(pt 344 168)
(pt 264 168)
)
(connector
(pt 344 184)
(pt 264 184)
)
(connector
(pt 408 200)
(pt 264 200)
)
(connector
(pt 408 200)
(pt 408 88)
)
(connector
(pt 408 88)
(pt 344 88)
)
(connector
(pt 808 128)
(pt 808 88)
(bus)
)
(connector
(pt 808 88)
(pt 688 88)
(bus)
)
(connector
(pt 536 8)
(pt 536 88)
)
(connector
(pt 96 8)
(pt 320 8)
)
(connector
(pt 320 8)
(pt 536 8)
)
(connector
(pt 704 120)
(pt 704 184)
)
(connector
(pt 688 120)
(pt 704 120)
)
(connector
(pt 688 104)
(pt 752 104)
(bus)
)
(connector
(pt 752 104)
(pt 752 192)
(bus)
)
(connector
(pt 496 136)
(pt 536 136)
(bus)
)
(connector
(pt 496 120)
(pt 536 120)
(bus)
)
(connector
(pt 496 104)
(pt 536 104)
(bus)
)
(connector
(pt 496 88)
(pt 512 88)
(bus)
)
(connector
(pt 512 88)
(pt 512 32)
(bus)
)
(connector
(pt 512 32)
(pt 584 32)
(bus)
)
(connector
(pt 456 -64)
(pt 496 -64)
)
(connector
(pt 496 -64)
(pt 496 72)
)
(connector
(pt 64 104)
(pt 64 128)
(bus)
)
(connector
(pt 96 104)
(pt 64 104)
(bus)
)
(connector
(pt 96 -56)
(pt 96 8)
)
(connector
(pt 96 8)
(pt 96 88)
)
(junction (pt 320 8))
(junction (pt 96 8))
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?