错误:实体不能位于设计的顶部,泛型没有默认值

时间:2018-04-21 14:50:14

标签: vhdl ieee

我刚开始使用VHDL,证明它比我认为的更难。目前我正试图绕过“通用”操作区域。我尽可能地减少了我的代码(这个提取没有做任何事情,但仍会产生错误),但仍未设法破解它。如果你们中的一个能帮助我,我会非常感激!

提前感谢。

library IEEE;

entity ALU is
    GENERIC (constant cst:integer range 15 downto 0); 
end ALU;

architecture behavioural of ALU is
    begin
End behavioural;

error:entity "alu" cannot be at the top of a design
alu.vhdl:6:19: generic "cst" has no default value

0 个答案:

没有答案