Matlab in Verification

Recently, while reading specification (could not share about it!) found that ‘specification’ has few block which has Fourier transforms, DFT, IDFT. As it is required to verify those blocks, models of those blocks are required in SV/UVM Verification Environment. One option would be Matlab, but by choosing Matlab VE is dependant on Matlab license and it may add cost.

Please share your inputs about …

  1. A better language to model them, and how to validate developed model.
  2. It seems me language would be other than HDL/HVL, how the model can be integrated in SV/UVM based Verification Environment.

Based on my limited knowledge on Matlab, I can give you the following suggestions.
You can use the MATLab tool which converts the MATLab .m to either .c or .v.

  1. .v file can be used directly by instantiating the module somewhere as a reference module for you DUT.
  2. .c can be used through DPI and then accessed.

Might need a little optimizations though.

  • Ashith

In reply to prashant.kaushik:

https://verificationacademy.com/verification-horizons/june-2015-volume-11-issue-2/Reuse-MATLAB-Functions-and-Simulink-Models-in-UVM-Environments-with-Automatic-SystemVerilog-DPI-Component-Generation