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

📄 block1.bdf

📁 数字系统设计中的全加器、10进制计数器、2-4译码器、摩尔状态机、2-1路选择器的源代码
💻 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 128 8 296 24)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "w0" (rect 5 0 17 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 128 32 296 48)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "w1" (rect 5 0 17 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 128 64 296 80)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "s1" (rect 5 0 16 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
	(output)
	(rect 584 24 760 40)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "out[3..1]" (rect 90 0 131 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))
	)
)
(symbol
	(rect 288 136 352 216)
	(text "DFF" (rect 1 0 19 10)(font "Arial" (font_size 6)))
	(text "inst1" (rect 3 68 26 80)(font "Arial" ))
	(port
		(pt 32 80)
		(input)
		(text "CLRN" (rect 21 59 44 71)(font "Courier New" (bold)))
		(text "CLRN" (rect 21 58 44 70)(font "Courier New" (bold)))
		(line (pt 32 80)(pt 32 76)(line_width 1))
	)
	(port
		(pt 0 40)
		(input)
		(text "CLK" (rect 3 29 20 41)(font "Courier New" (bold))(invisible))
		(text "CLK" (rect 3 29 20 41)(font "Courier New" (bold))(invisible))
		(line (pt 0 40)(pt 12 40)(line_width 1))
	)
	(port
		(pt 0 24)
		(input)
		(text "D" (rect 14 20 19 32)(font "Courier New" (bold)))
		(text "D" (rect 14 20 19 32)(font "Courier New" (bold)))
		(line (pt 0 24)(pt 12 24)(line_width 1))
	)
	(port
		(pt 32 0)
		(input)
		(text "PRN" (rect 24 13 41 25)(font "Courier New" (bold)))
		(text "PRN" (rect 24 11 41 23)(font "Courier New" (bold)))
		(line (pt 32 4)(pt 32 0)(line_width 1))
	)
	(port
		(pt 64 24)
		(output)
		(text "Q" (rect 45 20 50 32)(font "Courier New" (bold)))
		(text "Q" (rect 45 20 50 32)(font "Courier New" (bold)))
		(line (pt 52 24)(pt 64 24)(line_width 1))
	)
	(drawing
		(line (pt 12 12)(pt 52 12)(line_width 1))
		(line (pt 12 68)(pt 52 68)(line_width 1))
		(line (pt 52 68)(pt 52 12)(line_width 1))
		(line (pt 12 68)(pt 12 12)(line_width 1))
		(line (pt 19 40)(pt 12 47)(line_width 1))
		(line (pt 12 32)(pt 20 40)(line_width 1))
		(circle (rect 28 4 36 12)(line_width 1))
		(circle (rect 28 68 36 76)(line_width 1))
	)
)
(symbol
	(rect 448 136 512 216)
	(text "DFF" (rect 1 0 19 10)(font "Arial" (font_size 6)))
	(text "inst2" (rect 3 68 26 80)(font "Arial" ))
	(port
		(pt 32 80)
		(input)
		(text "CLRN" (rect 21 59 44 71)(font "Courier New" (bold)))
		(text "CLRN" (rect 21 58 44 70)(font "Courier New" (bold)))
		(line (pt 32 80)(pt 32 76)(line_width 1))
	)
	(port
		(pt 0 40)
		(input)
		(text "CLK" (rect 3 29 20 41)(font "Courier New" (bold))(invisible))
		(text "CLK" (rect 3 29 20 41)(font "Courier New" (bold))(invisible))
		(line (pt 0 40)(pt 12 40)(line_width 1))
	)
	(port
		(pt 0 24)
		(input)
		(text "D" (rect 14 20 19 32)(font "Courier New" (bold)))
		(text "D" (rect 14 20 19 32)(font "Courier New" (bold)))
		(line (pt 0 24)(pt 12 24)(line_width 1))
	)
	(port
		(pt 32 0)
		(input)
		(text "PRN" (rect 24 13 41 25)(font "Courier New" (bold)))
		(text "PRN" (rect 24 11 41 23)(font "Courier New" (bold)))
		(line (pt 32 4)(pt 32 0)(line_width 1))
	)
	(port
		(pt 64 24)
		(output)
		(text "Q" (rect 45 20 50 32)(font "Courier New" (bold)))
		(text "Q" (rect 45 20 50 32)(font "Courier New" (bold)))
		(line (pt 52 24)(pt 64 24)(line_width 1))
	)
	(drawing
		(line (pt 12 12)(pt 52 12)(line_width 1))
		(line (pt 12 68)(pt 52 68)(line_width 1))
		(line (pt 52 68)(pt 52 12)(line_width 1))
		(line (pt 12 68)(pt 12 12)(line_width 1))
		(line (pt 19 40)(pt 12 47)(line_width 1))
		(line (pt 12 32)(pt 20 40)(line_width 1))
		(circle (rect 28 4 36 12)(line_width 1))
		(circle (rect 28 68 36 76)(line_width 1))
	)
)
(symbol
	(rect 592 136 656 216)
	(text "DFF" (rect 1 0 19 10)(font "Arial" (font_size 6)))
	(text "inst3" (rect 3 68 26 80)(font "Arial" ))
	(port
		(pt 32 80)
		(input)
		(text "CLRN" (rect 21 59 44 71)(font "Courier New" (bold)))
		(text "CLRN" (rect 21 58 44 70)(font "Courier New" (bold)))
		(line (pt 32 80)(pt 32 76)(line_width 1))
	)
	(port
		(pt 0 40)
		(input)
		(text "CLK" (rect 3 29 20 41)(font "Courier New" (bold))(invisible))
		(text "CLK" (rect 3 29 20 41)(font "Courier New" (bold))(invisible))
		(line (pt 0 40)(pt 12 40)(line_width 1))
	)
	(port
		(pt 0 24)
		(input)
		(text "D" (rect 14 20 19 32)(font "Courier New" (bold)))
		(text "D" (rect 14 20 19 32)(font "Courier New" (bold)))
		(line (pt 0 24)(pt 12 24)(line_width 1))
	)
	(port
		(pt 32 0)
		(input)
		(text "PRN" (rect 24 13 41 25)(font "Courier New" (bold)))
		(text "PRN" (rect 24 11 41 23)(font "Courier New" (bold)))
		(line (pt 32 4)(pt 32 0)(line_width 1))
	)
	(port
		(pt 64 24)
		(output)
		(text "Q" (rect 45 20 50 32)(font "Courier New" (bold)))
		(text "Q" (rect 45 20 50 32)(font "Courier New" (bold)))
		(line (pt 52 24)(pt 64 24)(line_width 1))
	)
	(drawing
		(line (pt 12 12)(pt 52 12)(line_width 1))
		(line (pt 12 68)(pt 52 68)(line_width 1))
		(line (pt 52 68)(pt 52 12)(line_width 1))
		(line (pt 12 68)(pt 12 12)(line_width 1))
		(line (pt 19 40)(pt 12 47)(line_width 1))
		(line (pt 12 32)(pt 20 40)(line_width 1))
		(circle (rect 28 4 36 12)(line_width 1))
		(circle (rect 28 68 36 76)(line_width 1))
	)
)
(symbol
	(rect 544 248 576 296)
	(text "NOT" (rect 0 1 10 21)(font "Arial" (font_size 6))(vertical))
	(text "inst5" (rect 21 3 33 26)(font "Arial" )(vertical))
	(port
		(pt 16 0)
		(input)
		(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
		(text "IN" (rect 7 2 19 13)(font "Courier New" (bold))(vertical)(invisible))
		(line (pt 16 0)(pt 16 13)(line_width 1))
	)
	(port
		(pt 16 48)
		(output)
		(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
		(text "OUT" (rect 7 32 19 49)(font "Courier New" (bold))(vertical)(invisible))
		(line (pt 16 39)(pt 16 48)(line_width 1))
	)
	(drawing
		(line (pt 25 13)(pt 7 13)(line_width 1))
		(line (pt 7 13)(pt 16 31)(line_width 1))
		(line (pt 25 13)(pt 16 31)(line_width 1))
		(circle (rect 12 31 20 39)(line_width 1))
	)
	(flipy_rotate90)
)
(symbol
	(rect 384 248 416 296)
	(text "NOT" (rect 0 1 10 21)(font "Arial" (font_size 6))(vertical))
	(text "inst4" (rect 21 3 33 26)(font "Arial" )(vertical))
	(port
		(pt 16 0)
		(input)
		(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
		(text "IN" (rect 7 2 19 13)(font "Courier New" (bold))(vertical)(invisible))
		(line (pt 16 0)(pt 16 13)(line_width 1))
	)
	(port
		(pt 16 48)
		(output)
		(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
		(text "OUT" (rect 7 32 19 49)(font "Courier New" (bold))(vertical)(invisible))
		(line (pt 16 39)(pt 16 48)(line_width 1))
	)
	(drawing
		(line (pt 25 13)(pt 7 13)(line_width 1))
		(line (pt 7 13)(pt 16 31)(line_width 1))
		(line (pt 25 13)(pt 16 31)(line_width 1))
		(circle (rect 12 31 20 39)(line_width 1))
	)
	(flipy_rotate90)
)
(symbol
	(rect 680 240 712 288)
	(text "NOT" (rect 22 1 32 21)(font "Arial" (font_size 6))(vertical))
	(text "inst6" (rect -1 3 11 26)(font "Arial" )(vertical))
	(port
		(pt 16 0)
		(input)
		(text "IN" (rect 2 7 13 19)(font "Courier New" (bold))(invisible))
		(text "IN" (rect 13 2 25 13)(font "Courier New" (bold))(vertical)(invisible))
		(line (pt 16 0)(pt 16 13)(line_width 1))
	)
	(port
		(pt 16 48)
		(output)
		(text "OUT" (rect 32 7 49 19)(font "Courier New" (bold))(invisible))
		(text "OUT" (rect 13 32 25 49)(font "Courier New" (bold))(vertical)(invisible))
		(line (pt 16 39)(pt 16 48)(line_width 1))
	)
	(drawing
		(line (pt 7 13)(pt 25 13)(line_width 1))
		(line (pt 25 13)(pt 16 31)(line_width 1))
		(line (pt 7 13)(pt 16 31)(line_width 1))
		(circle (rect 12 31 20 39)(line_width 1))
	)
	(rotate270)
)
(symbol
	(rect 392 -16 488 80)
	(text "mux2to1" (rect 5 0 47 12)(font "Arial" ))
	(text "inst" (rect 8 80 25 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "w0" (rect 0 0 12 12)(font "Arial" ))
		(text "w0" (rect 21 27 33 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "w1" (rect 0 0 12 12)(font "Arial" ))
		(text "w1" (rect 21 43 33 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "s" (rect 0 0 5 12)(font "Arial" ))
		(text "s" (rect 21 59 26 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 1))
	)
	(port
		(pt 96 32)
		(output)
		(text "f" (rect 0 0 4 12)(font "Arial" ))
		(text "f" (rect 71 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))
	)
)
(connector
	(pt 296 16)
	(pt 392 16)
)
(connector
	(pt 296 40)
	(pt 368 40)
)
(connector
	(pt 368 40)
	(pt 368 32)
)
(connector
	(pt 368 32)
	(pt 392 32)
)
(connector
	(pt 392 48)
	(pt 368 48)
)
(connector
	(pt 368 48)
	(pt 368 72)
)
(connector
	(pt 368 72)
	(pt 296 72)
)
(connector
	(pt 488 16)
	(pt 528 16)
)
(connector
	(pt 528 16)
	(pt 528 104)
)
(connector
	(pt 528 104)
	(pt 240 104)
)
(connector
	(pt 240 176)
	(pt 288 176)
)
(connector
	(pt 240 104)
	(pt 240 176)
)
(connector
	(pt 288 160)
	(pt 256 160)
)
(connector
	(pt 256 160)
	(pt 256 320)
)
(connector
	(pt 256 320)
	(pt 400 320)
)
(connector
	(pt 400 320)
	(pt 400 296)
)
(connector
	(pt 448 176)
	(pt 400 176)
)
(connector
	(pt 448 160)
	(pt 440 160)
)
(connector
	(pt 440 160)
	(pt 440 320)
)
(connector
	(pt 440 320)
	(pt 560 320)
)
(connector
	(pt 560 320)
	(pt 560 296)
)
(connector
	(pt 592 176)
	(pt 560 176)
)
(connector
	(pt 592 160)
	(pt 584 160)
)
(connector
	(pt 584 320)
	(pt 696 320)
)
(connector
	(pt 696 320)
	(pt 696 288)
)
(connector
	(pt 696 240)
	(pt 696 160)
)
(connector
	(text "out1" (rect 362 144 383 156)(font "Arial" ))
	(pt 400 160)
	(pt 352 160)
)
(connector
	(text "out2" (rect 522 144 543 156)(font "Arial" ))
	(pt 560 160)
	(pt 512 160)
)
(connector
	(text "out3" (rect 666 144 687 156)(font "Arial" ))
	(pt 696 160)
	(pt 656 160)
)
(connector
	(text "out[3..1]" (rect 552 16 593 28)(font "Arial" ))
	(pt 584 32)
	(pt 552 32)
	(bus)
)
(connector
	(pt 400 160)
	(pt 400 176)
)
(connector
	(pt 400 176)
	(pt 400 248)
)
(connector
	(pt 560 160)
	(pt 560 176)
)
(connector
	(pt 560 176)
	(pt 560 248)
)
(connector
	(pt 584 160)
	(pt 584 320)
)
(junction (pt 400 176))
(junction (pt 560 176))

⌨️ 快捷键说明

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