This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VM: How to connect TDA4VM RMII_REF_CLK when we simultaneously use MAC-TO-MAC and MAC-TO-PHY

Part Number: TDA4VM

Hi Expert,
I want to use two RMII interface of CPSW to connect with another MAC and external PHY.
As the below figure shown, For the PHY, I plan to use external clock source for the PHY, and use the TDA4VM internal clock source (CLKOUT) for the MAC-TO-MAC connection. Based on the TDA4VM TRM chapter 12.2.2.2.1 description, whatever we use external clock source or internal clock source for RMII interface, we should connect RMII_REF_CLK pin to the peer device. 

However, all of TDA4VM RMII interfaces share the only RMII_REF_CLK pin.

The question what I want to ask is :

How to handle the pin of RMII_REF_CLK if we simultaneously use another MAC and external PHY? Do we directly connect them one by one with daisy chain, like the dash line shown in the below figure? If that, how to guarantee the clock is not messy and the data synchronize of RMII1 and RMII2 are correct. Because the REF_CLK phase of PHY output might be different with the MAC-TO-MAC REF_CLK phase.

Another question is about detailed MAC-TO-MAC connection. Could you kindly help me check whether the connection is right, especially for RX_ER? I plan to pull them to ground with resistors.

Thanks a lot~

  • Nick,

    You shoud not use the CLKOUT from the SoC to create the refclk.

    Instead, something on the PCB (like the PHY) can source the REF_CLK to all components.  You should minimize stubs and run an ibis model simulation to ensure the clock is clean at all endpoints.  

    In addition, you can verify that the respective setup/hold vs tdmin/tdmax from the respective data sheets all line up to give adequate operating margin considering the route lengths of the clock.  Since this is a relatively slow interface it should be OK.

    Regards,

    Kyle