📄 i2c_eeprom.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.
*/
(header "graphic" (version "1.3"))
(pin
(input)
(rect -48 208 120 224)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "clk1" (rect 5 0 25 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 -152 344 -104 360))
)
(pin
(input)
(rect -48 224 120 240)
(text "INPUT" (rect 133 0 161 10)(font "Arial" (font_size 6)))
(text "pld_CLEAR_n" (rect 5 0 73 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 -72 288 -24 304))
)
(pin
(output)
(rect 1056 312 1232 328)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "HC_SI" (rect 90 0 123 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 1248 336 1296 352))
)
(pin
(output)
(rect 1056 296 1232 312)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "HC_CP" (rect 90 0 127 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 1248 320 1296 336))
)
(pin
(bidir)
(rect 552 208 728 224)
(text "BIDIR" (rect 1 0 25 10)(font "Arial" (font_size 6)))
(text "I2C_sda" (rect 90 0 131 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 776 224 824 240))
)
(pin
(bidir)
(rect 552 224 728 240)
(text "BIDIR" (rect 1 0 25 10)(font "Arial" (font_size 6)))
(text "I2C_clk" (rect 90 0 127 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 776 240 824 256))
)
(symbol
(rect 248 184 400 280)
(text "i2c_top" (rect 5 0 40 12)(font "Arial" ))
(text "inst" (rect 8 80 25 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 "rst_n" (rect 0 0 24 12)(font "Arial" ))
(text "rst_n" (rect 21 43 45 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 152 48)
(output)
(text "scl" (rect 0 0 14 12)(font "Arial" ))
(text "scl" (rect 117 43 131 55)(font "Arial" ))
(line (pt 152 48)(pt 136 48)(line_width 1))
)
(port
(pt 152 64)
(output)
(text "data_rep[15..0]" (rect 0 0 74 12)(font "Arial" ))
(text "data_rep[15..0]" (rect 57 59 131 71)(font "Arial" ))
(line (pt 152 64)(pt 136 64)(line_width 3))
)
(port
(pt 152 32)
(bidir)
(text "sda" (rect 0 0 17 12)(font "Arial" ))
(text "sda" (rect 114 27 131 39)(font "Arial" ))
(line (pt 152 32)(pt 136 32)(line_width 1))
)
(parameter
"IDLE"
"B\"0000001\""
""
)
(parameter
"WR_BYTE"
"B\"0000010\""
""
)
(parameter
"WR_ACK"
"B\"0000100\""
""
)
(parameter
"DELAY"
"B\"0001000\""
""
)
(parameter
"RD_BYTE"
"B\"0010000\""
""
)
(parameter
"RD_ACK"
"B\"0100000\""
""
)
(parameter
"SHOW"
"B\"1000000\""
""
)
(drawing
(rectangle (rect 16 16 136 80)(line_width 1))
)
(annotation_block (parameter)(rect 400 72 528 184))
)
(symbol
(rect 776 272 944 400)
(text "hc164_driver" (rect 5 0 68 12)(font "Arial" ))
(text "inst1" (rect 8 112 31 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_n" (rect 0 0 24 12)(font "Arial" ))
(text "rst_n" (rect 21 43 45 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "led[3..0]" (rect 0 0 40 12)(font "Arial" ))
(text "led[3..0]" (rect 21 59 61 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 3))
)
(port
(pt 0 80)
(input)
(text "dot[3..0]" (rect 0 0 41 12)(font "Arial" ))
(text "dot[3..0]" (rect 21 75 62 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 3))
)
(port
(pt 0 96)
(input)
(text "seg_value[15..0]" (rect 0 0 82 12)(font "Arial" ))
(text "seg_value[15..0]" (rect 21 91 103 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96)(line_width 3))
)
(port
(pt 168 32)
(output)
(text "hc_cp" (rect 0 0 29 12)(font "Arial" ))
(text "hc_cp" (rect 118 27 147 39)(font "Arial" ))
(line (pt 168 32)(pt 152 32)(line_width 1))
)
(port
(pt 168 48)
(output)
(text "hc_si" (rect 0 0 25 12)(font "Arial" ))
(text "hc_si" (rect 122 43 147 55)(font "Arial" ))
(line (pt 168 48)(pt 152 48)(line_width 1))
)
(drawing
(rectangle (rect 16 16 152 112)(line_width 1))
)
)
(symbol
(rect 576 360 608 392)
(text "GND" (rect 8 16 29 26)(font "Arial" (font_size 6)))
(text "inst9" (rect 3 21 26 33)(font "Arial" )(invisible))
(port
(pt 16 0)
(output)
(text "1" (rect 18 0 23 12)(font "Courier New" (bold))(invisible))
(text "1" (rect 18 0 23 12)(font "Courier New" (bold))(invisible))
(line (pt 16 8)(pt 16 0)(line_width 1))
)
(drawing
(line (pt 8 8)(pt 16 16)(line_width 1))
(line (pt 16 16)(pt 24 8)(line_width 1))
(line (pt 8 8)(pt 24 8)(line_width 1))
)
)
(connector
(text "seg[15..0]" (rect 666 352 715 364)(font "Arial" ))
(pt 776 368)
(pt 656 368)
(bus)
)
(connector
(pt 776 352)
(pt 592 352)
(bus)
)
(connector
(pt 592 352)
(pt 592 360)
(bus)
)
(connector
(pt 944 304)
(pt 1056 304)
)
(connector
(pt 944 320)
(pt 1056 320)
)
(connector
(pt 400 216)
(pt 552 216)
)
(connector
(pt 400 232)
(pt 552 232)
)
(connector
(text "reset_n" (rect 682 304 718 316)(font "Arial" ))
(pt 776 320)
(pt 648 320)
)
(connector
(text "clk50" (rect 682 288 707 300)(font "Arial" ))
(pt 648 304)
(pt 776 304)
)
(connector
(text "seg[15..0]" (rect 410 232 459 244)(font "Arial" ))
(pt 520 248)
(pt 400 248)
(bus)
)
(connector
(text "clk50" (rect 154 200 179 212)(font "Arial" ))
(pt 120 216)
(pt 248 216)
)
(connector
(text "reset_n" (rect 154 216 190 228)(font "Arial" ))
(pt 120 232)
(pt 248 232)
)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -