정말 이상한 문제가 있으며 컴파일러가 불평하는 이유는 100 % 아닙니다. 코드는 다음과 같습니다VHDL의 간단한 IF 문에서 데이터 유형 문제
"AND can not have such operands in this context",
"OR can not have such operands in this context", respectively for the second IF
문 :
variable a : std_logic_vector(2 downto 0);
variable b : std_logic;
....
if (a = "100") AND (b) then
-- do something
elsif (a = "011") OR (b) then
-- do something else
내가 다음 오류 메시지가 표시됩니다.
VHDL이이 구조를 좋아하지 않는 이유는 누구나 생각해 볼 수 있습니다.
덕분에, 짐