Forum Discussion

Sajeev_antony's avatar
Sajeev_antony
Icon for Occasional Contributor rankOccasional Contributor
2 months ago

Altera TOD clock IP with HPS for PTP time sync

We have interfaced the TOD clock IP with Stratix 10 HPS LWH2F bridge with below settings,

The LWH2F runs at 100Mhz and the TOD clock is 500Mhz.

We need to know,

  1. how to load the intial time at startup,
  2. how to asjust the time,
  3. how to enable the PPS ouput. the PPS ouput is not generated now wven though it is enabel din IP.
  4. Complete list of registers with address and function.

We are using Quartus Prime Pro 26.1 for development.

We plan to use the skyworks accutime software to synchroise the PTP time. The 500Mhz TOD clock is gernated by the si5518 chip.

4 Replies

  • EstebanVV_Altera's avatar
    EstebanVV_Altera
    Icon for Occasional Contributor rankOccasional Contributor

    Hi,

    I recommend starting from: 

    https://docs.altera.com/r/docs/683044/25.1/ethernet-design-example-components-user-guide/time-of-day-clock

    If the clock frequency of the bridge is 100Mhz, then it is recommended to connect the clock of the register (Avalon Memory Map) Interface to that same 100MHz, this is to read/write register values.

    1. For example, following the guide if you write to registers 0x00, 0x01, and 0x02 you will be able to load the seconds and nanoseconds values.
    2. Same set of registers will help you to do this.
    3. That conduit is the PPS output

       

    4. Already answered.

    Thanks.

    • Sajeev_antony's avatar
      Sajeev_antony
      Icon for Occasional Contributor rankOccasional Contributor

      csr_clock is connected to 100Mhz, and period_clock is connected to 500Mhz.

      both resets are made high assuming they are active low reset inputs.

  • Sajeev_antony's avatar
    Sajeev_antony
    Icon for Occasional Contributor rankOccasional Contributor

    The CSR is connected to LWH2F bridge running at 100Mhz.

    Reading registers  0x00, 0x01, and 0x02 is always zero, not incrementing . and the PPS ouput is not toggling.

    Do i have to write into any register to enable the TOD and PPS ouput.