【发布时间】:2013-12-17 09:27:16
【问题描述】:
我的记录定义如下
type ifx_t is
record
data : std_logic_vector(127 downto 0);
address : std_logic_vector (19 downto 0);
WrReq : std_logic;--
RdReq : std_logic; --
end record;
type Array_ifx_t is array (0 to 2) of ifx_t;
我必须初始化这个记录数组的一个实例,我尝试了以下方法,但它不起作用
signal pair_in : Array_ifx_t:= (others =>((others =>'0'),(others=>'0'),'0','0'));
请帮助。
【问题讨论】:
-
您使用的是什么工具,您看到了什么错误信息?它在 ModelSim 编译中运行良好。
-
这里的错误信息是“Formal
has no actual or default value”并且代码在“ISim Simulator: Behavioral Check Syntax”中被编译。 -
刚刚尝试过 ISim 14.6 (nt64),它通过了“行为检查语法”运行而没有错误。也许错误是由于与其他代码的某种关系。您可以尝试将模块缩减为仅实体、架构和上面的代码,然后查看是否通过。否则,请在此处发布整个精简模块。
-
问题是由于没有映射pair_in应该映射的端口。
标签: arrays signals vhdl records