常量说明语句基本格式 constant常量名:常量类型:=常量 值例 constant vcc real:= 5.0 constant grn: std_logic: =0 constant tpd: time: = 5ns constant fbus. std logic vector:=“0110″
常量说明语句基本格式 constant 常量名:常量类型:= 常量 值 例: constant vcc: real:= 5.0; constant grn: std_logic:= '0'; constant tpd: time:= 5ns; constant fbus:std_logic_vector:=“0110”;
VHDL的变量: variable 表达各类运算中间量,通常对应于计算 机中的一个存储位置,没有具体硬件对 应,主要用于电路的行为描述; 变量在子程序(函数、过程、进程)中 进行说明,只能为局部变量; 变量只在顺序语句中使用;
VHDL的变量: variable 表达各类运算中间量,通常对应于计算 机中的一个存储位置,没有具体硬件对 应,主要用于电路的行为描述; 变量在子程序(函数、过程、进程)中 进行说明,只能为局部变量; 变量只在顺序语句中使用;