FPGA connects two 100M PHY chips DP83826I and wants the chips to work in RMII SLAVE mode. FPGA provides two 50MHZ clocks to DP83826I.
Current phenomenon: FPGA controls two 83826 to send and receive data to each other for testing. The transmission is based on RMII’s 50MHZ, 2-bit rate, and the received data has only a speed of 25MHZ. The length of RX_DV and TX_EN is the same, and the 2-bit data send and receive comparison aside from the mismatch between 50M and 25M speed is sometimes wrong.
Register configuration order:
0x001f, 0x8000 //reset register, hard reset, wait for one second
0x0017, 0x0183 //RMII register, reference clock selection 50MHZ, rmii tx clock shift enable
0x0468, 0x109f //extended register, set RMII slave mode
0x001f, 0x4000 //reset register, soft reset, retain register configuration, reset hardware