Hi
I am working on integration of MATLAB generated DUT model into a UVMF testbench.
I have been able to use ‘dpigen’ function in MATLAB to convert the MATLAB code into C code and generate a SystemVerilog wrapper which uses DPI-C to enable calling the generated C function from SystemVerilog.
I understand that I can easily instantiate such an SV wrapper inside a traditional, module based testbench. But, in order to integrate this model into a UVMF generated testbench, I can’t use this SV wrapper module, because the UVMF generator creates a predictor class, and we can’t instantiate a module inside of a class. I wonder what am I supposed to do? Maybe I should try to use DPI-C inside the predictor class to call the C code generated by dpigen? That sounds a little complicated. Is there some example available which makes this a little simpler?
Thank you
In reply to Farhad:
In the UVMF/Matlab flow, all of the predictor code calling the DPI-C Matlab functions will be auto-generated for you. You will not need to manually write any of it.
Email me so that I can share an example
graeme.jessiman@siemens.com