⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 seg7.bdf

📁 vhdl的很多例子
💻 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 8 176 176 192)
	(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 200 280 288 312))
)
(pin
	(input)
	(rect 232 336 400 352)
	(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 416 440 504 472))
)
(pin
	(output)
	(rect 1080 440 1256 456)
	(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 1536 544 1624 616))
)
(pin
	(output)
	(rect 1304 352 1480 368)
	(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 1760 456 1848 568))
)
(symbol
	(rect 512 200 624 296)
	(text "cont" (rect 5 0 26 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 112 32)
		(output)
		(text "cont[3..0]" (rect 0 0 47 12)(font "Arial" ))
		(text "cont[3..0]" (rect 44 27 91 39)(font "Arial" ))
		(line (pt 112 32)(pt 96 32)(line_width 3))
	)
	(port
		(pt 112 48)
		(output)
		(text "full" (rect 0 0 15 12)(font "Arial" ))
		(text "full" (rect 76 43 91 55)(font "Arial" ))
		(line (pt 112 48)(pt 96 48)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 96 80)(line_width 1))
	)
)
(symbol
	(rect 824 400 1000 528)
	(text "segmain" (rect 5 0 46 12)(font "Arial" ))
	(text "inst2" (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 "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 "flk_en" (rect 0 0 30 12)(font "Arial" ))
		(text "flk_en" (rect 21 59 51 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 1))
	)
	(port
		(pt 0 80)
		(input)
		(text "datain[15..0]" (rect 0 0 61 12)(font "Arial" ))
		(text "datain[15..0]" (rect 21 75 82 87)(font "Arial" ))
		(line (pt 0 80)(pt 16 80)(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 112)(line_width 1))
	)
)
(symbol
	(rect 680 216 792 312)
	(text "cont" (rect 5 0 26 12)(font "Arial" ))
	(text "inst3" (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[3..0]" (rect 0 0 47 12)(font "Arial" ))
		(text "cont[3..0]" (rect 44 27 91 39)(font "Arial" ))
		(line (pt 112 32)(pt 96 32)(line_width 3))
	)
	(port
		(pt 112 48)
		(output)
		(text "full" (rect 0 0 15 12)(font "Arial" ))
		(text "full" (rect 76 43 91 55)(font "Arial" ))
		(line (pt 112 48)(pt 96 48)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 96 80)(line_width 1))
	)
)
(symbol
	(rect 1048 328 1232 424)
	(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 624 448 656 464)
	(text "VCC" (rect 7 0 27 10)(font "Arial" (font_size 6)))
	(text "inst10" (rect 3 5 32 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 416 328 464 360)
	(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 288 152 432 216)
	(text "lpm_counter0" (rect 33 1 125 17)(font "Arial" (font_size 10)))
	(text "inst12" (rect 8 48 37 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[29..0]" (rect 0 0 42 14)(font "Arial" (font_size 8)))
		(text "q[29..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))
	)
)
(symbol
	(rect 528 64 640 160)
	(text "subcountor" (rect 5 0 59 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[3..0]" (rect 0 0 47 12)(font "Arial" ))
		(text "cont[3..0]" (rect 44 27 91 39)(font "Arial" ))
		(line (pt 112 32)(pt 96 32)(line_width 3))
	)
	(port
		(pt 112 48)
		(output)
		(text "full" (rect 0 0 15 12)(font "Arial" ))
		(text "full" (rect 76 43 91 55)(font "Arial" ))
		(line (pt 112 48)(pt 96 48)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 96 80)(line_width 1))
	)
)
(symbol
	(rect 704 80 816 176)
	(text "subcountor" (rect 5 0 59 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 "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[3..0]" (rect 0 0 47 12)(font "Arial" ))
		(text "cont[3..0]" (rect 44 27 91 39)(font "Arial" ))
		(line (pt 112 32)(pt 96 32)(line_width 3))
	)
	(port
		(pt 112 48)
		(output)
		(text "full" (rect 0 0 15 12)(font "Arial" ))
		(text "full" (rect 76 43 91 55)(font "Arial" ))
		(line (pt 112 48)(pt 96 48)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 96 80)(line_width 1))
	)
)
(connector
	(pt 680 264)
	(pt 672 264)
)
(connector
	(text "data[15..0]" (rect 752 464 805 476)(font "Arial" ))
	(pt 752 480)
	(pt 824 480)
	(bus)
)
(connector
	(text "data[7..4]" (rect 800 232 847 244)(font "Arial" ))
	(pt 792 248)
	(pt 808 248)
	(bus)
)
(connector
	(pt 824 448)
	(pt 672 448)
)
(connector
	(pt 824 464)
	(pt 640 464)
)
(connector
	(pt 704 128)
	(pt 696 128)
)
(connector
	(pt 696 128)
	(pt 696 200)
)
(connector
	(pt 872 200)
	(pt 872 344)
)
(connector
	(pt 416 344)
	(pt 400 344)
)
(connector
	(text "q[5]" (rect 776 416 794 428)(font "Arial" ))
	(pt 824 432)
	(pt 768 432)
)
(connector
	(pt 1048 432)
	(pt 1048 360)
	(bus)
)
(connector
	(pt 1000 432)
	(pt 1048 432)
	(bus)
)
(connector
	(pt 1232 360)
	(pt 1304 360)
	(bus)
)
(connector
	(pt 520 112)
	(pt 528 112)
)
(connector
	(pt 520 200)
	(pt 520 112)
)
(connector
	(text "data[11..8]" (rect 664 72 717 84)(font "Arial" ))
	(pt 640 96)
	(pt 648 96)
	(bus)
)
(connector
	(pt 640 112)
	(pt 704 112)
)
(connector
	(text "data[3..0]" (rect 632 216 679 228)(font "Arial" ))
	(pt 624 232)
	(pt 640 232)
	(bus)
)
(connector
	(pt 496 248)
	(pt 512 248)
)
(connector
	(pt 496 344)
	(pt 496 248)
)
(connector
	(pt 624 248)
	(pt 680 248)
)
(connector
	(text "q[29..0]" (rect 440 176 477 188)(font "Arial" ))
	(pt 432 192)
	(pt 464 192)
	(bus)
)
(connector
	(pt 176 184)
	(pt 288 184)
)
(connector
	(text "q[24]" (rect 472 216 496 228)(font "Arial" ))
	(pt 512 232)
	(pt 464 232)
)
(connector
	(text "data[15..12]" (rect 824 96 883 108)(font "Arial" ))
	(pt 816 112)
	(pt 872 112)
	(bus)
)
(connector
	(pt 1000 448)
	(pt 1080 448)
	(bus)
)
(connector
	(text "q[23]" (rect 496 80 520 92)(font "Arial" ))
	(pt 528 96)
	(pt 488 96)
)
(connector
	(pt 520 200)
	(pt 696 200)
)
(connector
	(pt 672 264)
	(pt 672 344)
)
(connector
	(pt 672 344)
	(pt 672 448)
)
(connector
	(pt 464 344)
	(pt 496 344)
)
(connector
	(pt 496 344)
	(pt 672 344)
)
(connector
	(pt 672 344)
	(pt 872 344)
)
(connector
	(pt 696 200)
	(pt 872 200)
)
(junction (pt 696 200))
(junction (pt 496 344))
(junction (pt 672 344))

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -