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

📄 digital6counter.bdf

📁 VHDL基础的编程源代码
💻 BDF
📖 第 1 页 / 共 2 页
字号:
/*
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-2004 Altera Corporation
Any  megafunction  design,  and related netlist (encrypted  or  decrypted),
support information,  device programming or simulation file,  and any other
associated  documentation or information  provided by  Altera  or a partner
under  Altera's   Megafunction   Partnership   Program  may  be  used  only
to program  PLD  devices (but not masked  PLD  devices) from  Altera.   Any
other  use  of such  megafunction  design,  netlist,  support  information,
device programming or simulation file,  or any other  related documentation
or information  is prohibited  for  any  other purpose,  including, but not
limited to  modification,  reverse engineering,  de-compiling, or use  with
any other  silicon devices,  unless such use is  explicitly  licensed under
a separate agreement with  Altera  or a megafunction partner.  Title to the
intellectual property,  including patents,  copyrights,  trademarks,  trade
secrets,  or maskworks,  embodied in any such megafunction design, netlist,
support  information,  device programming or simulation file,  or any other
related documentation or information provided by  Altera  or a megafunction
partner, remains with Altera, the megafunction partner, or their respective
licensors. No other licenses, including any licenses needed under any third
party's intellectual property, are provided herein.
*/
(header "graphic" (version "1.3"))
(pin
	(input)
	(rect -8 64 160 80)
	(text "INPUT" (rect 133 0 161 9)(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 -96 80 -8 112))
)
(pin
	(input)
	(rect -8 48 160 64)
	(text "INPUT" (rect 133 0 161 9)(font "Arial" (font_size 6)))
	(text "clock" (rect 5 0 30 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 -96 16 -8 48))
)
(pin
	(output)
	(rect 1208 296 1390 312)
	(text "OUTPUT" (rect 1 0 34 9)(font "Arial" (font_size 6)))
	(text "seg7led_bits[7..0]" (rect 90 0 177 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 1304 168 1392 296))
)
(pin
	(output)
	(rect 1208 432 1390 448)
	(text "OUTPUT" (rect 1 0 34 9)(font "Arial" (font_size 6)))
	(text "led_cs[5..0]" (rect 90 0 147 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 1304 328 1392 432))
)
(pin
	(output)
	(rect 1208 144 1390 160)
	(text "OUTPUT" (rect 1 0 34 9)(font "Arial" (font_size 6)))
	(text "led_bits[7..0]" (rect 90 0 153 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 1304 16 1392 144))
)
(symbol
	(rect 192 24 336 120)
	(text "counter" (rect 5 0 41 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"
		"24000"
		""
	)
	(parameter
		"inner_counter_width"
		"16"
		""
	)
	(parameter
		"unit"
		"\"1001\""
		""
	)
	(drawing
		(rectangle (rect 16 16 128 80)(line_width 1))
	)
	(annotation_block (parameter)(rect 336 -32 480 24))
)
(symbol
	(rect 192 152 336 248)
	(text "counter" (rect 5 0 41 12)(font "Arial" ))
	(text "inst1" (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 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"
		"100"
		""
	)
	(parameter
		"inner_counter_width"
		"8"
		""
	)
	(parameter
		"unit"
		"\"1001\""
		""
	)
	(drawing
		(rectangle (rect 16 16 128 80)(line_width 1))
	)
	(annotation_block (parameter)(rect 336 96 480 152))
)
(symbol
	(rect 192 272 336 368)
	(text "counter" (rect 5 0 41 12)(font "Arial" ))
	(text "inst2" (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 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"
		"10"
		""
	)
	(parameter
		"inner_counter_width"
		"4"
		""
	)
	(parameter
		"unit"
		"\"1001\""
		""
	)
	(drawing
		(rectangle (rect 16 16 128 80)(line_width 1))
	)
	(annotation_block (parameter)(rect 336 216 480 272))
)
(symbol
	(rect 192 392 336 488)
	(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 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"
		"10"
		""
	)
	(parameter
		"inner_counter_width"
		"4"
		""
	)
	(parameter
		"unit"
		"\"1001\""
		""
	)
	(drawing
		(rectangle (rect 16 16 128 80)(line_width 1))
	)
	(annotation_block (parameter)(rect 336 336 480 392))
)
(symbol
	(rect 192 512 336 608)
	(text "counter" (rect 5 0 41 12)(font "Arial" ))
	(text "inst4" (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 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"
		"10"
		""
	)
	(parameter
		"inner_counter_width"
		"4"
		""
	)
	(parameter
		"unit"
		"\"1001\""
		""
	)
	(drawing
		(rectangle (rect 16 16 128 80)(line_width 1))
	)
	(annotation_block (parameter)(rect 336 456 480 512))
)
(symbol
	(rect 192 632 336 728)
	(text "counter" (rect 5 0 41 12)(font "Arial" ))
	(text "inst5" (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 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"
		"10"
		""
	)
	(parameter
		"inner_counter_width"
		"4"
		""
	)
	(parameter
		"unit"
		"\"1001\""
		""
	)
	(drawing
		(rectangle (rect 16 16 128 80)(line_width 1))
	)
	(annotation_block (parameter)(rect 336 576 480 632))
)
(symbol
	(rect 192 872 336 968)
	(text "counter" (rect 5 0 41 12)(font "Arial" ))
	(text "inst6" (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 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"
		"10"
		""
	)
	(parameter
		"inner_counter_width"
		"4"
		""
	)
	(parameter
		"unit"
		"\"1001\""
		""
	)
	(drawing
		(rectangle (rect 16 16 128 80)(line_width 1))
	)
	(annotation_block (parameter)(rect 336 816 480 872))
)
(symbol
	(rect 192 752 336 848)
	(text "counter" (rect 5 0 41 12)(font "Arial" ))
	(text "inst7" (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 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"
		"10"
		""
	)
	(parameter
		"inner_counter_width"
		"4"
		""
	)
	(parameter
		"unit"
		"\"1001\""
		""
	)
	(drawing
		(rectangle (rect 16 16 128 80)(line_width 1))
	)
	(annotation_block (parameter)(rect 336 696 480 752))
)
(symbol
	(rect 584 272 864 464)
	(text "choice1from6" (rect 5 0 72 12)(font "Arial" ))
	(text "inst8" (rect 8 176 31 188)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "data_in0[bitwidth-1..0]" (rect 0 0 107 12)(font "Arial" ))
		(text "data_in0[bitwidth-1..0]" (rect 21 27 128 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 3))
	)
	(port
		(pt 0 48)
		(input)
		(text "data_in1[bitwidth-1..0]" (rect 0 0 107 12)(font "Arial" ))
		(text "data_in1[bitwidth-1..0]" (rect 21 43 128 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 3))
	)
	(port
		(pt 0 64)
		(input)
		(text "data_in2[bitwidth-1..0]" (rect 0 0 107 12)(font "Arial" ))

⌨️ 快捷键说明

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