briansune / Tang-Mega-138K-Pro-SFP-2.5G

Tang-Mega-138K Pro-SFP-2.5G

Home Page:https://briansune.github.io/Tang-Mega-138K-Pro-SFP-2.5G/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

TangMega-138KPro-SFP-2.5G

If this project is constructive, welcome to donate a drink to PayPal.

This example is modified from https://www.gowinsemi.com/en/support/ip_detail/150/

The purpose of the SFP 2.5G loop is to verify the sanity of the SFP+ hardware and interface.

The reference clock of the serial high speed bank 1 is 125MHz. Such reference clock is generated from the U2 MS5351M.

No IIC is needed to setup the MS5351M oscillator as OTP is set to 125MHz (differential clock).

User would require a SFP+ adapter 2G or above.

image

image

How to test?

Open serial terminal (no newline and carrier return)

Enter the following address:

  1. E> W 0003 F5A1490D
  2. E> R 0003
  3. R< G 0003 F5A1490D
  4. E> R 0080
  5. R< G 0080 80000000
  6. E> W 0000 00000001
  7. E> W 0001 00000001
  8. E> W 0030 00000021 // LED should off
  9. E> W 0030 00000001
  10. E> W 0020 00000063
  11. E> W 0011 00000003 // LED should off (link down)
  12. E> W 0011 00000002 // LED should on (link up)

Reference: https://www.gowinsemi.com/upload/database_doc/2787/document/65c1e06fef5ce.pdf