这是我的剥离示例:
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;
entity queue is
port(
reset: in std_logic;
input_ready: out std_logic
);
end entity;
architecture reference of queue is
signal queue_size: unsigned(15 downto 0);
begin
process
begin
input_ready <= (reset = '0') and (queue_size < 1024);
end process;
end architecture;
这一行在哪里:
input_ready <= (reset = '0') and (queue_size < 1024);
生产
no function declarations for operator "and"
ghdl: compilation error
跑步时
ghdl -a queue.vhdl
在GHDL 0.32rc1 (20141104) [Dunoon edition]
Arch Linux 上。
根据VHDL 运算符,两个比较都返回布尔值,并且有and
两个布尔值的定义。那么我做错了什么?