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

📄 time_auto_and_set.bdf

📁 一些很好的FPGA设计实例
💻 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-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 -224 80 -56 96)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "CLK" (rect 5 0 33 15)(font "Times New Roman" (font_size 10)))
	(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 -232 64 -56 80)
	(text "INPUT" (rect 141 0 169 10)(font "Arial" (font_size 6)))
	(text "Timepiece_EN" (rect 5 0 95 15)(font "Times New Roman" (font_size 10)))
	(pt 176 8)
	(drawing
		(line (pt 100 12)(pt 125 12)(line_width 1))
		(line (pt 100 4)(pt 125 4)(line_width 1))
		(line (pt 129 8)(pt 176 8)(line_width 1))
		(line (pt 100 12)(pt 100 4)(line_width 1))
		(line (pt 125 4)(pt 129 8)(line_width 1))
		(line (pt 125 12)(pt 129 8)(line_width 1))
	)
	(text "VCC" (rect 144 7 164 17)(font "Arial" (font_size 6)))
)
(pin
	(input)
	(rect -224 24 -56 40)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "Timeset_EN" (rect 5 0 81 15)(font "Times New Roman" (font_size 10)))
	(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 -224 -8 -56 8)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "SW1" (rect 5 0 35 15)(font "Times New Roman" (font_size 10)))
	(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 -224 8 -56 24)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "SW2" (rect 5 0 35 15)(font "Times New Roman" (font_size 10)))
	(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 824 -128 1000 -112)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "hour_1[3..0]" (rect 90 0 165 15)(font "Times New Roman" (font_size 10)))
	(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))
	)
)
(pin
	(output)
	(rect 824 -112 1000 -96)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "hour_0[3..0]" (rect 90 0 165 15)(font "Times New Roman" (font_size 10)))
	(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))
	)
)
(pin
	(output)
	(rect 824 -96 1007 -80)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "minute_1[3..0]" (rect 90 0 178 15)(font "Times New Roman" (font_size 10)))
	(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))
	)
)
(pin
	(output)
	(rect 824 -80 1007 -64)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "minute_0[3..0]" (rect 90 0 178 15)(font "Times New Roman" (font_size 10)))
	(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))
	)
)
(pin
	(output)
	(rect 824 -64 1011 -48)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "second_1[3..0]" (rect 90 0 182 15)(font "Times New Roman" (font_size 10)))
	(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))
	)
)
(pin
	(output)
	(rect 824 -48 1011 -32)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "second_0[3..0]" (rect 90 0 182 15)(font "Times New Roman" (font_size 10)))
	(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))
	)
)
(pin
	(output)
	(rect 592 120 843 136)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "TimeSet_disp_drive[2..0]" (rect 90 0 246 15)(font "Times New Roman" (font_size 10)))
	(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))
	)
)
(pin
	(output)
	(rect 352 200 528 216)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "day_EN" (rect 90 0 140 15)(font "Times New Roman" (font_size 10)))
	(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 608 -152 824 104)
	(text "time_mux" (rect 5 0 53 12)(font "Arial" ))
	(text "inst" (rect 8 240 31 255)(font "Times New Roman" (font_size 10)))
	(port
		(pt 0 32)
		(input)
		(text "TimeSet_EN" (rect 0 0 61 12)(font "Arial" ))
		(text "TimeSet_EN" (rect 21 27 82 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "hour1[3..0]" (rect 0 0 53 12)(font "Arial" ))
		(text "hour1[3..0]" (rect 21 43 74 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 3))
	)
	(port
		(pt 0 64)
		(input)
		(text "hour0[3..0]" (rect 0 0 53 12)(font "Arial" ))
		(text "hour0[3..0]" (rect 21 59 74 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 3))
	)
	(port
		(pt 0 80)
		(input)
		(text "minute1[3..0]" (rect 0 0 64 12)(font "Arial" ))
		(text "minute1[3..0]" (rect 21 75 85 87)(font "Arial" ))
		(line (pt 0 80)(pt 16 80)(line_width 3))
	)
	(port
		(pt 0 96)
		(input)
		(text "minute0[3..0]" (rect 0 0 64 12)(font "Arial" ))
		(text "minute0[3..0]" (rect 21 91 85 103)(font "Arial" ))
		(line (pt 0 96)(pt 16 96)(line_width 3))
	)
	(port
		(pt 0 112)
		(input)
		(text "second1[3..0]" (rect 0 0 67 12)(font "Arial" ))
		(text "second1[3..0]" (rect 21 107 88 119)(font "Arial" ))
		(line (pt 0 112)(pt 16 112)(line_width 3))
	)
	(port
		(pt 0 128)
		(input)
		(text "second0[3..0]" (rect 0 0 67 12)(font "Arial" ))
		(text "second0[3..0]" (rect 21 123 88 135)(font "Arial" ))
		(line (pt 0 128)(pt 16 128)(line_width 3))
	)
	(port
		(pt 0 144)
		(input)
		(text "hour_set1[3..0]" (rect 0 0 74 12)(font "Arial" ))
		(text "hour_set1[3..0]" (rect 21 139 95 151)(font "Arial" ))
		(line (pt 0 144)(pt 16 144)(line_width 3))
	)
	(port
		(pt 0 160)
		(input)
		(text "hour_set0[3..0]" (rect 0 0 74 12)(font "Arial" ))
		(text "hour_set0[3..0]" (rect 21 155 95 167)(font "Arial" ))
		(line (pt 0 160)(pt 16 160)(line_width 3))
	)
	(port
		(pt 0 176)
		(input)
		(text "minute_set1[3..0]" (rect 0 0 86 12)(font "Arial" ))
		(text "minute_set1[3..0]" (rect 21 171 107 183)(font "Arial" ))
		(line (pt 0 176)(pt 16 176)(line_width 3))
	)
	(port
		(pt 0 192)
		(input)
		(text "minute_set0[3..0]" (rect 0 0 86 12)(font "Arial" ))
		(text "minute_set0[3..0]" (rect 21 187 107 199)(font "Arial" ))
		(line (pt 0 192)(pt 16 192)(line_width 3))
	)
	(port
		(pt 0 208)
		(input)
		(text "second_set1[3..0]" (rect 0 0 88 12)(font "Arial" ))
		(text "second_set1[3..0]" (rect 21 203 109 215)(font "Arial" ))
		(line (pt 0 208)(pt 16 208)(line_width 3))
	)
	(port
		(pt 0 224)
		(input)
		(text "second_set0[3..0]" (rect 0 0 88 12)(font "Arial" ))
		(text "second_set0[3..0]" (rect 21 219 109 231)(font "Arial" ))
		(line (pt 0 224)(pt 16 224)(line_width 3))
	)
	(port
		(pt 216 32)
		(output)
		(text "hour_1[3..0]" (rect 0 0 59 12)(font "Arial" ))
		(text "hour_1[3..0]" (rect 136 27 195 39)(font "Arial" ))
		(line (pt 216 32)(pt 200 32)(line_width 3))
	)
	(port
		(pt 216 48)
		(output)
		(text "hour_0[3..0]" (rect 0 0 59 12)(font "Arial" ))
		(text "hour_0[3..0]" (rect 136 43 195 55)(font "Arial" ))
		(line (pt 216 48)(pt 200 48)(line_width 3))
	)
	(port
		(pt 216 64)
		(output)
		(text "minute_1[3..0]" (rect 0 0 70 12)(font "Arial" ))
		(text "minute_1[3..0]" (rect 125 59 195 71)(font "Arial" ))
		(line (pt 216 64)(pt 200 64)(line_width 3))
	)
	(port
		(pt 216 80)
		(output)
		(text "minute_0[3..0]" (rect 0 0 70 12)(font "Arial" ))
		(text "minute_0[3..0]" (rect 125 75 195 87)(font "Arial" ))
		(line (pt 216 80)(pt 200 80)(line_width 3))
	)
	(port
		(pt 216 96)
		(output)
		(text "second_1[3..0]" (rect 0 0 73 12)(font "Arial" ))
		(text "second_1[3..0]" (rect 122 91 195 103)(font "Arial" ))
		(line (pt 216 96)(pt 200 96)(line_width 3))
	)
	(port
		(pt 216 112)
		(output)
		(text "second_0[3..0]" (rect 0 0 73 12)(font "Arial" ))
		(text "second_0[3..0]" (rect 122 107 195 119)(font "Arial" ))
		(line (pt 216 112)(pt 200 112)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 200 240)(line_width 1))
	)
)
(symbol
	(rect -16 40 208 200)
	(text "timepiece_main" (rect 5 0 101 15)(font "Times New Roman" (font_size 10)))
	(text "inst1" (rect 8 141 38 156)(font "Times New Roman" (font_size 10)))
	(port
		(pt 0 32)
		(input)
		(text "Timepiece_EN" (rect 0 0 90 15)(font "Times New Roman" (font_size 10)))
		(text "Timepiece_EN" (rect 21 27 111 42)(font "Times New Roman" (font_size 10)))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "CLK" (rect 0 0 28 15)(font "Times New Roman" (font_size 10)))
		(text "CLK" (rect 21 43 49 58)(font "Times New Roman" (font_size 10)))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 224 32)
		(output)
		(text "hour1[3..0]" (rect 0 0 67 15)(font "Times New Roman" (font_size 10)))
		(text "hour1[3..0]" (rect 136 27 203 42)(font "Times New Roman" (font_size 10)))
		(line (pt 224 32)(pt 208 32)(line_width 3))
	)
	(port
		(pt 224 48)
		(output)
		(text "hour0[3..0]" (rect 0 0 67 15)(font "Times New Roman" (font_size 10)))
		(text "hour0[3..0]" (rect 136 43 203 58)(font "Times New Roman" (font_size 10)))
		(line (pt 224 48)(pt 208 48)(line_width 3))
	)
	(port
		(pt 224 64)
		(output)
		(text "day_EN" (rect 0 0 50 15)(font "Times New Roman" (font_size 10)))
		(text "day_EN" (rect 153 59 203 74)(font "Times New Roman" (font_size 10)))
		(line (pt 224 64)(pt 208 64)(line_width 1))
	)
	(port
		(pt 224 80)
		(output)
		(text "minute1[3..0]" (rect 0 0 80 15)(font "Times New Roman" (font_size 10)))
		(text "minute1[3..0]" (rect 123 75 203 90)(font "Times New Roman" (font_size 10)))
		(line (pt 224 80)(pt 208 80)(line_width 3))
	)
	(port
		(pt 224 96)
		(output)
		(text "minute0[3..0]" (rect 0 0 80 15)(font "Times New Roman" (font_size 10)))
		(text "minute0[3..0]" (rect 123 91 203 106)(font "Times New Roman" (font_size 10)))
		(line (pt 224 96)(pt 208 96)(line_width 3))
	)
	(port
		(pt 224 112)
		(output)
		(text "second1[3..0]" (rect 0 0 83 15)(font "Times New Roman" (font_size 10)))
		(text "second1[3..0]" (rect 120 107 203 122)(font "Times New Roman" (font_size 10)))
		(line (pt 224 112)(pt 208 112)(line_width 3))
	)
	(port
		(pt 224 128)
		(output)
		(text "second0[3..0]" (rect 0 0 83 15)(font "Times New Roman" (font_size 10)))
		(text "second0[3..0]" (rect 120 123 203 138)(font "Times New Roman" (font_size 10)))
		(line (pt 224 128)(pt 208 128)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 208 144)(line_width 1))
	)
)
(symbol
	(rect 328 0 536 192)
	(text "timeset" (rect 5 0 41 12)(font "Arial" ))
	(text "inst2" (rect 8 176 38 191)(font "Times New Roman" (font_size 10)))
	(port
		(pt 0 32)
		(input)
		(text "TimeSet_EN" (rect 0 0 61 12)(font "Arial" ))
		(text "TimeSet_EN" (rect 21 27 82 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))

⌨️ 快捷键说明

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