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

📄 i2c.bdf

📁 vhdl的很多例子
💻 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-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 -408 64 -240 80)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "clk" (rect 5 0 19 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)))
	(annotation_block (location)(rect -320 40 -232 72))
)
(pin
	(input)
	(rect -424 104 -256 120)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "reset" (rect 5 0 29 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)))
	(annotation_block (location)(rect -432 120 -344 152))
)
(pin
	(input)
	(rect -432 208 -264 224)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "write" (rect 5 0 27 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)))
	(annotation_block (location)(rect -448 224 -360 256))
)
(pin
	(input)
	(rect -408 312 -240 328)
	(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
	(text "rd" (rect 5 0 14 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)))
	(annotation_block (location)(rect -424 344 -336 376))
)
(pin
	(output)
	(rect 608 144 784 160)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "scl" (rect 90 0 104 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))
	)
	(annotation_block (location)(rect 824 104 904 136))
)
(pin
	(output)
	(rect 608 176 784 192)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "segcom[1..0]" (rect 90 0 154 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))
	)
	(annotation_block (location)(rect 848 224 936 272))
)
(pin
	(output)
	(rect 608 192 784 208)
	(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
	(text "seg7[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))
	)
	(annotation_block (location)(rect 840 272 928 384))
)
(pin
	(bidir)
	(rect 608 160 784 176)
	(text "BIDIR" (rect 1 0 25 10)(font "Arial" (font_size 6)))
	(text "sda" (rect 90 0 107 12)(font "Arial" ))
	(pt 0 8)
	(drawing
		(line (pt 56 4)(pt 78 4)(line_width 1))
		(line (pt 0 8)(pt 52 8)(line_width 1))
		(line (pt 56 12)(pt 78 12)(line_width 1))
		(line (pt 78 4)(pt 82 8)(line_width 1))
		(line (pt 78 12)(pt 82 8)(line_width 1))
		(line (pt 56 4)(pt 52 8)(line_width 1))
		(line (pt 52 8)(pt 56 12)(line_width 1))
	)
	(text "VCC" (rect 4 7 24 17)(font "Arial" (font_size 6)))
	(annotation_block (location)(rect 824 152 904 184))
)
(symbol
	(rect 360 120 544 248)
	(text "i2c_test" (rect 5 0 43 12)(font "Arial" ))
	(text "inst" (rect 8 112 25 124)(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 "rst" (rect 0 0 12 12)(font "Arial" ))
		(text "rst" (rect 21 43 33 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "data_in[3..0]" (rect 0 0 61 12)(font "Arial" ))
		(text "data_in[3..0]" (rect 21 59 82 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 3))
	)
	(port
		(pt 0 80)
		(input)
		(text "wr_input" (rect 0 0 40 12)(font "Arial" ))
		(text "wr_input" (rect 21 75 61 87)(font "Arial" ))
		(line (pt 0 80)(pt 16 80)(line_width 1))
	)
	(port
		(pt 0 96)
		(input)
		(text "rd_input" (rect 0 0 38 12)(font "Arial" ))
		(text "rd_input" (rect 21 91 59 103)(font "Arial" ))
		(line (pt 0 96)(pt 16 96)(line_width 1))
	)
	(port
		(pt 184 32)
		(output)
		(text "scl" (rect 0 0 14 12)(font "Arial" ))
		(text "scl" (rect 149 27 163 39)(font "Arial" ))
		(line (pt 184 32)(pt 168 32)(line_width 1))
	)
	(port
		(pt 184 64)
		(output)
		(text "en[1..0]" (rect 0 0 37 12)(font "Arial" ))
		(text "en[1..0]" (rect 126 59 163 71)(font "Arial" ))
		(line (pt 184 64)(pt 168 64)(line_width 3))
	)
	(port
		(pt 184 80)
		(output)
		(text "seg_data[7..0]" (rect 0 0 70 12)(font "Arial" ))
		(text "seg_data[7..0]" (rect 93 75 163 87)(font "Arial" ))
		(line (pt 184 80)(pt 168 80)(line_width 3))
	)
	(port
		(pt 184 48)
		(bidir)
		(text "sda" (rect 0 0 17 12)(font "Arial" ))
		(text "sda" (rect 146 43 163 55)(font "Arial" ))
		(line (pt 184 48)(pt 168 48)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 168 112)(line_width 1))
	)
)
(symbol
	(rect -152 168 40 264)
	(text "delay_reset_block" (rect 5 0 108 14)(font "Arial" (font_size 8)))
	(text "inst2" (rect 8 80 31 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "clock_in" (rect 0 0 46 14)(font "Arial" (font_size 8)))
		(text "clock_in" (rect 21 27 67 41)(font "Arial" (font_size 8)))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "reset_n" (rect 0 0 43 14)(font "Arial" (font_size 8)))
		(text "reset_n" (rect 21 43 64 57)(font "Arial" (font_size 8)))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 192 32)
		(output)
		(text "delayed_reset_n" (rect 0 0 95 14)(font "Arial" (font_size 8)))
		(text "delayed_reset_n" (rect 76 27 171 41)(font "Arial" (font_size 8)))
		(line (pt 192 32)(pt 176 32)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 176 80)(line_width 1))
	)
)
(symbol
	(rect -152 272 40 368)
	(text "delay_reset_block" (rect 5 0 108 14)(font "Arial" (font_size 8)))
	(text "inst3" (rect 8 80 31 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "clock_in" (rect 0 0 46 14)(font "Arial" (font_size 8)))
		(text "clock_in" (rect 21 27 67 41)(font "Arial" (font_size 8)))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "reset_n" (rect 0 0 43 14)(font "Arial" (font_size 8)))
		(text "reset_n" (rect 21 43 64 57)(font "Arial" (font_size 8)))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 192 32)
		(output)
		(text "delayed_reset_n" (rect 0 0 95 14)(font "Arial" (font_size 8)))
		(text "delayed_reset_n" (rect 76 27 171 41)(font "Arial" (font_size 8)))
		(line (pt 192 32)(pt 176 32)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 176 80)(line_width 1))
	)
)
(symbol
	(rect 88 152 248 248)
	(text "i2c_t" (rect 5 0 28 12)(font "Arial" ))
	(text "inst4" (rect 8 80 31 92)(font "Arial" ))
	(port
		(pt 0 32)
		(input)
		(text "rst" (rect 0 0 12 12)(font "Arial" ))
		(text "rst" (rect 21 27 33 39)(font "Arial" ))
		(line (pt 0 32)(pt 16 32)(line_width 1))
	)
	(port
		(pt 0 48)
		(input)
		(text "wr_input" (rect 0 0 40 12)(font "Arial" ))
		(text "wr_input" (rect 21 43 61 55)(font "Arial" ))
		(line (pt 0 48)(pt 16 48)(line_width 1))
	)
	(port
		(pt 0 64)
		(input)
		(text "rd_input" (rect 0 0 38 12)(font "Arial" ))
		(text "rd_input" (rect 21 59 59 71)(font "Arial" ))
		(line (pt 0 64)(pt 16 64)(line_width 1))
	)
	(port
		(pt 160 32)
		(output)
		(text "data_out[3..0]" (rect 0 0 68 12)(font "Arial" ))
		(text "data_out[3..0]" (rect 71 27 139 39)(font "Arial" ))
		(line (pt 160 32)(pt 144 32)(line_width 3))
	)
	(port
		(pt 160 48)
		(output)
		(text "wr_output" (rect 0 0 47 12)(font "Arial" ))
		(text "wr_output" (rect 92 43 139 55)(font "Arial" ))
		(line (pt 160 48)(pt 144 48)(line_width 1))
	)
	(port
		(pt 160 64)
		(output)
		(text "rd_output" (rect 0 0 46 12)(font "Arial" ))
		(text "rd_output" (rect 93 59 139 71)(font "Arial" ))
		(line (pt 160 64)(pt 144 64)(line_width 1))
	)
	(drawing
		(rectangle (rect 16 16 144 80)(line_width 1))
	)
)
(connector
	(pt 64 184)
	(pt 64 112)
)
(connector
	(pt -152 200)
	(pt -176 200)
)
(connector
	(pt -152 304)
	(pt -176 304)
)
(connector
	(pt 40 304)
	(pt 64 304)
)
(connector
	(pt 64 304)
	(pt 64 216)
)
(connector
	(pt -152 320)
	(pt -240 320)
)
(connector
	(pt -264 216)
	(pt -152 216)
)
(connector
	(pt 40 200)
	(pt 88 200)
)
(connector
	(pt -176 72)
	(pt -176 200)
)
(connector
	(pt -176 200)
	(pt -176 304)
)
(connector
	(pt 64 216)
	(pt 88 216)
)
(connector
	(pt 88 184)
	(pt 64 184)
)
(connector
	(pt 328 72)
	(pt 328 152)
)
(connector
	(pt -240 72)
	(pt -176 72)
)
(connector
	(pt -176 72)
	(pt 328 72)
)
(connector
	(pt 360 152)
	(pt 328 152)
)
(connector
	(pt 280 112)
	(pt 280 168)
)
(connector
	(pt -256 112)
	(pt 64 112)
)
(connector
	(pt 64 112)
	(pt 280 112)
)
(connector
	(pt 360 168)
	(pt 280 168)
)
(connector
	(pt 360 184)
	(pt 248 184)
	(bus)
)
(connector
	(pt 360 200)
	(pt 248 200)
)
(connector
	(pt 360 216)
	(pt 248 216)
)
(connector
	(pt 544 152)
	(pt 608 152)
)
(connector
	(pt 544 184)
	(pt 608 184)
	(bus)
)
(connector
	(pt 544 200)
	(pt 608 200)
	(bus)
)
(connector
	(pt 544 168)
	(pt 608 168)
)
(junction (pt -176 200))
(junction (pt -176 72))
(junction (pt 64 112))

⌨️ 快捷键说明

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