📄 uart_top.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-2007 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.
*/
(header "graphic" (version "1.3"))
(pin
(input)
(rect -472 48 -304 64)
(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)))
)
(pin
(input)
(rect -472 216 -304 232)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "RxD" (rect 5 0 27 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 -432 608 -264 624)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "reset_n" (rect 5 0 41 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 -432 568 -264 584)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "send" (rect 5 0 28 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 -480 336 -312 352)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "send_bus[7..0]" (rect 5 0 78 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)))
)
(symbol
(rect -224 24 -96 120)
(text "baudrate_generator" (rect 5 0 99 12)(font "Arial" ))
(text "inst" (rect 8 80 25 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 "reset_n" (rect 0 0 36 12)(font "Arial" ))
(text "reset_n" (rect 21 43 57 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "ce" (rect 0 0 11 12)(font "Arial" ))
(text "ce" (rect 21 59 32 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 128 32)
(output)
(text "bg_out" (rect 0 0 33 12)(font "Arial" ))
(text "bg_out" (rect 74 27 107 39)(font "Arial" ))
(line (pt 128 32)(pt 112 32)(line_width 1))
)
(port
(pt 128 48)
(output)
(text "indicator" (rect 0 0 41 12)(font "Arial" ))
(text "indicator" (rect 66 43 107 55)(font "Arial" ))
(line (pt 128 48)(pt 112 48)(line_width 1))
)
(parameter
"FULL_PULSE_COUNT"
"5208"
""
)
(parameter
"RISE_PULSE_COUNT"
"2604"
""
)
(drawing
(rectangle (rect 16 16 112 80)(line_width 1))
)
(annotation_block (parameter)(rect -224 -24 -80 24))
)
(symbol
(rect 416 232 552 328)
(text "counter" (rect 5 0 41 12)(font "Arial" ))
(text "inst1" (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 "reset_n" (rect 0 0 36 12)(font "Arial" ))
(text "reset_n" (rect 21 43 57 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "ce" (rect 0 0 11 12)(font "Arial" ))
(text "ce" (rect 21 59 32 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 136 32)
(output)
(text "overflow" (rect 0 0 42 12)(font "Arial" ))
(text "overflow" (rect 73 27 115 39)(font "Arial" ))
(line (pt 136 32)(pt 120 32)(line_width 1))
)
(parameter
"MAX_COUNT"
"10"
""
)
(drawing
(rectangle (rect 16 16 120 80)(line_width 1))
)
(annotation_block (parameter)(rect 448 200 552 232))
)
(symbol
(rect -224 160 -88 256)
(text "detector" (rect 5 0 45 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 0 48)
(input)
(text "reset_n" (rect 0 0 36 12)(font "Arial" ))
(text "reset_n" (rect 21 43 57 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "RxD" (rect 0 0 22 12)(font "Arial" ))
(text "RxD" (rect 21 59 43 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 136 32)
(output)
(text "new_data" (rect 0 0 46 12)(font "Arial" ))
(text "new_data" (rect 69 27 115 39)(font "Arial" ))
(line (pt 136 32)(pt 120 32)(line_width 1))
)
(drawing
(rectangle (rect 16 16 120 80)(line_width 1))
)
)
(symbol
(rect 112 312 312 408)
(text "parity_verifier" (rect 5 0 74 12)(font "Arial" ))
(text "inst3" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "source[data_length-1..0]" (rect 0 0 119 12)(font "Arial" ))
(text "source[data_length-1..0]" (rect 21 27 140 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 200 32)
(output)
(text "parity" (rect 0 0 28 12)(font "Arial" ))
(text "parity" (rect 151 27 179 39)(font "Arial" ))
(line (pt 200 32)(pt 184 32)(line_width 1))
)
(parameter
"DATA_LENGTH"
"8"
""
)
(parameter
"PARITY_RULE"
"E\"NONE\""
""
)
(drawing
(rectangle (rect 16 16 184 80)(line_width 1))
)
(annotation_block (parameter)(rect 184 264 312 312))
)
(symbol
(rect 376 24 552 120)
(text "shift_register" (rect 5 0 69 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 "reset_n" (rect 0 0 36 12)(font "Arial" ))
(text "reset_n" (rect 21 43 57 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "din" (rect 0 0 14 12)(font "Arial" ))
(text "din" (rect 21 59 35 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 176 32)
(output)
(text "regs[total_bit-1..0]" (rect 0 0 89 12)(font "Arial" ))
(text "regs[total_bit-1..0]" (rect 66 27 155 39)(font "Arial" ))
(line (pt 176 32)(pt 160 32)(line_width 3))
)
(port
(pt 176 48)
(output)
(text "dout" (rect 0 0 21 12)(font "Arial" ))
(text "dout" (rect 134 43 155 55)(font "Arial" ))
(line (pt 176 48)(pt 160 48)(line_width 1))
)
(parameter
"TOTAL_BIT"
"10"
""
)
(drawing
(rectangle (rect 16 16 160 80)(line_width 1))
)
(annotation_block (parameter)(rect 448 -8 552 24))
)
(symbol
(rect 160 24 256 120)
(text "switch" (rect 5 0 35 12)(font "Arial" ))
(text "inst5" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "din1" (rect 0 0 20 12)(font "Arial" ))
(text "din1" (rect 21 27 41 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "din2" (rect 0 0 20 12)(font "Arial" ))
(text "din2" (rect 21 43 41 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "sel" (rect 0 0 14 12)(font "Arial" ))
(text "sel" (rect 21 59 35 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 96 32)
(output)
(text "dout" (rect 0 0 21 12)(font "Arial" ))
(text "dout" (rect 54 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 -224 312 24 408)
(text "switch_bus" (rect 5 0 59 12)(font "Arial" ))
(text "inst6" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "din1[bus_width-1..0]" (rect 0 0 97 12)(font "Arial" ))
(text "din1[bus_width-1..0]" (rect 21 27 118 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 0 48)
(input)
(text "din2[bus_width-1..0]" (rect 0 0 97 12)(font "Arial" ))
(text "din2[bus_width-1..0]" (rect 21 43 118 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 3))
)
(port
(pt 0 64)
(input)
(text "sel" (rect 0 0 14 12)(font "Arial" ))
(text "sel" (rect 21 59 35 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 248 32)
(output)
(text "dout[bus_width-1..0]" (rect 0 0 99 12)(font "Arial" ))
(text "dout[bus_width-1..0]" (rect 128 27 227 39)(font "Arial" ))
(line (pt 248 32)(pt 232 32)(line_width 3))
)
(parameter
"BUS_WIDTH"
"8"
""
)
(drawing
(rectangle (rect 16 16 232 80)(line_width 1))
)
(annotation_block (parameter)(rect -80 280 24 312))
)
(symbol
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -