Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Undeterministic behavior when there is a package and package instantiation with the same name #13

Open
m-kru opened this issue Aug 25, 2022 · 0 comments

Comments

@m-kru
Copy link
Owner

m-kru commented Aug 25, 2022

file1.vhd

package float_pkg is new IEEE.float_generic_pkg
  generic map (
    float_exponent_width => 8,    -- float32'high
    float_fraction_width => 23,   -- -float32'low
    float_round_style    => IEEE.fixed_float_types.round_nearest,  -- round nearest algorithm
    float_denormalize    => true,  -- Use IEEE extended floating
    float_check_error    => true,  -- Turn on NAN and overflow processing
    float_guard_bits     => 3,     -- number of guard bits
    no_warning           => false, -- show warnings
    fixed_pkg            => IEEE.fixed_pkg
    );

file2.vhd

package float_pkg is
  function to_string (value : UNRESOLVED_float) return STRING;
end package float_pkg;

Output

[user@host test]$ thdl doc to_string
vhdl:work.float_pkg.to_string

float_pkg_c.vhd

function to_string (value : UNRESOLVED_float) return STRING;
[user@host test]$ thdl doc to_string
found no symbol matching path 'to_string'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant