Skip to content

Feature Request: check_equal(...) overloads for ieee.fixed_pkg.ufixed and ieee.fixed_pkg.sfixed #909

@creiter64

Description

@creiter64

Hi all,

It would be very helpful if VUnit had support for using check_equal(...) on the ieee.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:

check_equal(A, B);

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions