正在加载图片...
612数组的数值属性 作用:返回数组类型的长度值 VHDL中预定义的数组的数值属性: length:返回一个限定性数组的长度值,即数组中元素的个数; 如:定义如下几个数组类型: type wordis array (15 downto o) of std_ logic, type dwordis array (31 downto O)of std _logic type matrixis array(0 to 7, 0 to 5)of std logic 可返回如下数值属性 word length=16 dword length=32 matrix length 1)=8 matrix length (2=6 matrix length=86.1.2 数组的数值属性 作用:返回数组类型的长度值 VHDL中预定义的数组的数值属性: ‘length:返回一个限定性数组的长度值,即数组中元素的个数; 如:定义如下几个数组类型: type word is array (15 downto 0) of std_logic; type dword is array (31 downto 0) of std_logic; type matrix is array ( 0 to 7, 0 to 5) of std_logic; 可返回如下数值属性: word’length = 16 dword’length =32 matrix’length(1) = 8 matrix’length(2) = 6 matrix’length = 8
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有