第3章 VHDL基础
在VHDL中,数据对象有3类:常量( constant )、变量(variable)、
信号(signal)
3.6.1 常量
常量的定义和设置主要是为了使程序更容易阅读和修改。
定义的一般表述方法:
Constant 常量名:数据类型:=表达式
例:constant X:std_logic_vector:=“010110”
定义常数X的数据类型是std_logic_vector,它等于“010110”
constant Y:integer:=15
定义常数Y的数据类型是integer,它等于15
3.6 数据对象 P67