?? i2c_fpga.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 -64 -96 104 -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 -64 -80 -16 -64))
)
(pin
(input)
(rect -64 -56 104 -40)
(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 -64 -40 -16 -24))
)
(pin
(input)
(rect -64 48 104 64)
(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 -64 64 -16 80))
)
(pin
(input)
(rect -64 152 104 168)
(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 -64 168 -16 184))
)
(pin
(output)
(rect 848 -16 1024 0)
(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 944 -80 992 -64))
)
(pin
(output)
(rect 848 16 1024 32)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "seg_com[1..0]" (rect 90 0 160 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 944 -48 992 -16))
)
(pin
(output)
(rect 848 32 1024 48)
(text "OUTPUT" (rect 1 0 39 10)(font "Arial" (font_size 6)))
(text "seg_data[7..0]" (rect 90 0 160 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 976 72 1024 184))
)
(pin
(bidir)
(rect 848 0 1024 16)
(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 944 -64 992 -48))
)
(symbol
(rect 392 -8 552 88)
(text "i2c_test" (rect 5 0 43 12)(font "Arial" ))
(text "inst1" (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))
)
)
(symbol
(rect 152 8 344 104)
(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 112 344 208)
(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 624 -40 808 88)
(text "i2c" (rect 5 0 19 12)(font "Arial" ))
(text "inst4" (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" (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))
)
(parameter
"div_parameter"
""
""
)
(parameter
"start"
""
""
)
(parameter
"first"
""
""
)
(parameter
"second"
""
""
)
(parameter
"third"
""
""
)
(parameter
"fourth"
""
""
)
(parameter
"fifth"
""
""
)
(parameter
"sixth"
""
""
)
(parameter
"seventh"
""
""
)
(parameter
"eighth"
""
""
)
(parameter
"ack"
""
""
)
(parameter
"stop"
""
""
)
(parameter
"ini"
""
""
)
(parameter
"sendaddr"
""
""
)
(parameter
"write_data"
""
""
)
(parameter
"read_data"
""
""
)
(parameter
"read_ini"
""
""
)
(drawing
(rectangle (rect 16 16 168 112)(line_width 1))
)
(annotation_block (parameter)(rect 616 -320 728 -64))
)
(connector
(pt 552 24)
(pt 624 24)
(bus)
)
(connector
(pt 552 40)
(pt 624 40)
)
(connector
(pt 552 56)
(pt 624 56)
)
(connector
(pt 624 -8)
(pt 576 -8)
)
(connector
(pt 392 24)
(pt 368 24)
)
(connector
(pt 368 24)
(pt 368 -48)
)
(connector
(pt 624 8)
(pt 544 8)
)
(connector
(pt 544 8)
(pt 544 -48)
)
(connector
(pt 576 -8)
(pt 576 -88)
)
(connector
(pt 152 40)
(pt 128 40)
)
(connector
(pt 152 144)
(pt 128 144)
)
(connector
(pt 128 -88)
(pt 128 40)
)
(connector
(pt 128 40)
(pt 128 144)
)
(connector
(pt 344 40)
(pt 392 40)
)
(connector
(pt 344 144)
(pt 368 144)
)
(connector
(pt 368 144)
(pt 368 56)
)
(connector
(pt 392 56)
(pt 368 56)
)
(connector
(pt 808 -8)
(pt 848 -8)
)
(connector
(pt 808 8)
(pt 848 8)
)
(connector
(pt 808 24)
(pt 848 24)
(bus)
)
(connector
(pt 808 40)
(pt 848 40)
(bus)
)
(connector
(pt 152 56)
(pt 104 56)
)
(connector
(pt 104 160)
(pt 152 160)
)
(connector
(pt 104 -48)
(pt 368 -48)
)
(connector
(pt 368 -48)
(pt 544 -48)
)
(connector
(pt 104 -88)
(pt 128 -88)
)
(connector
(pt 128 -88)
(pt 576 -88)
)
(junction (pt 368 -48))
(junction (pt 128 -88))
(junction (pt 128 40))
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -