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
longint is the sole type that is used in the Verilog API. This makes sense given the limitations of the DPI, but I often end up with compiler warnings due to automatic casts from longint <-> whatever the type of my knob is.
For example, bit types are common for boolean knobs, and the implied casting gives several warnings on this line:
longint
is the sole type that is used in the Verilog API. This makes sense given the limitations of the DPI, but I often end up with compiler warnings due to automatic casts fromlongint
<-> whatever the type of my knob is.For example,
bit
types are common for boolean knobs, and the implied casting gives several warnings on this line:In order to avoid these warnings, I have to manually cast everything in a very ugly manner:
What I'm proposing is to wrap the API in a templated class, and have the API do the casting internally.
That way, my ugly casting example can become the following in user code:
The text was updated successfully, but these errors were encountered: