Issues with Conv2D Formula for Padding in Integer-Arithmetic-Only Inference

Hi,
I am currently working on implementing an FPGA to accelerate the inference of a quantized model using Integer-Arithmetic-Only Inference, as described in this paper.

However, the issue I’m facing is that in a Conv2D layer with padding, the formula below seems to be incorrect for calculations.

Could someone provide the correct formula? Thanks!