小编Mar*_*tin的帖子

逻辑运算符问题VHDL

我在VHDL中有一个非常简单的运算符问题.我尝试将一些输入与逻辑运算符进行比较但得到错误消息...

entity test is
 port (
  paddr              : in  std_logic_vector(15 downto 0);
  psel                : in  std_logic;
  penable              : in  std_logic;
  pwrite              : in  std_logic
 );  
end entity test;

signal wrfifo_full       : std_logic; 

process (paddr, psel, penable, pwrite, wrfifo_full) is
begin
  if (((paddr(8 downto 2) = "1000000")) and (psel and penable) and (pwrite and not(wrfifo_full))) then
    dt_fifo_wr_i <= '1';
  else
    dt_fifo_wr_i <= '0';
  end if;
Run Code Online (Sandbox Code Playgroud)

结束过程;

不幸的是,我收到以下错误消息:

如果(((paddr(8 downto 2)="1000000"))和(psel and penable)和(pwrite而不是(wrfifo_full)))那么| ncvhdl_p:*E,OPTYMM(hdl/vhdl/test.vhd,523 | 43):运算符参数类型不匹配87 [4.3.3.2] 93 [4.3.2.2] [7.2]

无论如何看到问题?

干杯

vhdl

3
推荐指数
2
解决办法
2012
查看次数

标签 统计

vhdl ×1