📄 serialport.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-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 256 456 424 472)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "baudrate[3..0]" (rect 5 0 73 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 168 384 256 456))
)
(pin
(input)
(rect 256 152 424 168)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "reset" (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 168 168 256 200))
)
(pin
(input)
(rect 256 592 424 608)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "bitnum[2..0]" (rect 5 0 64 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 168 536 256 592))
)
(pin
(input)
(rect 256 136 424 152)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "clock_24M" (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 168 104 256 136))
)
(pin
(output)
(rect 1128 456 1304 472)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "tx" (rect 90 0 99 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 1216 424 1304 456))
)
(symbol
(rect 872 104 1016 200)
(text "pwm" (rect 5 0 27 12)(font "Arial" ))
(text "inst1" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clock_m" (rect 0 0 41 12)(font "Arial" ))
(text "clock_m" (rect 21 27 62 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "clock" (rect 0 0 25 12)(font "Arial" ))
(text "clock" (rect 21 43 46 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 144 32)
(output)
(text "clock_out" (rect 0 0 47 12)(font "Arial" ))
(text "clock_out" (rect 76 27 123 39)(font "Arial" ))
(line (pt 144 32)(pt 128 32)(line_width 1))
)
(parameter
"pulse_width"
"2"
""
)
(drawing
(rectangle (rect 16 16 128 80)(line_width 1))
)
(annotation_block (parameter)(rect 1016 72 1120 104))
)
(symbol
(rect 872 240 1088 336)
(text "bcd_ascii" (rect 5 0 51 12)(font "Arial" ))
(text "inst2" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "bcd_data[3..0]" (rect 0 0 70 12)(font "Arial" ))
(text "bcd_data[3..0]" (rect 21 27 91 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "reset" (rect 0 0 24 12)(font "Arial" ))
(text "reset" (rect 21 43 45 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 216 32)
(output)
(text "ext_char_data[7..0]" (rect 0 0 95 12)(font "Arial" ))
(text "ext_char_data[7..0]" (rect 100 27 195 39)(font "Arial" ))
(line (pt 216 32)(pt 200 32)(line_width 3))
)
(parameter
"data_width"
"4"
""
)
(drawing
(rectangle (rect 16 16 200 80)(line_width 1))
)
(annotation_block (parameter)(rect 1088 208 1192 240))
)
(symbol
(rect 488 432 688 528)
(text "baud_div" (rect 5 0 49 12)(font "Arial" ))
(text "inst5" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "baudrate[3..0]" (rect 0 0 68 12)(font "Arial" ))
(text "baudrate[3..0]" (rect 21 27 89 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "clock" (rect 0 0 25 12)(font "Arial" ))
(text "clock" (rect 21 43 46 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 200 32)
(bidir)
(text "baudrate_clock" (rect 0 0 74 12)(font "Arial" ))
(text "baudrate_clock" (rect 105 27 179 39)(font "Arial" ))
(line (pt 200 32)(pt 184 32)(line_width 1))
)
(drawing
(rectangle (rect 16 16 184 80)(line_width 1))
)
)
(symbol
(rect 256 616 288 632)
(text "VCC" (rect 7 0 27 10)(font "Arial" (font_size 6)))
(text "inst8" (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 320 616 352 632)
(text "VCC" (rect 7 0 27 10)(font "Arial" (font_size 6)))
(text "inst9" (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 480 240 592 336)
(text "counter" (rect 5 0 41 12)(font "Arial" ))
(text "inst3" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clock" (rect 0 0 25 12)(font "Arial" ))
(text "clock" (rect 21 27 46 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "reset" (rect 0 0 24 12)(font "Arial" ))
(text "reset" (rect 21 43 45 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 112 32)
(bidir)
(text "carrier" (rect 0 0 30 12)(font "Arial" ))
(text "carrier" (rect 61 27 91 39)(font "Arial" ))
(line (pt 112 32)(pt 96 32)(line_width 1))
)
(parameter
"divisor"
"2"
""
)
(drawing
(rectangle (rect 16 16 96 80)(line_width 1))
)
(annotation_block (parameter)(rect 592 208 696 240))
)
(symbol
(rect 968 432 1096 624)
(text "serialport_tx" (rect 5 0 65 12)(font "Arial" ))
(text "inst7" (rect 8 176 31 188)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "data_ready" (rect 0 0 55 12)(font "Arial" ))
(text "data_ready" (rect 21 27 76 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "data[7..0]" (rect 0 0 47 12)(font "Arial" ))
(text "data[7..0]" (rect 21 43 68 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "bitnum[2..0]" (rect 0 0 59 12)(font "Arial" ))
(text "bitnum[2..0]" (rect 21 59 80 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 0 80)
(input)
(text "has_parity" (rect 0 0 51 12)(font "Arial" ))
(text "has_parity" (rect 21 75 72 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 1))
)
(port
(pt 0 96)
(input)
(text "parity_type" (rect 0 0 56 12)(font "Arial" ))
(text "parity_type" (rect 21 91 77 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96)(line_width 1))
)
(port
(pt 0 112)
(input)
(text "stopbits[1..0]" (rect 0 0 64 12)(font "Arial" ))
(text "stopbits[1..0]" (rect 21 107 85 119)(font "Arial" ))
(line (pt 0 112)(pt 16 112)(line_width 3))
)
(port
(pt 0 128)
(input)
(text "clock" (rect 0 0 25 12)(font "Arial" ))
(text "clock" (rect 21 123 46 135)(font "Arial" ))
(line (pt 0 128)(pt 16 128)(line_width 1))
)
(port
(pt 0 144)
(input)
(text "reset" (rect 0 0 24 12)(font "Arial" ))
(text "reset" (rect 21 139 45 151)(font "Arial" ))
(line (pt 0 144)(pt 16 144)(line_width 1))
)
(port
(pt 128 32)
(output)
(text "tx" (rect 0 0 9 12)(font "Arial" ))
(text "tx" (rect 98 27 107 39)(font "Arial" ))
(line (pt 128 32)(pt 112 32)(line_width 1))
)
(drawing
(rectangle (rect 16 16 112 176)(line_width 1))
)
)
(symbol
(rect 480 112 624 208)
(text "counter_out" (rect 5 0 62 12)(font "Arial" ))
(text "inst" (rect 8 80 25 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clock" (rect 0 0 25 12)(font "Arial" ))
(text "clock" (rect 21 27 46 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "reset" (rect 0 0 24 12)(font "Arial" ))
(text "reset" (rect 21 43 45 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 144 32)
(bidir)
(text "counter[3..0]" (rect 0 0 62 12)(font "Arial" ))
(text "counter[3..0]" (rect 61 27 123 39)(font "Arial" ))
(line (pt 144 32)(pt 128 32)(line_width 3))
)
(port
(pt 144 48)
(bidir)
(text "carrier" (rect 0 0 30 12)(font "Arial" ))
(text "carrier" (rect 93 43 123 55)(font "Arial" ))
(line (pt 144 48)(pt 128 48)(line_width 1))
)
(parameter
"divisor"
"24000000"
""
)
(parameter
"unit"
"\"1111\""
""
)
(drawing
(rectangle (rect 16 16 128 80)(line_width 1))
)
(annotation_block (parameter)(rect 624 64 744 112))
)
(connector
(pt 424 464)
(pt 488 464)
(bus)
)
(connector
(pt 832 136)
(pt 872 136)
)
(connector
(pt 640 168)
(pt 840 168)
)
(connector
(pt 840 168)
(pt 840 152)
)
(connector
(pt 840 152)
(pt 872 152)
)
(connector
(pt 1104 272)
(pt 1104 376)
(bus)
)
(connector
(pt 1104 376)
(pt 944 376)
(bus)
)
(connector
(pt 944 376)
(pt 944 480)
(bus)
)
(connector
(pt 944 480)
(pt 968 480)
(bus)
)
(connector
(pt 960 392)
(pt 960 464)
)
(connector
(pt 960 464)
(pt 968 464)
)
(connector
(pt 912 560)
(pt 968 560)
)
(connector
(pt 336 632)
(pt 336 640)
)
(connector
(pt 928 600)
(pt 928 496)
(bus)
)
(connector
(pt 424 600)
(pt 928 600)
(bus)
)
(connector
(pt 928 496)
(pt 968 496)
(bus)
)
(connector
(pt 336 640)
(pt 936 640)
)
(connector
(pt 936 512)
(pt 968 512)
)
(connector
(pt 936 528)
(pt 968 528)
)
(connector
(pt 272 632)
(pt 272 648)
(bus)
)
(connector
(pt 272 648)
(pt 944 648)
(bus)
)
(connector
(pt 944 648)
(pt 944 544)
(bus)
)
(connector
(pt 944 544)
(pt 968 544)
(bus)
)
(connector
(pt 480 272)
(pt 456 272)
)
(connector
(pt 456 272)
(pt 456 408)
)
(connector
(pt 1096 464)
(pt 1128 464)
)
(connector
(pt 480 288)
(pt 472 288)
)
(connector
(pt 488 496)
(pt 472 496)
)
(connector
(pt 856 288)
(pt 872 288)
)
(connector
(pt 872 168)
(pt 856 168)
)
(connector
(pt 1120 392)
(pt 1120 136)
)
(connector
(pt 960 392)
(pt 1120 392)
)
(connector
(pt 472 360)
(pt 856 360)
)
(connector
(pt 472 576)
(pt 968 576)
)
(connector
(pt 640 272)
(pt 592 272)
)
(connector
(pt 936 512)
(pt 936 528)
)
(connector
(pt 936 528)
(pt 936 640)
)
(connector
(pt 424 160)
(pt 472 160)
)
(connector
(pt 472 160)
(pt 480 160)
)
(connector
(pt 472 160)
(pt 472 288)
)
(connector
(pt 472 496)
(pt 472 576)
)
(connector
(pt 856 168)
(pt 856 288)
)
(connector
(pt 856 288)
(pt 856 360)
)
(connector
(pt 472 288)
(pt 472 360)
)
(connector
(pt 472 360)
(pt 472 496)
)
(connector
(pt 1120 136)
(pt 1016 136)
)
(connector
(pt 1088 272)
(pt 1104 272)
(bus)
)
(connector
(pt 440 480)
(pt 440 144)
)
(connector
(pt 440 480)
(pt 488 480)
)
(connector
(pt 424 144)
(pt 440 144)
)
(connector
(pt 440 144)
(pt 480 144)
)
(connector
(pt 640 168)
(pt 640 272)
)
(connector
(pt 624 160)
(pt 832 160)
)
(connector
(pt 832 160)
(pt 832 136)
)
(connector
(pt 624 144)
(pt 792 144)
(bus)
)
(connector
(pt 792 144)
(pt 792 272)
(bus)
)
(connector
(pt 792 272)
(pt 872 272)
(bus)
)
(connector
(pt 704 464)
(pt 704 408)
)
(connector
(pt 456 408)
(pt 704 408)
)
(connector
(pt 912 464)
(pt 912 560)
)
(connector
(pt 688 464)
(pt 704 464)
)
(connector
(pt 704 464)
(pt 912 464)
)
(junction (pt 936 528))
(junction (pt 472 288))
(junction (pt 472 160))
(junction (pt 472 496))
(junction (pt 856 288))
(junction (pt 472 360))
(junction (pt 440 144))
(junction (pt 704 464))
(text "1Hz" (rect 632 144 654 158)(font "Arial" (font_size 8)))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -