Skip to content

Error: no applicable subprogram declaration for "??" when using or_reduce function #1124

@lemmuh

Description

@lemmuh

I want use the or_reduce function from the std_logic_misc package. However the function was NOT found.

LIBRARY ieee;
  USE ieee.std_logic_1164.all;
  USE ieee.std_logic_misc.all;

...

  ELSIF or_reduce(trigger(3 DOWNTO 0)) THEN

...

Compiling the above code, nvc --std=08 -a file.vhd, results to the following error:

** Error: no applicable subprogram declaration for "??"
     > file.vhd:271
     |
 271 |         ELSIF or_reduce(trigger(3 DOWNTO 0)) THEN
     |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ could be BIT or STD_ULOGIC
     |
     = Note: context contains overload "??" [BIT return BOOLEAN]
         > ../lib/std.08/standard.vhd:25
     = Note: context contains overload "??" [STD_ULOGIC return BOOLEAN]
         > ../lib/ieee.08/std_logic_1164.vhdl:224
     = Note: there are 2 visible overloads of "??" but none can be called in this context

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions