Forum Discussion

skyjuice88's avatar
skyjuice88
Icon for New Contributor rankNew Contributor
2 years ago

Constraining MII Interface (Input/Output Delay)

While I know how to constraint regular I/O delays (set_input_delay min/max and set_output_delay min/max), when it comes to MII-related timing I am a bit confused.

The datasheet of the PHYs have the following timing specs.

RXDV, RXD, RXCLK and TXCLK are inputs to the design, while TXEN and TXD are outputs of the designs.

How exactly should I constrain the timing constraints correctly?

8 Replies

  • Nurina's avatar
    Nurina
    Icon for Regular Contributor rankRegular Contributor

    Hello,


    Thank you for using Intel Communities. Please allow some time while I investigate your problem.


    Regards,

    Nurina


  • Nurina's avatar
    Nurina
    Icon for Regular Contributor rankRegular Contributor

    Hello,


    May I know which device you are targeting?


    Regards,

    Nurina


  • Nurina's avatar
    Nurina
    Icon for Regular Contributor rankRegular Contributor

    Thanks, and which Quartus version are you using?


    Regards,

    Nurina


  • Nurina's avatar
    Nurina
    Icon for Regular Contributor rankRegular Contributor

    Hello,


    Sorry for the late response.


    Clocks:

    Add create_clock for both RX and TX clocks to input port.


    RX signals:

    set_input_delay -clock MII_RXCLK -max 28.0 [get_ports {RXDV RXD*}] -add_delay

    set_input_delay -clock MII_RXCLK -min 12.0 [get_ports {RXDV RXD*}] -add_delay


    TX signals.

    set_output_delay -clock MII_TXCLK -max 12.0 [get_ports {TXEN TXD*}] -add_delay

    set_output_delay -clock MII_TXCLK -min 0 [get_ports {TXEN TXD*}] -add_delay



    Regards,

    Nurina


    p/s: If any answer from the community or Intel Support are helpful, please feel free to give best answer or rate 4/5 survey.


  • Nurina's avatar
    Nurina
    Icon for Regular Contributor rankRegular Contributor

    Hi,


    May I know if above solution helped?


    Regards,

    Nurina


    p/s: If any answer from the community or Intel Support are helpful, please feel free to give best answer or rate 4/5 survey.