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

📄 electroclock.bdf

📁 VHDL多功能时钟设计~~24小时制~带闹钟
💻 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 -32 120 136 136)
	(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 -120 176 -32 208))
)
(pin
	(input)
	(rect -32 360 136 376)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "cho" (rect 5 0 22 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 -120 376 -32 408))
)
(pin
	(input)
	(rect -32 376 136 392)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "add" (rect 5 0 22 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 -120 392 -32 424))
)
(pin
	(input)
	(rect -32 392 136 408)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "bm" (rect 5 0 20 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 -120 424 -32 456))
)
(pin
	(output)
	(rect 1024 280 1200 296)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "num[3..0]" (rect 90 0 137 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 1200 296 1288 368))
)
(pin
	(output)
	(rect 1024 296 1200 312)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "sel[2..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 1200 312 1288 368))
)
(pin
	(output)
	(rect 1024 96 1200 112)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "af[1..0]" (rect 90 0 126 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 1200 80 1288 128))
)
(pin
	(output)
	(rect 1024 264 1200 280)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "naoled" (rect 90 0 121 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 1200 280 1288 312))
)
(pin
	(output)
	(rect 1024 160 1200 176)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "sound" (rect 90 0 119 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 1200 136 1288 168))
)
(symbol
	(rect 392 96 560 320)
	(text "clock" (rect 5 0 34 14)(font "Arial" (font_size 8)))
	(text "inst9" (rect 8 208 31 220)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "clk1hz" (rect 0 0 36 14)(font "Arial" (font_size 8)))
		(text "clk1hz" (rect 21 27 57 41)(font "Arial" (font_size 8)))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "clk500hz" (rect 0 0 50 14)(font "Arial" (font_size 8)))
		(text "clk500hz" (rect 21 43 71 57)(font "Arial" (font_size 8)))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "clk1khz" (rect 0 0 42 14)(font "Arial" (font_size 8)))
		(text "clk1khz" (rect 21 59 63 73)(font "Arial" (font_size 8)))
		(line (pt 0 64)(pt 16 64)(line_width 1))
	)
	(port
		(pt 0 80)
		(input)
		(text "cho" (rect 0 0 21 14)(font "Arial" (font_size 8)))
		(text "cho" (rect 21 75 42 89)(font "Arial" (font_size 8)))
		(line (pt 0 80)(pt 16 80)(line_width 1))
	)
	(port
		(pt 0 96)
		(input)
		(text "add" (rect 0 0 21 14)(font "Arial" (font_size 8)))
		(text "add" (rect 21 91 42 105)(font "Arial" (font_size 8)))
		(line (pt 0 96)(pt 16 96)(line_width 1))
	)
	(port
		(pt 168 32)
		(output)
		(text "ds[3..0]" (rect 0 0 42 14)(font "Arial" (font_size 8)))
		(text "ds[3..0]" (rect 105 27 147 41)(font "Arial" (font_size 8)))
		(line (pt 168 32)(pt 152 32)(line_width 3))
	)
	(port
		(pt 168 48)
		(output)
		(text "qs[3..0]" (rect 0 0 42 14)(font "Arial" (font_size 8)))
		(text "qs[3..0]" (rect 105 43 147 57)(font "Arial" (font_size 8)))
		(line (pt 168 48)(pt 152 48)(line_width 3))
	)
	(port
		(pt 168 64)
		(output)
		(text "dm[3..0]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
		(text "dm[3..0]" (rect 103 59 147 73)(font "Arial" (font_size 8)))
		(line (pt 168 64)(pt 152 64)(line_width 3))
	)
	(port
		(pt 168 80)
		(output)
		(text "qm[3..0]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
		(text "qm[3..0]" (rect 103 75 147 89)(font "Arial" (font_size 8)))
		(line (pt 168 80)(pt 152 80)(line_width 3))
	)
	(port
		(pt 168 96)
		(output)
		(text "dh[3..0]" (rect 0 0 42 14)(font "Arial" (font_size 8)))
		(text "dh[3..0]" (rect 105 91 147 105)(font "Arial" (font_size 8)))
		(line (pt 168 96)(pt 152 96)(line_width 3))
	)
	(port
		(pt 168 112)
		(output)
		(text "qh[3..0]" (rect 0 0 42 14)(font "Arial" (font_size 8)))
		(text "qh[3..0]" (rect 105 107 147 121)(font "Arial" (font_size 8)))
		(line (pt 168 112)(pt 152 112)(line_width 3))
	)
	(port
		(pt 168 128)
		(output)
		(text "sound" (rect 0 0 35 14)(font "Arial" (font_size 8)))
		(text "sound" (rect 112 123 147 137)(font "Arial" (font_size 8)))
		(line (pt 168 128)(pt 152 128)(line_width 1))
	)
	(port
		(pt 168 144)
		(output)
		(text "cout" (rect 0 0 24 14)(font "Arial" (font_size 8)))
		(text "cout" (rect 123 139 147 153)(font "Arial" (font_size 8)))
		(line (pt 168 144)(pt 152 144)(line_width 1))
	)
	(port
		(pt 168 160)
		(output)
		(text "dh_24[3..0]" (rect 0 0 63 14)(font "Arial" (font_size 8)))
		(text "dh_24[3..0]" (rect 84 155 147 169)(font "Arial" (font_size 8)))
		(line (pt 168 160)(pt 152 160)(line_width 3))
	)
	(port
		(pt 168 176)
		(output)
		(text "qh_24[3..0]" (rect 0 0 63 14)(font "Arial" (font_size 8)))
		(text "qh_24[3..0]" (rect 84 171 147 185)(font "Arial" (font_size 8)))
		(line (pt 168 176)(pt 152 176)(line_width 3))
	)
	(port
		(pt 168 192)
		(output)
		(text "af[1..0]" (rect 0 0 40 14)(font "Arial" (font_size 8)))
		(text "af[1..0]" (rect 107 187 147 201)(font "Arial" (font_size 8)))
		(line (pt 168 192)(pt 152 192)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 152 208)(line_width 1))
	)
)
(symbol
	(rect 408 520 536 680)
	(text "times" (rect 5 0 34 14)(font "Arial" (font_size 8)))
	(text "inst1" (rect 8 144 31 156)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "clr" (rect 0 0 14 14)(font "Arial" (font_size 8)))
		(text "clr" (rect 21 27 35 41)(font "Arial" (font_size 8)))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "clk" (rect 0 0 15 14)(font "Arial" (font_size 8)))
		(text "clk" (rect 21 43 36 57)(font "Arial" (font_size 8)))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "add" (rect 0 0 21 14)(font "Arial" (font_size 8)))
		(text "add" (rect 21 59 42 73)(font "Arial" (font_size 8)))
		(line (pt 0 64)(pt 16 64)(line_width 1))
	)
	(port
		(pt 128 32)
		(output)
		(text "pdu[3..0]" (rect 0 0 49 14)(font "Arial" (font_size 8)))
		(text "pdu[3..0]" (rect 58 27 107 41)(font "Arial" (font_size 8)))
		(line (pt 128 32)(pt 112 32)(line_width 3))
	)
	(port
		(pt 128 48)
		(output)
		(text "pqu[3..0]" (rect 0 0 49 14)(font "Arial" (font_size 8)))
		(text "pqu[3..0]" (rect 58 43 107 57)(font "Arial" (font_size 8)))
		(line (pt 128 48)(pt 112 48)(line_width 3))
	)
	(port
		(pt 128 64)
		(output)
		(text "pds[3..0]" (rect 0 0 49 14)(font "Arial" (font_size 8)))
		(text "pds[3..0]" (rect 58 59 107 73)(font "Arial" (font_size 8)))
		(line (pt 128 64)(pt 112 64)(line_width 3))
	)
	(port
		(pt 128 80)
		(output)
		(text "pqs[3..0]" (rect 0 0 49 14)(font "Arial" (font_size 8)))
		(text "pqs[3..0]" (rect 58 75 107 89)(font "Arial" (font_size 8)))
		(line (pt 128 80)(pt 112 80)(line_width 3))
	)
	(port
		(pt 128 96)
		(output)
		(text "pdm[3..0]" (rect 0 0 51 14)(font "Arial" (font_size 8)))
		(text "pdm[3..0]" (rect 56 91 107 105)(font "Arial" (font_size 8)))
		(line (pt 128 96)(pt 112 96)(line_width 3))
	)
	(port
		(pt 128 112)
		(output)
		(text "pqm[3..0]" (rect 0 0 51 14)(font "Arial" (font_size 8)))
		(text "pqm[3..0]" (rect 56 107 107 121)(font "Arial" (font_size 8)))
		(line (pt 128 112)(pt 112 112)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 112 144)(line_width 1))
	)
)
(symbol
	(rect 400 688 544 896)
	(text "alarm_clock" (rect 5 0 72 14)(font "Arial" (font_size 8)))
	(text "inst10" (rect 8 192 37 204)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "clk1khz" (rect 0 0 42 14)(font "Arial" (font_size 8)))
		(text "clk1khz" (rect 21 27 63 41)(font "Arial" (font_size 8)))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "clk1hz" (rect 0 0 36 14)(font "Arial" (font_size 8)))
		(text "clk1hz" (rect 21 43 57 57)(font "Arial" (font_size 8)))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "cho_ena" (rect 0 0 49 14)(font "Arial" (font_size 8)))
		(text "cho_ena" (rect 21 59 70 73)(font "Arial" (font_size 8)))
		(line (pt 0 64)(pt 16 64)(line_width 1))
	)
	(port
		(pt 0 80)
		(input)
		(text "add" (rect 0 0 21 14)(font "Arial" (font_size 8)))
		(text "add" (rect 21 75 42 89)(font "Arial" (font_size 8)))
		(line (pt 0 80)(pt 16 80)(line_width 1))
	)
	(port
		(pt 144 96)
		(input)
		(text "dtm[3..0]" (rect 0 0 48 14)(font "Arial" (font_size 8)))
		(text "dtm[3..0]" (rect 72 88 120 102)(font "Arial" (font_size 8)))
		(line (pt 128 96)(pt 144 96)(line_width 3))
	)
	(port
		(pt 144 112)
		(input)
		(text "qtm[3..0]" (rect 0 0 48 14)(font "Arial" (font_size 8)))
		(text "qtm[3..0]" (rect 72 104 120 118)(font "Arial" (font_size 8)))
		(line (pt 128 112)(pt 144 112)(line_width 3))
	)
	(port
		(pt 144 128)
		(input)
		(text "dth[3..0]" (rect 0 0 46 14)(font "Arial" (font_size 8)))
		(text "dth[3..0]" (rect 74 120 120 134)(font "Arial" (font_size 8)))
		(line (pt 128 128)(pt 144 128)(line_width 3))
	)
	(port
		(pt 144 144)
		(input)
		(text "qth[3..0]" (rect 0 0 46 14)(font "Arial" (font_size 8)))
		(text "qth[3..0]" (rect 74 136 120 150)(font "Arial" (font_size 8)))
		(line (pt 128 144)(pt 144 144)(line_width 3))
	)
	(port
		(pt 144 176)
		(output)
		(text "naoled" (rect 0 0 37 14)(font "Arial" (font_size 8)))
		(text "naoled" (rect 86 171 123 185)(font "Arial" (font_size 8)))
		(line (pt 144 176)(pt 128 176)(line_width 1))
	)
	(port
		(pt 144 160)
		(output)
		(text "sound" (rect 0 0 35 14)(font "Arial" (font_size 8)))
		(text "sound" (rect 88 155 123 169)(font "Arial" (font_size 8)))
		(line (pt 144 160)(pt 128 160)(line_width 1))
	)
	(port
		(pt 144 32)
		(output)
		(text "dm[3..0]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
		(text "dm[3..0]" (rect 79 27 123 41)(font "Arial" (font_size 8)))
		(line (pt 144 32)(pt 128 32)(line_width 3))
	)
	(port
		(pt 144 48)
		(output)
		(text "qm[3..0]" (rect 0 0 44 14)(font "Arial" (font_size 8)))
		(text "qm[3..0]" (rect 79 43 123 57)(font "Arial" (font_size 8)))
		(line (pt 144 48)(pt 128 48)(line_width 3))
	)
	(port
		(pt 144 64)
		(output)
		(text "dh[3..0]" (rect 0 0 42 14)(font "Arial" (font_size 8)))
		(text "dh[3..0]" (rect 81 59 123 73)(font "Arial" (font_size 8)))
		(line (pt 144 64)(pt 128 64)(line_width 3))
	)
	(port
		(pt 144 80)
		(output)
		(text "qh[3..0]" (rect 0 0 42 14)(font "Arial" (font_size 8)))
		(text "qh[3..0]" (rect 81 75 123 89)(font "Arial" (font_size 8)))
		(line (pt 144 80)(pt 128 80)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 128 192)(line_width 1))
	)
)
(symbol
	(rect 896 144 960 192)
	(text "OR2" (rect 1 0 19 10)(font "Arial" (font_size 6)))
	(text "inst2" (rect 3 37 26 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

⌨️ 快捷键说明

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