VHDL 中自定义类型的使用

type key_state_enum is(row0,row1,row2,row3);            --enumeration type of key_state

variable key_state: key_state_enum := row0;

如上两句语句展现了 自定义类型的典型使用方法

Type 列举名称 is(元素1,元素2....) 

数据类型 数据名称:类型名称[:=初始值]

你可能感兴趣的:(VHDL 中自定义类型的使用)