【发布时间】:2019-07-25 12:41:42
【问题描述】:
我正在尝试使用 VHDL 变得更好,因此我想尝试实现“包 ... is”和“包体 ... is”功能。 当我这样做时,似乎“std_logic”在 GHDL 分析步骤中看不到 IEEEE 库的内容。
到目前为止,我尝试了带有和不带有代码的命令 -> 结果相同。 没有“包”行,它就像一个魅力......但我将无法按计划扩展它。
library IEEE;
use IEEE.std_logic_1164.all;
package run is
-- some package definitions
end run;
package body run is
-- the body
end run;
entity andfunc is
Port( A : in std_logic;
B : in std_logic;
C : out std_logic
);
end andfunc;
architecture Behavioral of andfunc is
begin
C <= A and B ;
end Behavioral;
具体的错误信息是: “[...] 错误:没有声明“std_logic”
期待您的回答。
【问题讨论】: