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

📄 jiaotongdeng.bdf

📁 这程序是利用状态机来控制交通灯verilog码
💻 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-2007 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 from 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.
*/
//#pragma file_not_in_maxplusii_format
(header "graphic" (version "1.3"))
(pin
	(input)
	(rect -64 248 104 264)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "clock" (rect 5 0 30 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 48 352 216 368)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "clr" (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 680 336 856 352)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "ra" (rect 90 0 99 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))
	)
)
(pin
	(output)
	(rect 680 360 856 376)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "ya" (rect 90 0 102 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))
	)
)
(pin
	(output)
	(rect 680 384 856 400)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "ga" (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))
	)
)
(pin
	(output)
	(rect 680 408 856 424)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "rb" (rect 90 0 99 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))
	)
)
(pin
	(output)
	(rect 680 432 856 448)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "yb" (rect 90 0 102 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))
	)
)
(pin
	(output)
	(rect 680 456 856 472)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "gb" (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))
	)
)
(pin
	(output)
	(rect 808 240 984 256)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "scan[7..0]" (rect 90 0 139 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))
	)
)
(pin
	(output)
	(rect 808 256 984 272)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "seg[7..0]" (rect 90 0 133 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 144 224 256 320)
	(text "int_div" (rect 5 0 38 12)(font "Arial" ))
	(text "inst" (rect 8 80 25 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "clock" (rect 0 0 25 12)(font "Arial" ))
		(text "clock" (rect 21 27 46 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 112 32)
		(output)
		(text "clk_out" (rect 0 0 35 12)(font "Arial" ))
		(text "clk_out" (rect 56 27 91 39)(font "Arial" ))
		(line (pt 112 32)(pt 96 32)(line_width 1))
	)
	(parameter
		"F_DIV"
		"48000000"
		""
	)
	(parameter
		"F_DIV_WIDTH"
		"32"
		""
	)
	(drawing
		(rectangle (rect 16 16 96 80)(line_width 1))
	)
	(annotation_block (parameter)(rect 256 176 384 224))
)
(symbol
	(rect 432 232 528 424)
	(text "jiaotongdeng_con" (rect 5 0 89 12)(font "Arial" ))
	(text "inst3" (rect 8 176 31 188)(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 96 32)
		(output)
		(text "qh[3..0]" (rect 0 0 37 12)(font "Arial" ))
		(text "qh[3..0]" (rect 38 27 75 39)(font "Arial" ))
		(line (pt 96 32)(pt 80 32)(line_width 3))
	)
	(port
		(pt 96 48)
		(output)
		(text "ql[3..0]" (rect 0 0 34 12)(font "Arial" ))
		(text "ql[3..0]" (rect 41 43 75 55)(font "Arial" ))
		(line (pt 96 48)(pt 80 48)(line_width 3))
	)
	(port
		(pt 96 64)
		(output)
		(text "ra" (rect 0 0 9 12)(font "Arial" ))
		(text "ra" (rect 66 59 75 71)(font "Arial" ))
		(line (pt 96 64)(pt 80 64)(line_width 1))
	)
	(port
		(pt 96 80)
		(output)
		(text "ya" (rect 0 0 12 12)(font "Arial" ))
		(text "ya" (rect 63 75 75 87)(font "Arial" ))
		(line (pt 96 80)(pt 80 80)(line_width 1))
	)
	(port
		(pt 96 96)
		(output)
		(text "ga" (rect 0 0 11 12)(font "Arial" ))
		(text "ga" (rect 64 91 75 103)(font "Arial" ))
		(line (pt 96 96)(pt 80 96)(line_width 1))
	)
	(port
		(pt 96 112)
		(output)
		(text "rb" (rect 0 0 9 12)(font "Arial" ))
		(text "rb" (rect 66 107 75 119)(font "Arial" ))
		(line (pt 96 112)(pt 80 112)(line_width 1))
	)
	(port
		(pt 96 128)
		(output)
		(text "yb" (rect 0 0 12 12)(font "Arial" ))
		(text "yb" (rect 63 123 75 135)(font "Arial" ))
		(line (pt 96 128)(pt 80 128)(line_width 1))
	)
	(port
		(pt 96 144)
		(output)
		(text "gb" (rect 0 0 11 12)(font "Arial" ))
		(text "gb" (rect 64 139 75 151)(font "Arial" ))
		(line (pt 96 144)(pt 80 144)(line_width 1))
	)
	(parameter
		"st1"
		"B\"00\""
		""
	)
	(parameter
		"st2"
		"B\"01\""
		""
	)
	(parameter
		"st3"
		"B\"10\""
		""
	)
	(parameter
		"st4"
		"B\"11\""
		""
	)
	(drawing
		(rectangle (rect 16 16 80 176)(line_width 1))
	)
	(annotation_block (parameter)(rect 528 160 632 232))
)
(symbol
	(rect 288 56 400 152)
	(text "int_div2" (rect 5 0 43 12)(font "Arial" ))
	(text "inst1" (rect 8 80 31 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "clock" (rect 0 0 25 12)(font "Arial" ))
		(text "clock" (rect 21 27 46 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 112 32)
		(output)
		(text "clk_out" (rect 0 0 35 12)(font "Arial" ))
		(text "clk_out" (rect 56 27 91 39)(font "Arial" ))
		(line (pt 112 32)(pt 96 32)(line_width 1))
	)
	(parameter
		"F_DIV"
		"100000"
		""
	)
	(parameter
		"F_DIV_WIDTH"
		"32"
		""
	)
	(drawing
		(rectangle (rect 16 16 96 80)(line_width 1))
	)
	(annotation_block (parameter)(rect 400 8 512 56))
)
(symbol
	(rect 664 216 808 312)
	(text "seg_7" (rect 5 0 34 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 "qh[3..0]" (rect 0 0 37 12)(font "Arial" ))
		(text "qh[3..0]" (rect 21 43 58 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 3))
	)
	(port
		(pt 0 64)
		(input)
		(text "ql[3..0]" (rect 0 0 34 12)(font "Arial" ))
		(text "ql[3..0]" (rect 21 59 55 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 3))
	)
	(port
		(pt 144 32)
		(output)
		(text "scan[7..0]" (rect 0 0 49 12)(font "Arial" ))
		(text "scan[7..0]" (rect 74 27 123 39)(font "Arial" ))
		(line (pt 144 32)(pt 128 32)(line_width 3))
	)
	(port
		(pt 144 48)
		(output)
		(text "seg[7..0]" (rect 0 0 43 12)(font "Arial" ))
		(text "seg[7..0]" (rect 80 43 123 55)(font "Arial" ))
		(line (pt 144 48)(pt 128 48)(line_width 3))
	)
	(drawing
		(rectangle (rect 16 16 128 80)(line_width 1))
	)
)
(connector
	(pt 528 264)
	(pt 664 264)
	(bus)
)
(connector
	(pt 528 280)
	(pt 664 280)
	(bus)
)
(connector
	(pt 256 256)
	(pt 432 256)
)
(connector
	(pt 432 256)
	(pt 432 264)
)
(connector
	(pt 288 88)
	(pt 128 88)
)
(connector
	(pt 128 88)
	(pt 128 256)
)
(connector
	(pt 144 256)
	(pt 128 256)
)
(connector
	(pt 128 256)
	(pt 104 256)
)
(connector
	(pt 400 88)
	(pt 664 88)
)
(connector
	(pt 664 88)
	(pt 664 248)
)
(connector
	(pt 432 280)
	(pt 376 280)
)
(connector
	(pt 376 280)
	(pt 376 360)
)
(connector
	(pt 376 360)
	(pt 216 360)
)
(connector
	(pt 528 296)
	(pt 640 296)
)
(connector
	(pt 640 344)
	(pt 640 296)
)
(connector
	(pt 640 344)
	(pt 680 344)
)
(connector
	(pt 528 312)
	(pt 632 312)
)
(connector
	(pt 632 312)
	(pt 632 368)
)
(connector
	(pt 632 368)
	(pt 680 368)
)
(connector
	(pt 528 328)
	(pt 624 328)
)
(connector
	(pt 624 328)
	(pt 624 392)
)
(connector
	(pt 624 392)
	(pt 680 392)
)
(connector
	(pt 528 344)
	(pt 616 344)
)
(connector
	(pt 616 344)
	(pt 616 416)
)
(connector
	(pt 616 416)
	(pt 680 416)
)
(connector
	(pt 528 360)
	(pt 608 360)
)
(connector
	(pt 608 360)
	(pt 608 440)
)
(connector
	(pt 608 440)
	(pt 680 440)
)
(connector
	(pt 528 376)
	(pt 600 376)
)
(connector
	(pt 600 376)
	(pt 600 464)
)
(connector
	(pt 600 464)
	(pt 680 464)
)
(junction (pt 128 256))

⌨️ 快捷键说明

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