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

📄 jiaotongdeng.bsf

📁 这程序是利用状态机来控制交通灯verilog码
💻 BSF
字号:
/*
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.
*/
(header "symbol" (version "1.1"))
(symbol
	(rect 16 16 136 208)
	(text "jiaotongdeng" (rect 5 0 66 12)(font "Arial" ))
	(text "inst" (rect 8 176 25 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 0 64)
		(input)
		(text "jin" (rect 0 0 10 12)(font "Arial" ))
		(text "jin" (rect 21 59 31 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 1))
	)
	(port
		(pt 120 32)
		(output)
		(text "scan[1..0]" (rect 0 0 49 12)(font "Arial" ))
		(text "scan[1..0]" (rect 50 27 99 39)(font "Arial" ))
		(line (pt 120 32)(pt 104 32)(line_width 3))
	)
	(port
		(pt 120 48)
		(output)
		(text "seg7[6..0]" (rect 0 0 49 12)(font "Arial" ))
		(text "seg7[6..0]" (rect 50 43 99 55)(font "Arial" ))
		(line (pt 120 48)(pt 104 48)(line_width 3))
	)
	(port
		(pt 120 64)
		(output)
		(text "ra" (rect 0 0 9 12)(font "Arial" ))
		(text "ra" (rect 90 59 99 71)(font "Arial" ))
		(line (pt 120 64)(pt 104 64)(line_width 1))
	)
	(port
		(pt 120 80)
		(output)
		(text "ya" (rect 0 0 12 12)(font "Arial" ))
		(text "ya" (rect 87 75 99 87)(font "Arial" ))
		(line (pt 120 80)(pt 104 80)(line_width 1))
	)
	(port
		(pt 120 96)
		(output)
		(text "ga" (rect 0 0 11 12)(font "Arial" ))
		(text "ga" (rect 88 91 99 103)(font "Arial" ))
		(line (pt 120 96)(pt 104 96)(line_width 1))
	)
	(port
		(pt 120 112)
		(output)
		(text "rb" (rect 0 0 9 12)(font "Arial" ))
		(text "rb" (rect 90 107 99 119)(font "Arial" ))
		(line (pt 120 112)(pt 104 112)(line_width 1))
	)
	(port
		(pt 120 128)
		(output)
		(text "yb" (rect 0 0 12 12)(font "Arial" ))
		(text "yb" (rect 87 123 99 135)(font "Arial" ))
		(line (pt 120 128)(pt 104 128)(line_width 1))
	)
	(port
		(pt 120 144)
		(output)
		(text "gb" (rect 0 0 11 12)(font "Arial" ))
		(text "gb" (rect 88 139 99 151)(font "Arial" ))
		(line (pt 120 144)(pt 104 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 104 176)(line_width 1))
	)
	(annotation_block (parameter)(rect 136 -64 236 16))
)

⌨️ 快捷键说明

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