You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
however, when I try to pass a structure to a DPI-C function I get this error:
%Error: /path/to/my/file.sv:23: Unsupported: DPI argument of type BASICDTYPE 'logic'
%Error: /path/to/my/file.sv:23: ... For best portability, use bit, byte, int, or longint
Even though my structure is defined as such:
typedef struct {
int ip_nrst;
int ei_fs_clk;
int ei_dsp_clk;
int m_drate;
int m_dcoef;
int i_voice;
int i_voice_stb;
int eo_dfs_clk;
int o_band;
int o_band_stb;
} iostruct;
I'll look into this and see what can be done, however, I know little about the internals of Verilator, so I'm probably not the person to try to fix this.
The text was updated successfully, but these errors were encountered:
Author Name: Rob Stoddard
Original Redmine Issue: 1190 from https://www.veripool.org
Original Assignee: Wilson Snyder (@wsnyder)
How do I make this a feature request?
In this bug, structs were added as a packed array of logic:
https://www.veripool.org/issues/181-Verilator-Support-struct-and-union
however, when I try to pass a structure to a DPI-C function I get this error:
%Error: /path/to/my/file.sv:23: Unsupported: DPI argument of type BASICDTYPE 'logic'
%Error: /path/to/my/file.sv:23: ... For best portability, use bit, byte, int, or longint
Even though my structure is defined as such:
typedef struct {
int ip_nrst;
int ei_fs_clk;
int ei_dsp_clk;
int m_drate;
int m_dcoef;
int i_voice;
int i_voice_stb;
int eo_dfs_clk;
int o_band;
int o_band_stb;
} iostruct;
I'll look into this and see what can be done, however, I know little about the internals of Verilator, so I'm probably not the person to try to fix this.
The text was updated successfully, but these errors were encountered: