【发布时间】:2014-01-25 05:58:16
【问题描述】:
我真的不明白。这是一个简单的常量向量声明。
如果它是一个向量,是否应该允许它具有任何值(在我的情况下为 3)?
错误:
Width mismatch, location has width 2, value 3
在代码处:
constant s0: std_logic_vector := "000";
【问题讨论】:
-
声明
constant s0: std_logic_vector := "000";是合法的,导致std_logic_vector的范围是0到2,所以这个错误一定是由于一些未公开的代码。
标签: vhdl