Xilinx Application Note 1078 adapted for Zedboard