DPI-C in SystemVerilog Testbench (Output of C Model is not matching with SV output)

In reply to yasirdv:

You did not make your code publicly accessible. It would be better to paste and format your code directly into your posting anyways.