尝试在GHDL中指定VHDL标准时出错
GHDL的新功能。这是我的VHDL代码:尝试在GHDL中指定VHDL标准时出错,vhdl,ghdl,Vhdl,Ghdl,GHDL的新功能。这是我的VHDL代码: /* Name: test.vhd Description: Demonstrates basic design in VHDL code. Date: 04. August 2017 AD */ --first part: libraries library IEEE; use IEEE.STD_LOGIC_1164.all; --second part: entity declaration entity myEntity is port
/*
Name: test.vhd
Description: Demonstrates basic design in VHDL code.
Date: 04. August 2017 AD
*/
--first part: libraries
library IEEE;
use IEEE.STD_LOGIC_1164.all;
--second part: entity declaration
entity myEntity is
port(a, b, c: in STD_LOGIC; y: out STD_LOGIC);
end;
--third part: entity implementation
architecture aom of myEntity is
begin
y <= not b and (c or a and b);
end;
/*
名称:test.vhd
描述:用VHDL代码演示基本设计。
日期:04。公元2017年8月
*/
--第一部分:图书馆
图书馆IEEE;
使用IEEE.STD_LOGIC_1164.all;
--第二部分:实体声明
实体myEntity是
端口(a、b、c:输入标准逻辑;y:输出标准逻辑);
结束;
--第三部分:实体实施
myEntity的架构aom是
开始
y应该这样编译:ghdl-s--std=08 test.vhd
。
因此,-s
标志应该首先出现。
所有学分都归。应该这样编译:ghdl-s--std=08 test.vhd
。
因此,-s
标志应该首先出现。
所有学分首先转到。命令(-s)。是的,您是对的。myentity.vhdl:19:28:错误:只能使用一种类型的逻辑运算符来组合关系。请先使用y命令(-s)。是的,你是对的。myentity.vhdl:19:28:错误:只有一种类型的逻辑运算符可以用于组合关系Usey