📄 verilog_seg7.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-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 288 48 456 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)))
(annotation_block (location)(rect 536 184 624 216))
)
(pin
(input)
(rect -48 224 120 240)
(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 200 360 288 392))
)
(pin
(output)
(rect 568 352 744 368)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "ledcom[3..0]" (rect 90 0 151 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 1080 488 1168 560))
)
(pin
(output)
(rect 728 264 904 280)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "seg7[6..0]" (rect 90 0 139 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 1240 400 1328 512))
)
(symbol
(rect 528 240 712 336)
(text "bin27seg" (rect 5 0 48 12)(font "Arial" ))
(text "inst6" (rect 8 80 31 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "data_in[3..0]" (rect 0 0 61 12)(font "Arial" ))
(text "data_in[3..0]" (rect 21 27 82 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 3))
)
(port
(pt 184 32)
(output)
(text "data_out[6..0]" (rect 0 0 68 12)(font "Arial" ))
(text "data_out[6..0]" (rect 95 27 163 39)(font "Arial" ))
(line (pt 184 32)(pt 168 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 168 80)(line_width 1))
)
)
(symbol
(rect 144 216 192 248)
(text "NOT" (rect 1 0 21 10)(font "Arial" (font_size 6)))
(text "inst7" (rect 3 21 26 33)(font "Arial" ))
(port
(pt 0 16)
(input)
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
(line (pt 0 16)(pt 13 16)(line_width 1))
)
(port
(pt 48 16)
(output)
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
(line (pt 39 16)(pt 48 16)(line_width 1))
)
(drawing
(line (pt 13 25)(pt 13 7)(line_width 1))
(line (pt 13 7)(pt 31 16)(line_width 1))
(line (pt 13 25)(pt 31 16)(line_width 1))
(circle (rect 31 12 39 20)(line_width 1))
)
)
(symbol
(rect 592 112 704 208)
(text "addcont" (rect 5 0 43 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 "rst" (rect 0 0 12 12)(font "Arial" ))
(text "rst" (rect 21 43 33 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 112 32)
(output)
(text "cont[7..0]" (rect 0 0 47 12)(font "Arial" ))
(text "cont[7..0]" (rect 44 27 91 39)(font "Arial" ))
(line (pt 112 32)(pt 96 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 96 80)(line_width 1))
)
)
(symbol
(rect 360 112 472 208)
(text "subcont" (rect 5 0 43 12)(font "Arial" ))
(text "inst5" (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 "rst" (rect 0 0 12 12)(font "Arial" ))
(text "rst" (rect 21 43 33 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 112 32)
(output)
(text "cont[7..0]" (rect 0 0 47 12)(font "Arial" ))
(text "cont[7..0]" (rect 44 27 91 39)(font "Arial" ))
(line (pt 112 32)(pt 96 32)(line_width 3))
)
(drawing
(rectangle (rect 16 16 96 80)(line_width 1))
)
)
(symbol
(rect 320 240 496 336)
(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 "rst" (rect 0 0 12 12)(font "Arial" ))
(text "rst" (rect 21 43 33 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 176 32)
(output)
(text "dataout[3..0]" (rect 0 0 62 12)(font "Arial" ))
(text "dataout[3..0]" (rect 93 27 155 39)(font "Arial" ))
(line (pt 176 32)(pt 160 32)(line_width 3))
)
(port
(pt 176 48)
(output)
(text "ledcom[3..0]" (rect 0 0 61 12)(font "Arial" ))
(text "ledcom[3..0]" (rect 94 43 155 55)(font "Arial" ))
(line (pt 176 48)(pt 160 48)(line_width 3))
)
(drawing
(rectangle (rect 16 16 160 80)(line_width 1))
)
)
(symbol
(rect 464 24 608 88)
(text "lpm_counter0" (rect 33 1 125 17)(font "Arial" (font_size 10)))
(text "inst4" (rect 8 48 31 60)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clock" (rect 0 0 29 14)(font "Arial" (font_size 8)))
(text "clock" (rect 26 26 55 40)(font "Arial" (font_size 8)))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 144 40)
(output)
(text "q[25..0]" (rect 0 0 42 14)(font "Arial" (font_size 8)))
(text "q[25..0]" (rect 89 34 131 48)(font "Arial" (font_size 8)))
(line (pt 144 40)(pt 128 40)(line_width 3))
)
(drawing
(text "up counter" (rect 84 17 135 29)(font "Arial" ))
(line (pt 16 16)(pt 128 16)(line_width 1))
(line (pt 128 16)(pt 128 48)(line_width 1))
(line (pt 128 48)(pt 16 48)(line_width 1))
(line (pt 16 48)(pt 16 16)(line_width 1))
(line (pt 16 26)(pt 22 32)(line_width 1))
(line (pt 22 32)(pt 16 38)(line_width 1))
)
)
(connector
(text "q[5]" (rect 272 256 290 268)(font "Arial" ))
(pt 320 272)
(pt 264 272)
)
(connector
(pt 496 288)
(pt 496 360)
(bus)
)
(connector
(pt 568 360)
(pt 496 360)
(bus)
)
(connector
(pt 496 272)
(pt 528 272)
(bus)
)
(connector
(pt 712 272)
(pt 728 272)
(bus)
)
(connector
(text "data[15..0]" (rect 248 288 301 300)(font "Arial" ))
(pt 248 304)
(pt 320 304)
(bus)
)
(connector
(text "q[23]" (rect 560 128 584 140)(font "Arial" ))
(pt 592 144)
(pt 552 144)
)
(connector
(pt 544 160)
(pt 592 160)
)
(connector
(text "q[24]" (rect 320 128 344 140)(font "Arial" ))
(pt 360 144)
(pt 312 144)
)
(connector
(pt 360 160)
(pt 328 160)
)
(connector
(pt 464 56)
(pt 456 56)
)
(connector
(text "data[7..0]" (rect 480 128 527 140)(font "Arial" ))
(pt 472 144)
(pt 512 144)
(bus)
)
(connector
(text "data[15..8]" (rect 712 128 765 140)(font "Arial" ))
(pt 704 144)
(pt 744 144)
(bus)
)
(connector
(text "q[25..0]" (rect 616 48 653 60)(font "Arial" ))
(pt 608 64)
(pt 648 64)
(bus)
)
(connector
(pt 544 160)
(pt 544 216)
)
(connector
(pt 328 160)
(pt 328 216)
)
(connector
(pt 320 288)
(pt 216 288)
)
(connector
(pt 192 232)
(pt 216 232)
)
(connector
(pt 144 232)
(pt 120 232)
)
(connector
(pt 216 216)
(pt 216 232)
)
(connector
(pt 216 232)
(pt 216 288)
)
(connector
(pt 216 216)
(pt 328 216)
)
(connector
(pt 328 216)
(pt 544 216)
)
(junction (pt 216 232))
(junction (pt 328 216))
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -