📄 seg7led.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.
*/
//#pragma file_not_in_maxplusii_format
(header "graphic" (version "1.3"))
(pin
(input)
(rect -64 64 104 80)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "clk" (rect 9 0 23 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 -112 80 -64 96))
)
(pin
(input)
(rect -64 112 104 128)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "reset" (rect 9 0 33 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 -112 128 -64 144))
)
(pin
(input)
(rect -64 208 104 224)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "ir" (rect 9 0 14 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 -112 224 -64 240))
)
(pin
(output)
(rect 632 192 808 208)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "seg_com[3..0]" (rect 90 0 160 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 808 208 856 264))
)
(pin
(output)
(rect 632 176 808 192)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "seg_data[7..0]" (rect 90 0 160 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 808 192 856 304))
)
(pin
(output)
(rect 632 264 808 280)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "led" (rect 90 0 104 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 808 280 856 296))
)
(symbol
(rect 440 152 624 248)
(text "segmain" (rect 5 0 46 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 "datain[15..0]" (rect 0 0 61 12)(font "Arial" ))
(text "datain[15..0]" (rect 21 59 82 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 184 32)
(output)
(text "seg_data[7..0]" (rect 0 0 70 12)(font "Arial" ))
(text "seg_data[7..0]" (rect 93 27 163 39)(font "Arial" ))
(line (pt 184 32)(pt 168 32)(line_width 3))
)
(port
(pt 184 48)
(output)
(text "seg_com[3..0]" (rect 0 0 70 12)(font "Arial" ))
(text "seg_com[3..0]" (rect 93 43 163 55)(font "Arial" ))
(line (pt 184 48)(pt 168 48)(line_width 3))
)
(drawing
(rectangle (rect 16 16 168 80)(line_width 1))
)
)
(symbol
(rect 176 168 312 264)
(text "irrecv" (rect 5 0 33 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 "IrData" (rect 0 0 30 12)(font "Arial" ))
(text "IrData" (rect 21 43 51 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "reset_n" (rect 0 0 36 12)(font "Arial" ))
(text "reset_n" (rect 21 59 57 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 136 32)
(output)
(text "Indicator" (rect 0 0 42 12)(font "Arial" ))
(text "Indicator" (rect 73 27 115 39)(font "Arial" ))
(line (pt 136 32)(pt 120 32)(line_width 1))
)
(port
(pt 136 48)
(output)
(text "led[15..0]" (rect 0 0 46 12)(font "Arial" ))
(text "led[15..0]" (rect 69 43 115 55)(font "Arial" ))
(line (pt 136 48)(pt 120 48)(line_width 3))
)
(parameter
"STARTDOWN"
"B\"000\""
""
)
(parameter
"STARTUP"
"B\"001\""
""
)
(parameter
"NUMDOWN"
"B\"010\""
""
)
(parameter
"NUMUP"
"B\"011\""
""
)
(parameter
"KEYVALUE"
"B\"101\""
""
)
(parameter
"BITJUDGE"
"B\"100\""
""
)
(parameter
"guide_down"
"B\"000\""
""
)
(parameter
"guide_up"
"B\"001\""
""
)
(parameter
"num_down"
"B\"010\""
""
)
(parameter
"num_up"
"B\"011\""
""
)
(parameter
"key"
"B\"101\""
""
)
(parameter
"num_judge"
"B\"100\""
""
)
(drawing
(rectangle (rect 16 16 120 80)(line_width 1))
)
(annotation_block (parameter)(rect 56 168 160 272))
)
(connector
(pt 432 184)
(pt 440 184)
)
(connector
(pt 424 200)
(pt 440 200)
)
(connector
(pt 424 120)
(pt 424 200)
)
(connector
(pt 432 72)
(pt 432 184)
)
(connector
(pt 104 72)
(pt 120 72)
)
(connector
(pt 120 72)
(pt 432 72)
)
(connector
(pt 176 200)
(pt 120 200)
)
(connector
(pt 120 72)
(pt 120 200)
)
(connector
(pt 408 200)
(pt 408 272)
)
(connector
(pt 408 272)
(pt 632 272)
)
(connector
(pt 104 216)
(pt 176 216)
)
(connector
(pt 176 232)
(pt 112 232)
)
(connector
(pt 112 232)
(pt 112 120)
)
(connector
(pt 104 120)
(pt 112 120)
)
(connector
(pt 112 120)
(pt 424 120)
)
(connector
(pt 632 184)
(pt 624 184)
(bus)
)
(connector
(pt 632 200)
(pt 624 200)
(bus)
)
(connector
(pt 312 216)
(pt 440 216)
(bus)
)
(connector
(pt 312 200)
(pt 408 200)
)
(junction (pt 120 72))
(junction (pt 112 120))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -