- /*
- 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 "symbol" (version "1.1"))
- (symbol
- (rect 16 16 112 144)
- (text "i2c_top" (rect 5 0 40 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_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 96 48)
- (output)
- (text "scl" (rect 0 0 14 12)(font "Arial" ))
- (text "scl" (rect 61 43 75 55)(font "Arial" ))
- (line (pt 96 48)(pt 80 48)(line_width 1))
- )
- (port
- (pt 96 64)
- (output)
- (text "hc_cp" (rect 0 0 29 12)(font "Arial" ))
- (text "hc_cp" (rect 46 59 75 71)(font "Arial" ))
- (line (pt 96 64)(pt 80 64)(line_width 1))
- )
- (port
- (pt 96 80)
- (output)
- (text "hc_si" (rect 0 0 25 12)(font "Arial" ))
- (text "hc_si" (rect 50 75 75 87)(font "Arial" ))
- (line (pt 96 80)(pt 80 80)(line_width 1))
- )
- (port
- (pt 96 32)
- (bidir)
- (text "sda" (rect 0 0 17 12)(font "Arial" ))
- (text "sda" (rect 58 27 75 39)(font "Arial" ))
- (line (pt 96 32)(pt 80 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 80 112)(line_width 1))
- )
- (annotation_block (parameter)(rect 112 -64 212 16))
- )