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

📄 cpld

📁 《CPLD开发实例》的配套光盘文件
💻
字号:
/*
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 0 24 168 40)
	(text "INPUT" (rect 133 -1 161 9)(font "Arial" (font_size 6)))
	(text "clk" (rect 58 1 73 15)(font "Arial" (font_size 8)))
	(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 0 248 168 264)
	(text "INPUT" (rect 133 -1 161 9)(font "Arial" (font_size 6)))
	(text "a[7..4]" (rect 41 1 76 15)(font "Arial" (font_size 8)))
	(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 0 272 168 288)
	(text "INPUT" (rect 133 -1 161 9)(font "Arial" (font_size 6)))
	(text "b[7..4]" (rect 41 1 76 15)(font "Arial" (font_size 8)))
	(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 0 96 168 112)
	(text "INPUT" (rect 133 -1 161 9)(font "Arial" (font_size 6)))
	(text "a[3..0]" (rect 41 1 76 15)(font "Arial" (font_size 8)))
	(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 0 120 168 136)
	(text "INPUT" (rect 133 -1 161 9)(font "Arial" (font_size 6)))
	(text "b[3..0]" (rect 41 1 76 15)(font "Arial" (font_size 8)))
	(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 0 48 168 64)
	(text "INPUT" (rect 133 -1 161 9)(font "Arial" (font_size 6)))
	(text "cin" (rect 57 1 73 15)(font "Arial" (font_size 8)))
	(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 624 104 800 120)
	(text "OUTPUT" (rect 1 -1 39 9)(font "Arial" (font_size 6)))
	(text "q[3..0]" (rect 90 0 125 14)(font "Arial" (font_size 8)))
	(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 624 272 800 288)
	(text "OUTPUT" (rect 1 -1 39 9)(font "Arial" (font_size 6)))
	(text "cout" (rect 90 0 114 14)(font "Arial" (font_size 8)))
	(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 624 248 800 264)
	(text "OUTPUT" (rect 1 -1 39 9)(font "Arial" (font_size 6)))
	(text "q[7..4]" (rect 90 0 125 14)(font "Arial" (font_size 8)))
	(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 200 72 360 168)
	(text "add4" (rect 62 -1 99 15)(font "Courier New" (font_size 10)(bold)))
	(text "1" (rect 0 87 5 99)(font "Courier New" (bold)))
	(port
		(pt 0 24)
		(input)
		(text "cin" (rect 20 20 37 32)(font "Courier New" (bold)))
		(text "cin" (rect 20 20 37 32)(font "Courier New" (bold)))
		(line (pt 0 24)(pt 16 24)(line_width 1))
	)
	(port
		(pt 0 40)
		(input)
		(text "a[3..0]" (rect 20 36 61 48)(font "Courier New" (bold)))
		(text "a[3..0]" (rect 20 36 61 48)(font "Courier New" (bold)))
		(line (pt 0 40)(pt 16 40)(line_width 3))
	)
	(port
		(pt 0 56)
		(input)
		(text "b[3..0]" (rect 20 52 61 64)(font "Courier New" (bold)))
		(text "b[3..0]" (rect 20 52 61 64)(font "Courier New" (bold)))
		(line (pt 0 56)(pt 16 56)(line_width 3))
	)
	(port
		(pt 0 72)
		(input)
		(text "clk" (rect 20 68 37 80)(font "Courier New" (bold)))
		(text "clk" (rect 20 68 37 80)(font "Courier New" (bold)))
		(line (pt 0 72)(pt 16 72)(line_width 1))
	)
	(port
		(pt 160 40)
		(output)
		(text "q[3..0]" (rect 107 36 148 48)(font "Courier New" (bold)))
		(text "q[3..0]" (rect 107 36 148 48)(font "Courier New" (bold)))
		(line (pt 144 40)(pt 160 40)(line_width 3))
	)
	(port
		(pt 160 56)
		(output)
		(text "cout" (rect 122 52 145 64)(font "Courier New" (bold)))
		(text "cout" (rect 122 52 145 64)(font "Courier New" (bold)))
		(line (pt 144 56)(pt 160 56)(line_width 1))
	)
	(drawing
		(line (pt 16 80)(pt 144 80)(line_width 1))
		(line (pt 16 16)(pt 144 16)(line_width 1))
		(line (pt 16 80)(pt 16 16)(line_width 1))
		(line (pt 144 80)(pt 144 16)(line_width 1))
	)
)
(symbol
	(rect 432 216 592 312)
	(text "add4" (rect 62 -1 99 15)(font "Courier New" (font_size 10)(bold)))
	(text "5" (rect 0 87 5 99)(font "Courier New" (bold)))
	(port
		(pt 0 24)
		(input)
		(text "cin" (rect 20 20 37 32)(font "Courier New" (bold)))
		(text "cin" (rect 20 20 37 32)(font "Courier New" (bold)))
		(line (pt 0 24)(pt 16 24)(line_width 1))
	)
	(port
		(pt 0 40)
		(input)
		(text "a[3..0]" (rect 20 36 61 48)(font "Courier New" (bold)))
		(text "a[3..0]" (rect 20 36 61 48)(font "Courier New" (bold)))
		(line (pt 0 40)(pt 16 40)(line_width 3))
	)
	(port
		(pt 0 56)
		(input)
		(text "b[3..0]" (rect 20 52 61 64)(font "Courier New" (bold)))
		(text "b[3..0]" (rect 20 52 61 64)(font "Courier New" (bold)))
		(line (pt 0 56)(pt 16 56)(line_width 3))
	)
	(port
		(pt 0 72)
		(input)
		(text "clk" (rect 20 68 37 80)(font "Courier New" (bold)))
		(text "clk" (rect 20 68 37 80)(font "Courier New" (bold)))
		(line (pt 0 72)(pt 16 72)(line_width 1))
	)
	(port
		(pt 160 40)
		(output)
		(text "q[3..0]" (rect 107 36 148 48)(font "Courier New" (bold)))
		(text "q[3..0]" (rect 107 36 148 48)(font "Courier New" (bold)))
		(line (pt 144 40)(pt 160 40)(line_width 3))
	)
	(port
		(pt 160 56)
		(output)
		(text "cout" (rect 122 52 145 64)(font "Courier New" (bold)))
		(text "cout" (rect 122 52 145 64)(font "Courier New" (bold)))
		(line (pt 144 56)(pt 160 56)(line_width 1))
	)
	(drawing
		(line (pt 16 80)(pt 144 80)(line_width 1))
		(line (pt 16 16)(pt 144 16)(line_width 1))
		(line (pt 16 80)(pt 16 16)(line_width 1))
		(line (pt 144 80)(pt 144 16)(line_width 1))
	)
)
(symbol
	(rect 432 88 592 152)
	(text "REG4_1" (rect 52 -1 108 15)(font "Courier New" (font_size 10)(bold)))
	(text "14" (rect 0 55 11 67)(font "Courier New" (bold)))
	(port
		(pt 0 24)
		(input)
		(text "d[3..0]" (rect 20 20 61 32)(font "Courier New" (bold)))
		(text "d[3..0]" (rect 20 20 61 32)(font "Courier New" (bold)))
		(line (pt 0 24)(pt 16 24)(line_width 3))
	)
	(port
		(pt 0 40)
		(input)
		(text "clk" (rect 20 36 37 48)(font "Courier New" (bold)))
		(text "clk" (rect 20 36 37 48)(font "Courier New" (bold)))
		(line (pt 0 40)(pt 16 40)(line_width 1))
	)
	(port
		(pt 160 24)
		(output)
		(text "q[3..0]" (rect 107 20 148 32)(font "Courier New" (bold)))
		(text "q[3..0]" (rect 107 20 148 32)(font "Courier New" (bold)))
		(line (pt 144 24)(pt 160 24)(line_width 3))
	)
	(drawing
		(line (pt 16 48)(pt 144 48)(line_width 1))
		(line (pt 16 16)(pt 144 16)(line_width 1))
		(line (pt 16 48)(pt 16 16)(line_width 1))
		(line (pt 144 48)(pt 144 16)(line_width 1))
	)
)
(symbol
	(rect 200 232 392 312)
	(text "REG8" (rect 78 -1 115 15)(font "Courier New" (font_size 10)(bold)))
	(text "17" (rect 0 71 11 83)(font "Courier New" (bold)))
	(port
		(pt 0 24)
		(input)
		(text "d_1[3..0]" (rect 20 20 73 32)(font "Courier New" (bold)))
		(text "d_1[3..0]" (rect 20 20 73 32)(font "Courier New" (bold)))
		(line (pt 0 24)(pt 16 24)(line_width 3))
	)
	(port
		(pt 0 40)
		(input)
		(text "d_2[3..0]" (rect 20 36 73 48)(font "Courier New" (bold)))
		(text "d_2[3..0]" (rect 20 36 73 48)(font "Courier New" (bold)))
		(line (pt 0 40)(pt 16 40)(line_width 3))
	)
	(port
		(pt 0 56)
		(input)
		(text "clk" (rect 20 52 37 64)(font "Courier New" (bold)))
		(text "clk" (rect 20 52 37 64)(font "Courier New" (bold)))
		(line (pt 0 56)(pt 16 56)(line_width 1))
	)
	(port
		(pt 192 24)
		(output)
		(text "q_1[3..0]" (rect 129 20 182 32)(font "Courier New" (bold)))
		(text "q_1[3..0]" (rect 129 20 182 32)(font "Courier New" (bold)))
		(line (pt 176 24)(pt 192 24)(line_width 3))
	)
	(port
		(pt 192 40)
		(output)
		(text "q_2[3..0]" (rect 129 36 182 48)(font "Courier New" (bold)))
		(text "q_2[3..0]" (rect 129 36 182 48)(font "Courier New" (bold)))
		(line (pt 176 40)(pt 192 40)(line_width 3))
	)
	(drawing
		(line (pt 16 64)(pt 176 64)(line_width 1))
		(line (pt 16 16)(pt 176 16)(line_width 1))
		(line (pt 16 64)(pt 16 16)(line_width 1))
		(line (pt 176 64)(pt 176 16)(line_width 1))
	)
)
(connector
	(pt 168 256)
	(pt 200 256)
	(bus)
)
(connector
	(pt 392 256)
	(pt 432 256)
	(bus)
)
(connector
	(pt 392 272)
	(pt 432 272)
	(bus)
)
(connector
	(pt 360 112)
	(pt 432 112)
	(bus)
)
(connector
	(pt 360 128)
	(pt 400 128)
)
(connector
	(pt 400 240)
	(pt 432 240)
)
(connector
	(pt 592 256)
	(pt 624 256)
	(bus)
)
(connector
	(pt 592 112)
	(pt 624 112)
	(bus)
)
(connector
	(pt 168 128)
	(pt 200 128)
	(bus)
)
(connector
	(pt 176 112)
	(pt 200 112)
	(bus)
)
(connector
	(pt 160 104)
	(pt 168 104)
	(bus)
)
(connector
	(pt 176 96)
	(pt 200 96)
)
(connector
	(pt 168 56)
	(pt 176 56)
)
(connector
	(pt 168 280)
	(pt 176 280)
	(bus)
)
(connector
	(pt 176 272)
	(pt 200 272)
	(bus)
)
(connector
	(pt 192 288)
	(pt 200 288)
)
(connector
	(pt 192 144)
	(pt 200 144)
)
(connector
	(pt 192 32)
	(pt 416 32)
)
(connector
	(pt 168 32)
	(pt 192 32)
)
(connector
	(pt 416 288)
	(pt 432 288)
)
(connector
	(pt 416 128)
	(pt 432 128)
)
(connector
	(pt 592 272)
	(pt 600 272)
)
(connector
	(pt 600 280)
	(pt 624 280)
)
(connector
	(pt 400 240)
	(pt 400 128)
)
(connector
	(pt 176 112)
	(pt 176 104)
	(bus)
)
(connector
	(pt 176 96)
	(pt 176 56)
)
(connector
	(pt 176 280)
	(pt 176 272)
	(bus)
)
(connector
	(pt 192 288)
	(pt 192 144)
)
(connector
	(pt 192 144)
	(pt 192 32)
)
(connector
	(pt 416 288)
	(pt 416 128)
)
(connector
	(pt 416 128)
	(pt 416 32)
)
(connector
	(pt 600 280)
	(pt 600 272)
)
(connector
	(pt 432 272)
	(pt 440 272)
	(bus)
)
(connector
	(pt 168 104)
	(pt 176 104)
	(bus)
)
(junction (pt 192 144))
(junction (pt 192 32))
(junction (pt 416 128))
(junction (pt 432 272))
(junction (pt 168 104))

⌨️ 快捷键说明

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