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

📄 controller.bsf

📁 这是使用VHDL编写的交通灯程序,供大家交流学习
💻 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-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 "symbol" (version "1.1"))
(symbol
	(rect 16 16 144 240)
	(text "controller" (rect 5 0 49 12)(font "Arial" ))
	(text "inst" (rect 8 208 25 220)(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 "reset" (rect 0 0 24 12)(font "Arial" ))
		(text "reset" (rect 21 43 45 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 128 32)
		(output)
		(text "time1[3..0]" (rect 0 0 53 12)(font "Arial" ))
		(text "time1[3..0]" (rect 54 27 107 39)(font "Arial" ))
		(line (pt 128 32)(pt 112 32)(line_width 3))
	)
	(port
		(pt 128 48)
		(output)
		(text "time2[3..0]" (rect 0 0 53 12)(font "Arial" ))
		(text "time2[3..0]" (rect 54 43 107 55)(font "Arial" ))
		(line (pt 128 48)(pt 112 48)(line_width 3))
	)
	(port
		(pt 128 64)
		(output)
		(text "time3[3..0]" (rect 0 0 53 12)(font "Arial" ))
		(text "time3[3..0]" (rect 54 59 107 71)(font "Arial" ))
		(line (pt 128 64)(pt 112 64)(line_width 3))
	)
	(port
		(pt 128 80)
		(output)
		(text "time4[3..0]" (rect 0 0 53 12)(font "Arial" ))
		(text "time4[3..0]" (rect 54 75 107 87)(font "Arial" ))
		(line (pt 128 80)(pt 112 80)(line_width 3))
	)
	(port
		(pt 128 96)
		(output)
		(text "redA" (rect 0 0 22 12)(font "Arial" ))
		(text "redA" (rect 85 91 107 103)(font "Arial" ))
		(line (pt 128 96)(pt 112 96)(line_width 1))
	)
	(port
		(pt 128 112)
		(output)
		(text "greenA" (rect 0 0 34 12)(font "Arial" ))
		(text "greenA" (rect 73 107 107 119)(font "Arial" ))
		(line (pt 128 112)(pt 112 112)(line_width 1))
	)
	(port
		(pt 128 128)
		(output)
		(text "yellowA" (rect 0 0 37 12)(font "Arial" ))
		(text "yellowA" (rect 70 123 107 135)(font "Arial" ))
		(line (pt 128 128)(pt 112 128)(line_width 1))
	)
	(port
		(pt 128 144)
		(output)
		(text "redB" (rect 0 0 22 12)(font "Arial" ))
		(text "redB" (rect 85 139 107 151)(font "Arial" ))
		(line (pt 128 144)(pt 112 144)(line_width 1))
	)
	(port
		(pt 128 160)
		(output)
		(text "greenB" (rect 0 0 34 12)(font "Arial" ))
		(text "greenB" (rect 73 155 107 167)(font "Arial" ))
		(line (pt 128 160)(pt 112 160)(line_width 1))
	)
	(port
		(pt 128 176)
		(output)
		(text "yellowB" (rect 0 0 37 12)(font "Arial" ))
		(text "yellowB" (rect 70 171 107 183)(font "Arial" ))
		(line (pt 128 176)(pt 112 176)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 112 208)(line_width 1))
	)
)

⌨️ 快捷键说明

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