使用对象但未声明?

wal*_*kis 4 vhdl quartus

我有以下VHDL代码,它是项目的实体:

library ieee;
use ieee.std_logic_1164.all;
library work;
use work.typedef.all;

entity uc is
    port(faaaa: in std_logic_vector(15 downto 0);
          phi: in std_logic;
          isDirect,isRam,jmp,store,NarOut,arpOut:out std_logic);
    end entity uc;

architecture b8 of ua is
    signal   instt : std_logic_vector(15 downto 0);
    signal bit7: std_logic;
        begin
            bit7<='0';
            instt <= faaaa;
            ....
            process(phi) is
            ....
            end process;
end architecture b8;
Run Code Online (Sandbox Code Playgroud)

错误说:

对象"faaaa"已使用但未声明

我在这做错了什么?

sca*_*eff 7

您的实体被调用uc,但架构b8ua.

  • ...这意味着`faaaa`在其他地方被声明,并且在这个架构中不可见. (3认同)