uart_test.bdf
来自「quatus II 环境下vhdl实现RS232功能」· BDF 代码 · 共 567 行
BDF
567 行
/*
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 32 136 200 152)
(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 -16 152 32 168))
)
(pin
(input)
(rect 32 152 200 168)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "rst_n" (rect 5 0 29 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 -16 168 32 184))
)
(pin
(input)
(rect 32 168 200 184)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "sel[2..0]" (rect 5 0 45 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 -16 184 32 232))
)
(pin
(input)
(rect 32 184 200 200)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "rxd" (rect 5 0 20 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 -16 200 32 216))
)
(pin
(input)
(rect 32 200 200 216)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "txd_startH" (rect 5 0 56 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 -16 216 32 232))
)
(pin
(output)
(rect 544 136 720 152)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "rxd_readyH" (rect 90 0 147 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 720 152 760 168))
)
(pin
(output)
(rect 544 168 720 184)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "txd_doneH" (rect 90 0 143 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 720 184 760 200))
)
(pin
(output)
(rect 544 184 720 200)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "txd" (rect 90 0 105 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 720 200 768 216))
)
(pin
(output)
(rect 520 384 717 400)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "seven_seg[7..0]" (rect 90 0 170 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 717 400 765 512))
)
(pin
(output)
(rect 520 400 696 416)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "dig4" (rect 90 0 110 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 696 416 744 432))
)
(pin
(output)
(rect 520 416 696 432)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "dig3" (rect 90 0 110 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 696 432 744 448))
)
(pin
(output)
(rect 520 432 697 448)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "dig2" (rect 90 0 110 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 697 448 745 464))
)
(pin
(output)
(rect 520 448 697 464)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "dig1" (rect 90 0 110 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 697 464 745 480))
)
(symbol
(rect 288 112 496 256)
(text "uart" (rect 5 0 23 12)(font "Arial" ))
(text "inst" (rect 5 127 22 139)(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 "rst_n" (rect 0 0 24 12)(font "Arial" ))
(text "rst_n" (rect 21 43 45 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "sel[2..0]" (rect 0 0 40 12)(font "Arial" ))
(text "sel[2..0]" (rect 21 59 61 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 0 80)
(input)
(text "rxd" (rect 0 0 15 12)(font "Arial" ))
(text "rxd" (rect 21 75 36 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 1))
)
(port
(pt 0 96)
(input)
(text "txd_startH" (rect 0 0 51 12)(font "Arial" ))
(text "txd_startH" (rect 21 91 72 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96)(line_width 1))
)
(port
(pt 0 112)
(input)
(text "DBUS[7..0]" (rect 0 0 56 12)(font "Arial" ))
(text "DBUS[7..0]" (rect 21 107 77 119)(font "Arial" ))
(line (pt 0 112)(pt 16 112)(line_width 3))
)
(port
(pt 208 32)
(output)
(text "rxd_readyH" (rect 0 0 57 12)(font "Arial" ))
(text "rxd_readyH" (rect 114 27 171 39)(font "Arial" ))
(line (pt 208 32)(pt 192 32)(line_width 1))
)
(port
(pt 208 48)
(output)
(text "rxd_data[7..0]" (rect 0 0 68 12)(font "Arial" ))
(text "rxd_data[7..0]" (rect 101 43 169 55)(font "Arial" ))
(line (pt 208 48)(pt 192 48)(line_width 3))
)
(port
(pt 208 64)
(output)
(text "txd_doneH" (rect 0 0 53 12)(font "Arial" ))
(text "txd_doneH" (rect 118 59 171 71)(font "Arial" ))
(line (pt 208 64)(pt 192 64)(line_width 1))
)
(port
(pt 208 80)
(output)
(text "txd" (rect 0 0 15 12)(font "Arial" ))
(text "txd" (rect 170 75 185 87)(font "Arial" ))
(line (pt 208 80)(pt 192 80)(line_width 1))
)
(drawing
(rectangle (rect 16 16 192 125)(line_width 1))
)
)
(symbol
(rect 336 280 456 344)
(text "clk_div" (rect 5 0 40 12)(font "Arial" ))
(text "inst1" (rect 6 51 29 63)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clk_in" (rect 0 0 28 12)(font "Arial" ))
(text "clk_in" (rect 21 27 49 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 120 32)
(output)
(text "clk_out1" (rect 0 0 41 12)(font "Arial" ))
(text "clk_out1" (rect 58 27 99 39)(font "Arial" ))
(line (pt 120 32)(pt 104 32)(line_width 1))
)
(drawing
(rectangle (rect 16 16 104 48)(line_width 1))
)
)
(symbol
(rect 296 360 496 488)
(text "scan" (rect 5 0 28 12)(font "Arial" ))
(text "inst6" (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 "clk_scan" (rect 0 0 43 12)(font "Arial" ))
(text "clk_scan" (rect 21 43 64 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "rst" (rect 0 0 12 12)(font "Arial" ))
(text "rst" (rect 21 59 33 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 0 80)
(input)
(text "rxd_readyH" (rect 0 0 57 12)(font "Arial" ))
(text "rxd_readyH" (rect 21 75 78 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 1))
)
(port
(pt 0 96)
(input)
(text "rxd_data[7..0]" (rect 0 0 68 12)(font "Arial" ))
(text "rxd_data[7..0]" (rect 21 91 89 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96)(line_width 3))
)
(port
(pt 200 32)
(output)
(text "seven_seg[7..0]" (rect 0 0 80 12)(font "Arial" ))
(text "seven_seg[7..0]" (rect 99 27 179 39)(font "Arial" ))
(line (pt 200 32)(pt 184 32)(line_width 3))
)
(port
(pt 200 48)
(output)
(text "com_mten" (rect 0 0 51 12)(font "Arial" ))
(text "com_mten" (rect 128 43 179 55)(font "Arial" ))
(line (pt 200 48)(pt 184 48)(line_width 1))
)
(port
(pt 200 64)
(output)
(text "com_mone" (rect 0 0 54 12)(font "Arial" ))
(text "com_mone" (rect 125 59 179 71)(font "Arial" ))
(line (pt 200 64)(pt 184 64)(line_width 1))
)
(port
(pt 200 80)
(output)
(text "com_sten" (rect 0 0 48 12)(font "Arial" ))
(text "com_sten" (rect 131 75 179 87)(font "Arial" ))
(line (pt 200 80)(pt 184 80)(line_width 1))
)
(port
(pt 200 96)
(output)
(text "com_sone" (rect 0 0 50 12)(font "Arial" ))
(text "com_sone" (rect 129 91 179 103)(font "Arial" ))
(line (pt 200 96)(pt 184 96)(line_width 1))
)
(drawing
(rectangle (rect 16 16 184 112)(line_width 1))
)
)
(connector
(pt 200 176)
(pt 288 176)
(bus)
)
(connector
(pt 200 192)
(pt 288 192)
)
(connector
(pt 200 208)
(pt 288 208)
)
(connector
(pt 288 224)
(pt 272 224)
(bus)
)
(connector
(pt 496 160)
(pt 512 160)
(bus)
)
(connector
(pt 272 224)
(pt 272 272)
(bus)
)
(connector
(text "DATA[7..0]" (rect 362 256 416 268)(font "Arial" ))
(pt 512 272)
(pt 272 272)
(bus)
)
(connector
(pt 512 160)
(pt 512 272)
(bus)
)
(connector
(pt 200 144)
(pt 248 144)
)
(connector
(pt 248 144)
(pt 288 144)
)
(connector
(pt 248 312)
(pt 336 312)
)
(connector
(pt 264 352)
(pt 512 352)
)
(connector
(pt 512 312)
(pt 512 352)
)
(connector
(pt 456 312)
(pt 512 312)
)
(connector
(pt 496 144)
(pt 544 144)
)
(connector
(pt 496 176)
(pt 544 176)
)
(connector
(pt 496 192)
(pt 544 192)
)
(connector
(pt 232 160)
(pt 232 424)
)
(connector
(pt 264 352)
(pt 264 408)
)
(connector
(pt 200 160)
(pt 232 160)
)
(connector
(pt 232 160)
(pt 288 160)
)
(connector
(pt 248 144)
(pt 248 312)
)
(connector
(pt 248 312)
(pt 248 392)
)
(connector
(pt 248 392)
(pt 296 392)
)
(connector
(pt 264 408)
(pt 296 408)
)
(connector
(pt 232 424)
(pt 296 424)
)
(connector
(text "rxd_readyH" (rect 184 424 241 436)(font "Arial" ))
(pt 176 440)
(pt 296 440)
)
(connector
(text "DATA[7..0]" (rect 184 440 238 452)(font "Arial" ))
(pt 176 456)
(pt 296 456)
(bus)
)
(connector
(pt 496 392)
(pt 520 392)
(bus)
)
(connector
(pt 496 408)
(pt 520 408)
)
(connector
(pt 496 424)
(pt 520 424)
)
(connector
(pt 496 440)
(pt 520 440)
)
(connector
(pt 496 456)
(pt 520 456)
)
(junction (pt 248 144))
(junction (pt 232 160))
(junction (pt 248 312))
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?