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
@creiter64 That can be done but I would postpone it until after v4.7.
Did you know that our check_equal subprograms are generated by Python? I would encourage you to have a look at https://github.com/VUnit/vunit/blob/master/vunit/vhdl/check/tools/generate_check_equal.py. There are templates for subprogram APIs, implementations, and tests. The templates have a number of blanks that are specified for each combination of got and expected parameter types that we support . Maybe you can figure out how to add support for the fix point datatypes? A complicating factor is that this would be the first check equals not supported in VHDL-93 so we will need to create a separate set of files that we use when compiling for VHDL-2008 and beyond. That can be ignored for the first attempt though.
Hi all,
It would be very helpful if VUnit had support for using
check_equal(...)
on theieee.fixed_pkg
data types.Currently I have to do all my testbenches using fixed point arithmetic like this:
check_true(A = B);
So that VUnit uses the equality operator from the fixed_pkg.
For verbosity of the test cases it would be better to have:
or even better, if the
check_equal
function could directly convert from the string representation of a fixed point number like this:check_equal(A, "-13.625");
Since the fixed point arithmetic package is part of VHDL-2008 now, I think others might find this useful too.
The text was updated successfully, but these errors were encountered: