VHDL 常量在 quartus II 中返回 10500 错误
VHDL constants returning 10500 error in quartus II
我需要为七段显示用途初始化一些常量,但我遇到了一些问题。每当我编译
constant displayR : type := b"01010000";
我明白了
Error (10500): VHDL syntax error at VendingMachine.vhd(62) near text "constant"; expecting "end", or "(", or an identifier ("constant" is a reserved keyword), or a concurrent statement
我需要做什么才能使常量正确编译?
您可能想要为您的七段显示器声明一个子类型:
subtype t_display is bit_vector(7 downto 0);
constant displayR : t_display := "01010000";
我需要为七段显示用途初始化一些常量,但我遇到了一些问题。每当我编译
constant displayR : type := b"01010000";
我明白了
Error (10500): VHDL syntax error at VendingMachine.vhd(62) near text "constant"; expecting "end", or "(", or an identifier ("constant" is a reserved keyword), or a concurrent statement
我需要做什么才能使常量正确编译?
您可能想要为您的七段显示器声明一个子类型:
subtype t_display is bit_vector(7 downto 0);
constant displayR : t_display := "01010000";