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

📄 clock.bdf

📁 电子课程设计数字钟的源代码
💻 BDF
📖 第 1 页 / 共 3 页
字号:
/*
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-2005 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 152 816 320 832)
	(text "INPUT" (rect 133 -1 161 9)(font "Arial" (font_size 6)))
	(text "STOP" (rect 44 1 75 15)(font "Arial" (font_size 8)))
	(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 56 832 144 864))
)
(pin
	(input)
	(rect 152 784 320 800)
	(text "INPUT" (rect 133 -1 161 9)(font "Arial" (font_size 6)))
	(text "CLRM" (rect 43 1 76 15)(font "Arial" (font_size 8)))
	(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 56 800 144 832))
)
(pin
	(input)
	(rect 152 384 320 400)
	(text "INPUT" (rect 133 -1 161 9)(font "Arial" (font_size 6)))
	(text "CLR" (rect 51 1 74 15)(font "Arial" (font_size 8)))
	(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 64 400 152 432))
)
(pin
	(input)
	(rect -344 184 -176 200)
	(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 -440 200 -352 232))
)
(pin
	(input)
	(rect -264 216 -96 232)
	(text "INPUT" (rect 133 -1 161 9)(font "Arial" (font_size 6)))
	(text "CLK_50" (rect 5 1 49 15)(font "Arial" (font_size 8)))
	(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 -352 232 -264 264))
)
(pin
	(input)
	(rect -120 712 48 728)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "SEThour" (rect 5 0 46 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 -216 728 -128 760))
)
(pin
	(input)
	(rect -56 552 112 568)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "SETmin" (rect 5 0 42 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 -152 568 -64 600))
)
(pin
	(output)
	(rect 1472 664 1648 680)
	(text "OUTPUT" (rect 1 -1 39 9)(font "Arial" (font_size 6)))
	(text "q[6..0]" (rect 90 0 125 14)(font "Arial" (font_size 8)))
	(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 1648 680 1736 792))
)
(pin
	(output)
	(rect 1224 328 1400 344)
	(text "OUTPUT" (rect 1 -1 39 9)(font "Arial" (font_size 6)))
	(text "sound" (rect 90 0 125 14)(font "Arial" (font_size 8)))
	(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 1400 344 1480 376))
)
(pin
	(output)
	(rect 1392 528 1568 544)
	(text "OUTPUT" (rect 1 -1 39 9)(font "Arial" (font_size 6)))
	(text "sel[7..0]" (rect 90 0 134 14)(font "Arial" (font_size 8)))
	(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 1568 544 1656 672))
)
(symbol
	(rect 368 376 416 408)
	(text "NOT" (rect 1 -1 21 9)(font "Arial" (font_size 6)))
	(text "6" (rect 1 22 5 32)(font "Arial" (font_size 6)))
	(port
		(pt 0 16)
		(input)
		(text "IN" (rect 0 6 11 18)(font "Courier New" (bold))(invisible))
		(text "IN" (rect 0 6 11 18)(font "Courier New" (bold))(invisible))
		(line (pt 0 16)(pt 13 16)(line_width 1))
	)
	(port
		(pt 48 16)
		(output)
		(text "OUT" (rect 41 6 58 18)(font "Courier New" (bold))(invisible))
		(text "OUT" (rect 41 6 58 18)(font "Courier New" (bold))(invisible))
		(line (pt 39 16)(pt 48 16)(line_width 1))
	)
	(drawing
		(text "2" (rect 0 6 5 18)(font "Courier New" (bold))(invisible))
		(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 624 264 768 376)
	(text "ALERT" (rect 49 -1 96 15)(font "Courier New" (font_size 10)(bold)))
	(text "16" (rect 0 103 11 115)(font "Courier New" (bold)))
	(port
		(pt 0 24)
		(input)
		(text "m1[3..0]" (rect 20 20 67 32)(font "Courier New" (bold)))
		(text "m1[3..0]" (rect 20 20 67 32)(font "Courier New" (bold)))
		(line (pt 0 24)(pt 16 24)(line_width 3))
	)
	(port
		(pt 0 40)
		(input)
		(text "m0[3..0]" (rect 20 36 67 48)(font "Courier New" (bold)))
		(text "m0[3..0]" (rect 20 36 67 48)(font "Courier New" (bold)))
		(line (pt 0 40)(pt 16 40)(line_width 3))
	)
	(port
		(pt 0 56)
		(input)
		(text "s1[3..0]" (rect 20 52 67 64)(font "Courier New" (bold)))
		(text "s1[3..0]" (rect 20 52 67 64)(font "Courier New" (bold)))
		(line (pt 0 56)(pt 16 56)(line_width 3))
	)
	(port
		(pt 0 72)
		(input)
		(text "s0[3..0]" (rect 20 68 67 80)(font "Courier New" (bold)))
		(text "s0[3..0]" (rect 20 68 67 80)(font "Courier New" (bold)))
		(line (pt 0 72)(pt 16 72)(line_width 3))
	)
	(port
		(pt 0 88)
		(input)
		(text "clk" (rect 20 84 37 96)(font "Courier New" (bold)))
		(text "clk" (rect 20 84 37 96)(font "Courier New" (bold)))
		(line (pt 0 88)(pt 16 88)(line_width 1))
	)
	(port
		(pt 144 40)
		(output)
		(text "q500" (rect 106 36 129 48)(font "Courier New" (bold)))
		(text "q500" (rect 106 36 129 48)(font "Courier New" (bold)))
		(line (pt 128 40)(pt 144 40)(line_width 1))
	)
	(port
		(pt 144 56)
		(output)
		(text "qlk" (rect 111 52 128 64)(font "Courier New" (bold)))
		(text "qlk" (rect 111 52 128 64)(font "Courier New" (bold)))
		(line (pt 128 56)(pt 144 56)(line_width 1))
	)
	(drawing
		(line (pt 16 96)(pt 128 96)(line_width 1))
		(line (pt 16 16)(pt 128 16)(line_width 1))
		(line (pt 16 96)(pt 16 16)(line_width 1))
		(line (pt 128 96)(pt 128 16)(line_width 1))
	)
)
(symbol
	(rect 624 408 776 488)
	(text "SECOND" (rect 48 -1 104 15)(font "Courier New" (font_size 10)(bold)))
	(text "17" (rect 0 71 11 83)(font "Courier New" (bold)))
	(port
		(pt 0 24)
		(input)
		(text "clk" (rect 20 20 37 32)(font "Courier New" (bold)))
		(text "clk" (rect 20 20 37 32)(font "Courier New" (bold)))
		(line (pt 0 24)(pt 16 24)(line_width 1))
	)
	(port
		(pt 0 40)
		(input)
		(text "clr" (rect 20 36 37 48)(font "Courier New" (bold)))
		(text "clr" (rect 20 36 37 48)(font "Courier New" (bold)))
		(line (pt 0 40)(pt 16 40)(line_width 1))
	)
	(port
		(pt 152 24)
		(output)
		(text "sec1[3..0]" (rect 84 20 143 32)(font "Courier New" (bold)))
		(text "sec1[3..0]" (rect 84 20 143 32)(font "Courier New" (bold)))
		(line (pt 136 24)(pt 152 24)(line_width 3))
	)
	(port
		(pt 152 40)
		(output)
		(text "sec0[3..0]" (rect 84 36 143 48)(font "Courier New" (bold)))
		(text "sec0[3..0]" (rect 84 36 143 48)(font "Courier New" (bold)))
		(line (pt 136 40)(pt 152 40)(line_width 3))
	)
	(port
		(pt 152 56)
		(output)
		(text "co" (rect 124 52 135 64)(font "Courier New" (bold)))
		(text "co" (rect 124 52 135 64)(font "Courier New" (bold)))
		(line (pt 136 56)(pt 152 56)(line_width 1))
	)
	(drawing
		(line (pt 16 64)(pt 136 64)(line_width 1))
		(line (pt 16 16)(pt 136 16)(line_width 1))
		(line (pt 16 64)(pt 16 16)(line_width 1))
		(line (pt 136 64)(pt 136 16)(line_width 1))
	)
)
(symbol
	(rect 624 520 776 600)
	(text "MINUTE" (rect 48 -1 104 15)(font "Courier New" (font_size 10)(bold)))
	(text "18" (rect 0 71 11 83)(font "Courier New" (bold)))
	(port
		(pt 0 24)
		(input)
		(text "clk" (rect 20 20 37 32)(font "Courier New" (bold)))
		(text "clk" (rect 20 20 37 32)(font "Courier New" (bold)))
		(line (pt 0 24)(pt 16 24)(line_width 1))
	)
	(port
		(pt 0 40)
		(input)
		(text "en" (rect 20 36 31 48)(font "Courier New" (bold)))
		(text "en" (rect 20 36 31 48)(font "Courier New" (bold)))
		(line (pt 0 40)(pt 16 40)(line_width 1))
	)
	(port
		(pt 152 24)
		(output)
		(text "min1[3..0]" (rect 84 20 143 32)(font "Courier New" (bold)))
		(text "min1[3..0]" (rect 84 20 143 32)(font "Courier New" (bold)))
		(line (pt 136 24)(pt 152 24)(line_width 3))
	)
	(port
		(pt 152 40)
		(output)
		(text "min0[3..0]" (rect 84 36 143 48)(font "Courier New" (bold)))
		(text "min0[3..0]" (rect 84 36 143 48)(font "Courier New" (bold)))
		(line (pt 136 40)(pt 152 40)(line_width 3))
	)
	(port
		(pt 152 56)
		(output)
		(text "co" (rect 124 52 135 64)(font "Courier New" (bold)))
		(text "co" (rect 124 52 135 64)(font "Courier New" (bold)))
		(line (pt 136 56)(pt 152 56)(line_width 1))
	)
	(drawing
		(line (pt 16 64)(pt 136 64)(line_width 1))
		(line (pt 16 16)(pt 136 16)(line_width 1))
		(line (pt 16 64)(pt 16 16)(line_width 1))
		(line (pt 136 64)(pt 136 16)(line_width 1))
	)
)
(symbol
	(rect 632 648 768 712)
	(text "HOUR" (rect 50 -1 87 15)(font "Courier New" (font_size 10)(bold)))
	(text "19" (rect 0 55 11 67)(font "Courier New" (bold)))
	(port
		(pt 0 24)
		(input)
		(text "clk" (rect 20 20 37 32)(font "Courier New" (bold)))
		(text "clk" (rect 20 20 37 32)(font "Courier New" (bold)))
		(line (pt 0 24)(pt 16 24)(line_width 1))
	)
	(port
		(pt 0 40)
		(input)
		(text "en" (rect 20 36 31 48)(font "Courier New" (bold)))
		(text "en" (rect 20 36 31 48)(font "Courier New" (bold)))
		(line (pt 0 40)(pt 16 40)(line_width 1))
	)
	(port
		(pt 136 24)
		(output)
		(text "h1[3..0]" (rect 78 20 125 32)(font "Courier New" (bold)))
		(text "h1[3..0]" (rect 78 20 125 32)(font "Courier New" (bold)))
		(line (pt 120 24)(pt 136 24)(line_width 3))
	)
	(port
		(pt 136 40)
		(output)
		(text "h0[3..0]" (rect 78 36 125 48)(font "Courier New" (bold)))
		(text "h0[3..0]" (rect 78 36 125 48)(font "Courier New" (bold)))
		(line (pt 120 40)(pt 136 40)(line_width 3))
	)
	(drawing
		(line (pt 16 48)(pt 120 48)(line_width 1))
		(line (pt 16 16)(pt 120 16)(line_width 1))
		(line (pt 16 48)(pt 16 16)(line_width 1))
		(line (pt 120 48)(pt 120 16)(line_width 1))
	)
)
(symbol
	(rect 1288 648 1448 696)
	(text "DISPLAY" (rect 47 -1 113 15)(font "Courier New" (font_size 10)(bold)))
	(text "21" (rect 0 39 11 51)(font "Courier New" (bold)))
	(port
		(pt 0 24)
		(input)
		(text "d[3..0]" (rect 20 20 61 32)(font "Courier New" (bold)))
		(text "d[3..0]" (rect 20 20 61 32)(font "Courier New" (bold)))
		(line (pt 0 24)(pt 16 24)(line_width 3))
	)
	(port
		(pt 160 24)
		(output)
		(text "q[6..0]" (rect 107 20 148 32)(font "Courier New" (bold)))
		(text "q[6..0]" (rect 107 20 148 32)(font "Courier New" (bold)))
		(line (pt 144 24)(pt 160 24)(line_width 3))
	)
	(drawing
		(line (pt 16 32)(pt 144 32)(line_width 1))
		(line (pt 16 16)(pt 144 16)(line_width 1))
		(line (pt 16 32)(pt 16 16)(line_width 1))
		(line (pt 144 32)(pt 144 16)(line_width 1))
	)
)
(symbol
	(rect 592 752 760 832)
	(text "MINSECONDB" (rect 36 -1 130 15)(font "Courier New" (font_size 10)(bold)))
	(text "49" (rect 0 71 11 83)(font "Courier New" (bold)))
	(port
		(pt 0 24)
		(input)
		(text "clk" (rect 20 20 37 32)(font "Courier New" (bold)))
		(text "clk" (rect 20 20 37 32)(font "Courier New" (bold)))
		(line (pt 0 24)(pt 16 24)(line_width 1))
	)
	(port
		(pt 0 40)
		(input)
		(text "clrm" (rect 20 36 43 48)(font "Courier New" (bold)))
		(text "clrm" (rect 20 36 43 48)(font "Courier New" (bold)))
		(line (pt 0 40)(pt 16 40)(line_width 1))
	)
	(port
		(pt 0 56)
		(input)
		(text "stop" (rect 20 52 43 64)(font "Courier New" (bold)))
		(text "stop" (rect 20 52 43 64)(font "Courier New" (bold)))
		(line (pt 0 56)(pt 16 56)(line_width 1))
	)
	(port
		(pt 168 24)
		(output)
		(text "secm1[3..0]" (rect 95 20 159 32)(font "Courier New" (bold)))
		(text "secm1[3..0]" (rect 95 20 159 32)(font "Courier New" (bold)))
		(line (pt 152 24)(pt 168 24)(line_width 3))
	)
	(port
		(pt 168 40)
		(output)
		(text "secm0[3..0]" (rect 95 36 159 48)(font "Courier New" (bold)))
		(text "secm0[3..0]" (rect 95 36 159 48)(font "Courier New" (bold)))
		(line (pt 152 40)(pt 168 40)(line_width 3))
	)
	(port
		(pt 168 56)
		(output)
		(text "co" (rect 140 52 151 64)(font "Courier New" (bold)))
		(text "co" (rect 140 52 151 64)(font "Courier New" (bold)))
		(line (pt 152 56)(pt 168 56)(line_width 1))
	)
	(drawing
		(line (pt 16 64)(pt 152 64)(line_width 1))
		(line (pt 16 16)(pt 152 16)(line_width 1))
		(line (pt 16 64)(pt 16 16)(line_width 1))
		(line (pt 152 64)(pt 152 16)(line_width 1))
	)
)
(symbol
	(rect 880 448 1104 624)
	(text "SELTIME" (rect 79 -1 145 15)(font "Courier New" (font_size 10)(bold)))
	(text "48" (rect 0 167 11 179)(font "Courier New" (bold)))
	(port
		(pt 0 24)
		(input)
		(text "clk" (rect 20 20 37 32)(font "Courier New" (bold)))
		(text "clk" (rect 20 20 37 32)(font "Courier New" (bold)))
		(line (pt 0 24)(pt 16 24)(line_width 1))
	)
	(port
		(pt 0 40)

⌨️ 快捷键说明

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