Use real_type_t
as the data type for real
type signals
#681
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Currently a
vector_type_t
with the base type set toIVL_VT_REAL
is used asthe data type for real type signals. But there is also the
real_type_t
datatype, which is used as the data type for function return types and class
properties.
Move signals also over to using
real_type_t
. This ensures consistentbehavior between all sorts of constructs with a data type, makes sure that
vector_type_t
is only used for vector types.It also allows to eventually differentiate between
real
andshortreal
at the elaboration stage. Currently this information is discarded by the
parser.
As a side effect this PR also fixes the rather obscure case of passing a call
to a function with a real return type as the argument to the Verilog AMS
abs()
function.