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

📄 clock.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-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"))
(properties
	(page_setup "header_footer\nDate: %D\n%f\nProject: %j\n\nPage %p of %P\nRevision: %a\nmargin\n1\n1\n1\n1\norientation\n1\npaper_size\n9\npaper_source\n7\n")
)
(pin
	(input)
	(rect 8 -8 176 8)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "RESET" (rect 5 0 40 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 -104 -104 0 -72))
)
(pin
	(input)
	(rect 8 40 176 56)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "KEY_CHANGE" (rect 5 0 80 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 -104 24 0 56))
)
(pin
	(input)
	(rect 8 64 176 80)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "KEY_MODE" (rect 5 0 65 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 -112 80 -8 112))
)
(pin
	(input)
	(rect 8 16 176 32)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "CLK" (rect 5 0 26 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 -104 -24 -8 8))
)
(pin
	(output)
	(rect 1016 -24 1192 -8)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "sel[5..0]" (rect 90 0 130 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 1072 -152 1168 -48))
)
(pin
	(output)
	(rect 1016 8 1192 24)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "disp[6..0]" (rect 90 0 136 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 1224 24 1320 136))
)
(pin
	(output)
	(rect 1016 40 1192 56)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "dp" (rect 90 0 101 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 1040 88 1128 120))
)
(symbol
	(rect 584 -16 696 80)
	(text "counter60" (rect 5 0 53 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 "clr" (rect 0 0 11 12)(font "Arial" ))
		(text "clr" (rect 21 43 32 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 112 32)
		(output)
		(text "cout" (rect 0 0 21 12)(font "Arial" ))
		(text "cout" (rect 70 27 91 39)(font "Arial" ))
		(line (pt 112 32)(pt 96 32)(line_width 1))
	)
	(port
		(pt 112 48)
		(output)
		(text "low[3..0]" (rect 0 0 41 12)(font "Arial" ))
		(text "low[3..0]" (rect 50 43 91 55)(font "Arial" ))
		(line (pt 112 48)(pt 96 48)(line_width 3))
	)
	(port
		(pt 112 64)
		(output)
		(text "high[3..0]" (rect 0 0 46 12)(font "Arial" ))
		(text "high[3..0]" (rect 45 59 91 71)(font "Arial" ))
		(line (pt 112 64)(pt 96 64)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 96 80)(line_width 1))
	)
)
(symbol
	(rect 584 96 696 192)
	(text "counter60" (rect 5 0 53 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 "clr" (rect 0 0 11 12)(font "Arial" ))
		(text "clr" (rect 21 43 32 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 112 32)
		(output)
		(text "cout" (rect 0 0 21 12)(font "Arial" ))
		(text "cout" (rect 70 27 91 39)(font "Arial" ))
		(line (pt 112 32)(pt 96 32)(line_width 1))
	)
	(port
		(pt 112 48)
		(output)
		(text "low[3..0]" (rect 0 0 41 12)(font "Arial" ))
		(text "low[3..0]" (rect 50 43 91 55)(font "Arial" ))
		(line (pt 112 48)(pt 96 48)(line_width 3))
	)
	(port
		(pt 112 64)
		(output)
		(text "high[3..0]" (rect 0 0 46 12)(font "Arial" ))
		(text "high[3..0]" (rect 45 59 91 71)(font "Arial" ))
		(line (pt 112 64)(pt 96 64)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 96 80)(line_width 1))
	)
)
(symbol
	(rect 584 224 696 320)
	(text "counter24" (rect 5 0 53 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 "clr" (rect 0 0 11 12)(font "Arial" ))
		(text "clr" (rect 21 43 32 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 112 32)
		(output)
		(text "cout" (rect 0 0 21 12)(font "Arial" ))
		(text "cout" (rect 70 27 91 39)(font "Arial" ))
		(line (pt 112 32)(pt 96 32)(line_width 1))
	)
	(port
		(pt 112 48)
		(output)
		(text "low[3..0]" (rect 0 0 41 12)(font "Arial" ))
		(text "low[3..0]" (rect 50 43 91 55)(font "Arial" ))
		(line (pt 112 48)(pt 96 48)(line_width 3))
	)
	(port
		(pt 112 64)
		(output)
		(text "high[3..0]" (rect 0 0 46 12)(font "Arial" ))
		(text "high[3..0]" (rect 45 59 91 71)(font "Arial" ))
		(line (pt 112 64)(pt 96 64)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 96 80)(line_width 1))
	)
)
(symbol
	(rect 472 88 536 136)
	(text "OR2" (rect 1 0 19 10)(font "Arial" (font_size 6)))
	(text "inst15" (rect 3 37 32 49)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
		(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
		(line (pt 0 32)(pt 15 32)(line_width 1))
	)
	(port
		(pt 0 16)
		(input)
		(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
		(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
		(line (pt 0 16)(pt 15 16)(line_width 1))
	)
	(port
		(pt 64 24)
		(output)
		(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
		(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
		(line (pt 48 24)(pt 64 24)(line_width 1))
	)
	(drawing
		(line (pt 14 36)(pt 25 36)(line_width 1))
		(line (pt 14 13)(pt 25 13)(line_width 1))
		(arc (pt 7 29)(pt 7 19)(rect -14 8 19 41)(line_width 1))
		(arc (pt 49 24)(pt 25 13)(rect -6 13 57 76)(line_width 1))
		(arc (pt 25 35)(pt 49 24)(rect -6 -27 57 36)(line_width 1))
	)
)
(symbol
	(rect 472 144 536 192)
	(text "OR2" (rect 1 0 19 10)(font "Arial" (font_size 6)))
	(text "inst16" (rect 3 37 32 49)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
		(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
		(line (pt 0 32)(pt 15 32)(line_width 1))
	)
	(port
		(pt 0 16)
		(input)
		(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
		(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
		(line (pt 0 16)(pt 15 16)(line_width 1))
	)
	(port
		(pt 64 24)
		(output)
		(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
		(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
		(line (pt 48 24)(pt 64 24)(line_width 1))
	)
	(drawing
		(line (pt 14 36)(pt 25 36)(line_width 1))
		(line (pt 14 13)(pt 25 13)(line_width 1))
		(arc (pt 7 29)(pt 7 19)(rect -14 8 19 41)(line_width 1))
		(arc (pt 49 24)(pt 25 13)(rect -6 13 57 76)(line_width 1))
		(arc (pt 25 35)(pt 49 24)(rect -6 -27 57 36)(line_width 1))
	)
)
(symbol
	(rect 480 8 544 56)
	(text "OR2" (rect 1 0 19 10)(font "Arial" (font_size 6)))
	(text "inst17" (rect 3 37 32 49)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
		(text "IN2" (rect 2 23 19 35)(font "Courier New" (bold))(invisible))
		(line (pt 0 32)(pt 15 32)(line_width 1))
	)
	(port
		(pt 0 16)
		(input)
		(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
		(text "IN1" (rect 2 7 19 19)(font "Courier New" (bold))(invisible))
		(line (pt 0 16)(pt 15 16)(line_width 1))
	)
	(port
		(pt 64 24)
		(output)
		(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
		(text "OUT" (rect 48 15 65 27)(font "Courier New" (bold))(invisible))
		(line (pt 48 24)(pt 64 24)(line_width 1))
	)
	(drawing
		(line (pt 14 36)(pt 25 36)(line_width 1))
		(line (pt 14 13)(pt 25 13)(line_width 1))
		(arc (pt 7 29)(pt 7 19)(rect -14 8 19 41)(line_width 1))
		(arc (pt 49 24)(pt 25 13)(rect -6 13 57 76)(line_width 1))
		(arc (pt 25 35)(pt 49 24)(rect -6 -27 57 36)(line_width 1))
	)
)
(symbol
	(rect 768 -32 920 160)
	(text "disp" (rect 5 0 25 12)(font "Arial" ))
	(text "inst2" (rect 8 176 31 188)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "clk1" (rect 0 0 20 12)(font "Arial" ))
		(text "clk1" (rect 21 27 41 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 "secl[3..0]" (rect 0 0 46 12)(font "Arial" ))
		(text "secl[3..0]" (rect 21 59 67 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 3))
	)
	(port
		(pt 0 80)
		(input)
		(text "sech[3..0]" (rect 0 0 49 12)(font "Arial" ))
		(text "sech[3..0]" (rect 21 75 70 87)(font "Arial" ))
		(line (pt 0 80)(pt 16 80)(line_width 3))
	)
	(port
		(pt 0 96)
		(input)
		(text "minl[3..0]" (rect 0 0 46 12)(font "Arial" ))
		(text "minl[3..0]" (rect 21 91 67 103)(font "Arial" ))
		(line (pt 0 96)(pt 16 96)(line_width 3))
	)
	(port
		(pt 0 112)
		(input)
		(text "minh[3..0]" (rect 0 0 49 12)(font "Arial" ))
		(text "minh[3..0]" (rect 21 107 70 119)(font "Arial" ))
		(line (pt 0 112)(pt 16 112)(line_width 3))
	)
	(port
		(pt 0 128)
		(input)
		(text "hourl[3..0]" (rect 0 0 49 12)(font "Arial" ))
		(text "hourl[3..0]" (rect 21 123 70 135)(font "Arial" ))
		(line (pt 0 128)(pt 16 128)(line_width 3))
	)
	(port
		(pt 0 144)
		(input)
		(text "hourh[3..0]" (rect 0 0 53 12)(font "Arial" ))
		(text "hourh[3..0]" (rect 21 139 74 151)(font "Arial" ))
		(line (pt 0 144)(pt 16 144)(line_width 3))
	)
	(port
		(pt 152 32)
		(output)
		(text "disp[3..0]" (rect 0 0 46 12)(font "Arial" ))
		(text "disp[3..0]" (rect 85 27 131 39)(font "Arial" ))
		(line (pt 152 32)(pt 136 32)(line_width 3))
	)
	(port
		(pt 152 48)
		(output)
		(text "dp" (rect 0 0 11 12)(font "Arial" ))
		(text "dp" (rect 120 43 131 55)(font "Arial" ))
		(line (pt 152 48)(pt 136 48)(line_width 1))
	)
	(port
		(pt 152 64)
		(output)
		(text "sel[5..0]" (rect 0 0 40 12)(font "Arial" ))
		(text "sel[5..0]" (rect 91 59 131 71)(font "Arial" ))
		(line (pt 152 64)(pt 136 64)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 136 176)(line_width 1))
	)
)
(symbol
	(rect 816 192 968 288)
	(text "bcd_decoder" (rect 5 0 67 12)(font "Arial" ))
	(text "inst5" (rect 8 80 31 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "ina[3..0]" (rect 0 0 40 12)(font "Arial" ))
		(text "ina[3..0]" (rect 21 27 61 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 3))
	)
	(port
		(pt 152 32)
		(output)
		(text "LED7S[6..0]" (rect 0 0 60 12)(font "Arial" ))

⌨️ 快捷键说明

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