I have been looking all over for a full PTP reference design for either Cyclone V SoC or Arria 10 SoC. I see the OP was looking for one as well (albeit for Nios), I wonder if anyone has ever found one? There is the Altera reference design for 1588 which uses Arria V SoC (which is a really expensive device), and when attempting to port that to either Cyclone V or Arria 10, many of the IP blocks are incompatible and the system needs rebuilt, and Linux drivers will not work. I would prefer to run PTP on the dual ARM(SoC), but if there is a good working Nios design, that may be fine as well. I downloaded the zip file attached by nikorenic but it was in 12.0 and I'm using 16.1 so I had errors trying to pull it up...