I understand that you want to connect 'pmod AD2' with 'ZEDBOARD' and pogram it through HDL coder.
You can refer to this link which talks about the above in brief - https://www.mathworks.com/help/hdlcoder/ug/ip-core-generation-of-an-i2c-controller-ip-to-configure-the-audio-codec-chip.html.
Also, there is a relevant MATLAB answer post that you can refer as well - https://www.mathworks.com/matlabcentral/answers/649013-reading-data-from-pmod-adc-through-i2c.
I hope this helps resolve your issue.