Forum Discussion
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,
- how to load the intial time at startup,
- how to asjust the time,
- how to enable the PPS ouput. the PPS ouput is not generated now wven though it is enabel din IP.
- 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
Occasional Contributor
Hi,
I recommend starting from:
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.
- 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.
- Same set of registers will help you to do this.
- That conduit is the PPS output
- Already answered.
Thanks.
- Sajeev_antony
Occasional 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.
- EstebanVV_Altera
Occasional Contributor
You can see here
That reset are active low "rst_n"
- Sajeev_antony
Occasional 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.