📄 i2c_altera.bdf
字号:
(text "I2C" (rect 5 0 22 12)(font "Arial" ))
(text "inst1" (rect 8 208 31 220)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "sysclk" (rect 0 0 33 12)(font "Arial" ))
(text "sysclk" (rect 21 27 54 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "clk_en" (rect 0 0 31 12)(font "Arial" ))
(text "clk_en" (rect 21 43 52 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "/reset" (rect 0 0 28 12)(font "Arial" ))
(text "/reset" (rect 21 59 49 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 0 80)
(input)
(text "Din[7..0]" (rect 0 0 42 12)(font "Arial" ))
(text "Din[7..0]" (rect 21 75 63 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 3))
)
(port
(pt 0 96)
(input)
(text "Ack_tx" (rect 0 0 34 12)(font "Arial" ))
(text "Ack_tx" (rect 21 91 55 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96)(line_width 1))
)
(port
(pt 0 112)
(input)
(text "Cmd_stop" (rect 0 0 50 12)(font "Arial" ))
(text "Cmd_stop" (rect 21 107 71 119)(font "Arial" ))
(line (pt 0 112)(pt 16 112)(line_width 1))
)
(port
(pt 0 128)
(input)
(text "Cmd_start" (rect 0 0 51 12)(font "Arial" ))
(text "Cmd_start" (rect 21 123 72 135)(font "Arial" ))
(line (pt 0 128)(pt 16 128)(line_width 1))
)
(port
(pt 0 144)
(input)
(text "Cmd_send" (rect 0 0 53 12)(font "Arial" ))
(text "Cmd_send" (rect 21 139 74 151)(font "Arial" ))
(line (pt 0 144)(pt 16 144)(line_width 1))
)
(port
(pt 0 160)
(input)
(text "Cmd_receive" (rect 0 0 66 12)(font "Arial" ))
(text "Cmd_receive" (rect 21 155 87 167)(font "Arial" ))
(line (pt 0 160)(pt 16 160)(line_width 1))
)
(port
(pt 0 176)
(input)
(text "Execute" (rect 0 0 40 12)(font "Arial" ))
(text "Execute" (rect 21 171 61 183)(font "Arial" ))
(line (pt 0 176)(pt 16 176)(line_width 1))
)
(port
(pt 168 32)
(output)
(text "Dout[7..0]" (rect 0 0 49 12)(font "Arial" ))
(text "Dout[7..0]" (rect 98 27 147 39)(font "Arial" ))
(line (pt 168 32)(pt 152 32)(line_width 3))
)
(port
(pt 168 48)
(output)
(text "Ack_rx" (rect 0 0 34 12)(font "Arial" ))
(text "Ack_rx" (rect 113 43 147 55)(font "Arial" ))
(line (pt 168 48)(pt 152 48)(line_width 1))
)
(port
(pt 168 64)
(output)
(text "Status" (rect 0 0 31 12)(font "Arial" ))
(text "Status" (rect 116 59 147 71)(font "Arial" ))
(line (pt 168 64)(pt 152 64)(line_width 1))
)
(port
(pt 168 80)
(output)
(text "DValid" (rect 0 0 31 12)(font "Arial" ))
(text "DValid" (rect 116 75 147 87)(font "Arial" ))
(line (pt 168 80)(pt 152 80)(line_width 1))
)
(port
(pt 168 96)
(output)
(text "DEnable" (rect 0 0 41 12)(font "Arial" ))
(text "DEnable" (rect 106 91 147 103)(font "Arial" ))
(line (pt 168 96)(pt 152 96)(line_width 1))
)
(port
(pt 168 112)
(output)
(text "Busy" (rect 0 0 25 12)(font "Arial" ))
(text "Busy" (rect 122 107 147 119)(font "Arial" ))
(line (pt 168 112)(pt 152 112)(line_width 1))
)
(port
(pt 168 128)
(bidir)
(text "SDA" (rect 0 0 22 12)(font "Arial" ))
(text "SDA" (rect 125 123 147 135)(font "Arial" ))
(line (pt 168 128)(pt 152 128)(line_width 1))
)
(port
(pt 168 144)
(bidir)
(text "SCL" (rect 0 0 21 12)(font "Arial" ))
(text "SCL" (rect 126 139 147 151)(font "Arial" ))
(line (pt 168 144)(pt 152 144)(line_width 1))
)
(parameter
"DIVISOR"
""
""
)
(drawing
(rectangle (rect 16 16 152 208)(line_width 1))
)
(annotation_block (parameter)(rect 1568 1192 1672 1224))
)
(symbol
(rect 568 936 680 1032)
(text "filter" (rect 5 0 27 12)(font "Arial" ))
(text "inst8" (rect 8 80 31 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_in" (rect 0 0 27 12)(font "Arial" ))
(text "rst_in" (rect 21 43 48 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 112 32)
(output)
(text "rst_out" (rect 0 0 34 12)(font "Arial" ))
(text "rst_out" (rect 57 27 91 39)(font "Arial" ))
(line (pt 112 32)(pt 96 32)(line_width 1))
)
(drawing
(rectangle (rect 16 16 96 80)(line_width 1))
)
)
(symbol
(rect 1336 264 1368 280)
(text "VCC" (rect 7 0 27 10)(font "Arial" (font_size 6)))
(text "inst7" (rect 3 5 26 17)(font "Arial" )(invisible))
(port
(pt 16 16)
(output)
(text "1" (rect 19 7 24 19)(font "Courier New" (bold))(invisible))
(text "1" (rect 19 7 24 19)(font "Courier New" (bold))(invisible))
(line (pt 16 16)(pt 16 8)(line_width 1))
)
(drawing
(line (pt 8 8)(pt 24 8)(line_width 1))
)
)
(symbol
(rect 1280 496 1312 528)
(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))
)
)
(symbol
(rect 1384 304 1552 528)
(text "I2C" (rect 5 0 22 12)(font "Arial" ))
(text "inst10" (rect 8 208 37 220)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "sysclk" (rect 0 0 33 12)(font "Arial" ))
(text "sysclk" (rect 21 27 54 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
(port
(pt 0 48)
(input)
(text "clk_en" (rect 0 0 31 12)(font "Arial" ))
(text "clk_en" (rect 21 43 52 55)(font "Arial" ))
(line (pt 0 48)(pt 16 48)(line_width 1))
)
(port
(pt 0 64)
(input)
(text "/reset" (rect 0 0 28 12)(font "Arial" ))
(text "/reset" (rect 21 59 49 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 0 80)
(input)
(text "Din[7..0]" (rect 0 0 42 12)(font "Arial" ))
(text "Din[7..0]" (rect 21 75 63 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 3))
)
(port
(pt 0 96)
(input)
(text "Ack_tx" (rect 0 0 34 12)(font "Arial" ))
(text "Ack_tx" (rect 21 91 55 103)(font "Arial" ))
(line (pt 0 96)(pt 16 96)(line_width 1))
)
(port
(pt 0 112)
(input)
(text "Cmd_stop" (rect 0 0 50 12)(font "Arial" ))
(text "Cmd_stop" (rect 21 107 71 119)(font "Arial" ))
(line (pt 0 112)(pt 16 112)(line_width 1))
)
(port
(pt 0 128)
(input)
(text "Cmd_start" (rect 0 0 51 12)(font "Arial" ))
(text "Cmd_start" (rect 21 123 72 135)(font "Arial" ))
(line (pt 0 128)(pt 16 128)(line_width 1))
)
(port
(pt 0 144)
(input)
(text "Cmd_send" (rect 0 0 53 12)(font "Arial" ))
(text "Cmd_send" (rect 21 139 74 151)(font "Arial" ))
(line (pt 0 144)(pt 16 144)(line_width 1))
)
(port
(pt 0 160)
(input)
(text "Cmd_receive" (rect 0 0 66 12)(font "Arial" ))
(text "Cmd_receive" (rect 21 155 87 167)(font "Arial" ))
(line (pt 0 160)(pt 16 160)(line_width 1))
)
(port
(pt 0 176)
(input)
(text "Execute" (rect 0 0 40 12)(font "Arial" ))
(text "Execute" (rect 21 171 61 183)(font "Arial" ))
(line (pt 0 176)(pt 16 176)(line_width 1))
)
(port
(pt 168 32)
(output)
(text "Dout[7..0]" (rect 0 0 49 12)(font "Arial" ))
(text "Dout[7..0]" (rect 98 27 147 39)(font "Arial" ))
(line (pt 168 32)(pt 152 32)(line_width 3))
)
(port
(pt 168 48)
(output)
(text "Ack_rx" (rect 0 0 34 12)(font "Arial" ))
(text "Ack_rx" (rect 113 43 147 55)(font "Arial" ))
(line (pt 168 48)(pt 152 48)(line_width 1))
)
(port
(pt 168 64)
(output)
(text "Status" (rect 0 0 31 12)(font "Arial" ))
(text "Status" (rect 116 59 147 71)(font "Arial" ))
(line (pt 168 64)(pt 152 64)(line_width 1))
)
(port
(pt 168 80)
(output)
(text "DValid" (rect 0 0 31 12)(font "Arial" ))
(text "DValid" (rect 116 75 147 87)(font "Arial" ))
(line (pt 168 80)(pt 152 80)(line_width 1))
)
(port
(pt 168 96)
(output)
(text "DEnable" (rect 0 0 41 12)(font "Arial" ))
(text "DEnable" (rect 106 91 147 103)(font "Arial" ))
(line (pt 168 96)(pt 152 96)(line_width 1))
)
(port
(pt 168 112)
(output)
(text "Busy" (rect 0 0 25 12)(font "Arial" ))
(text "Busy" (rect 122 107 147 119)(font "Arial" ))
(line (pt 168 112)(pt 152 112)(line_width 1))
)
(port
(pt 168 128)
(bidir)
(text "SDA" (rect 0 0 22 12)(font "Arial" ))
(text "SDA" (rect 125 123 147 135)(font "Arial" ))
(line (pt 168 128)(pt 152 128)(line_width 1))
)
(port
(pt 168 144)
(bidir)
(text "SCL" (rect 0 0 21 12)(font "Arial" ))
(text "SCL" (rect 126 139 147 151)(font "Arial" ))
(line (pt 168 144)(pt 152 144)(line_width 1))
)
(parameter
"DIVISOR"
""
""
)
(drawing
(rectangle (rect 16 16 152 208)(line_width 1))
)
(annotation_block (parameter)(rect 1928 544 2032 576))
)
(symbol
(rect 904 256 1104 416)
(text "i2c_cmd_7128" (rect 5 0 75 12)(font "Arial" ))
(text "inst17" (rect 8 144 37 156)(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 "busy" (rect 0 0 24 12)(font "Arial" ))
(text "busy" (rect 21 59 45 71)(font "Arial" ))
(line (pt 0 64)(pt 16 64)(line_width 1))
)
(port
(pt 0 80)
(input)
(text "rom_data[7..0]" (rect 0 0 71 12)(font "Arial" ))
(text "rom_data[7..0]" (rect 21 75 92 87)(font "Arial" ))
(line (pt 0 80)(pt 16 80)(line_width 3))
)
(port
(pt 200 32)
(output)
(text "cmd_stop" (rect 0 0 48 12)(font "Arial" ))
(text "cmd_stop" (rect 131 27 179 39)(font "Arial" ))
(line (pt 200 32)(pt 184 32)(line_width 1))
)
(port
(pt 200 48)
(output)
(text "cmd_start" (rect 0 0 49 12)(font "Arial" ))
(text "cmd_start" (rect 130 43 179 55)(font "Arial" ))
(line (pt 200 48)(pt 184 48)(line_width 1))
)
(port
(pt 200 64)
(output)
(text "cmd_send" (rect 0 0 50 12)(font "Arial" ))
(text "cmd_send" (rect 129 59 179 71)(font "Arial" ))
(line (pt 200 64)(pt 184 64)(line_width 1))
)
(port
(pt 200 80)
(output)
(text "execute" (rect 0 0 38 12)(font "Arial" ))
(text "execute" (rect 141 75 179 87)(font "Arial" ))
(line (pt 200 80)(pt 184 80)(line_width 1))
)
(port
(pt 200 96)
(output)
(text "i2c_w_finish" (rect 0 0 60 12)(font "Arial" ))
(text "i2c_w_finish" (rect 119 91 179 103)(font "Arial" ))
(line (pt 200 96)(pt 184 96)(line_width 1))
)
(port
(pt 200 112)
(output)
(text "rom_addr[6..0]" (rect 0 0 71 12)(font "Arial" ))
(text "rom_addr[6..0]" (rect 108 107 179 119)(font "Arial" ))
(line (pt 200 112)(pt 184 112)(line_width 3))
)
(port
(pt 200 128)
(output)
(text "i2c_data_t[7..0]" (rect 0 0 76 12)(font "Arial" ))
(text "i2c_data_t[7..0]" (rect 103 123 179 135)(font "Arial" ))
(line (pt 200 128)(pt 184 128)(line_width 3))
)
(parameter
"GEN_S"
"\"00000000000000000000000000000001\""
""
)
(parameter
"S_WAIT"
"\"00000000000000000000000000000010\""
""
)
(parameter
"SUBADDR"
"\"00000000000000000000000000000101\""
""
)
(parameter
"SUBADDR_ACK"
"\"00000000000000000000000000000110\""
""
)
(parameter
"DATA"
"\"00000000000000000000000000000111\""
""
)
(parameter
"DATA_ACK"
"\"00000000000000000000000000001000\""
""
)
(parameter
"GEN_P"
"\"00000000000000000000000000001001\""
""
)
(parameter
"P_WAIT"
"\"00000000000000000000000000001010\""
""
)
(parameter
"IDLE"
"\"00000000000000000000000000001011\""
""
)
(parameter
"I2C_W_OK"
"\"00000000000000000000000000001100\""
""
)
(parameter
"HALT"
"\"00000000000000000000000000001101\""
""
)
(parameter
"CREATE_CHIP_RST"
"\"00000000000000000000000000001110\""
""
)
(drawing
(rectangle (rect 16 16 184 144)(line_width 1))
)
(annotation_block (parameter)(rect 1392 552 1696 736))
)
(symbol
(rect 2024 696 2056 712)
(text "VCC" (rect 7 0 27 10)(font "Arial" (font_size 6)))
(text "inst15" (rect 3 5 32 17)(font "Arial" )(invisible))
(port
(pt 16 16)
(output)
(text "1" (rect 19 7 24 19)(font "Courier New" (bold))(invisible))
(text "1" (rect 19 7 24 19)(font "Courier New" (bold))(invisible))
(line (pt 16 16)(pt 16 8)(line_width 1))
)
(drawing
(line (pt 8 8)(pt 24 8)(line_width 1))
)
)
(symbol
(rect 920 1400 1016 1496)
(text "clk_gen" (rect 5 0 42 12)(font "Arial" ))
(text "inst19" (rect 8 80 37 92)(font "Arial" ))
(port
(pt 0 32)
(input)
(text "clkin" (rect 0 0 22 12)(font "Arial" ))
(text "clkin" (rect 21 27 43 39)(font "Arial" ))
(line (pt 0 32)(pt 16 32)(line_width 1))
)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -