Is it possible to specify output types of code generated with dpigen?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
I am using dpigen to generate DPI C functions which can be called in my SystemVerilog testbench. However the output of my DPIC stimulus function is a real in SystemVerilog which I would prefer to be logic [7:0]. Is there a way to control the type of the output of the dpigen generated functions the way we can set the input type?
I've read the documentation for dpigen and codegen and don't see anything like this, but I would like to confirm. This question (https://www.mathworks.com/matlabcentral/answers/469134-dpigen-support-for-converting-matlab-fi-data-type-to-systemverilog-bit-vectors-instead-of-shortint?s_tid=srchtitle) seems to suggest outputs types can be set but that is only for Fixed Point Matlab.
0 Kommentare
Antworten (0)
Siehe auch
Kategorien
Mehr zu Code Verification finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!