【发布时间】:2018-04-16 07:43:20
【问题描述】:
我正在使用 Xilinx ISE 并使用 CORE Generator & Architecture Wizard 生成内存。
问题在于它创建了一个写使能信号 (wea) 作为 STD_LOGIC_VECTOR(0 downto 0) 并导致类型不匹配:
### 行:在 encnt 附近输入错误;当前类型std_logic;预期类型 标准逻辑向量
如何将 encnt(即 std_logic)转换为一位 std_logic_vector?
(ISE 不允许我从内存文件中更改 wea。)
【问题讨论】:
-
请出示代码
-
VHDL 术语是类型转换(IEEE Std 1076-2008, 9.3.6 类型转换),其中类型 std_logic(标量类型)和 std_logic_vector(数组类型)不兼容,提示元素关联(6.5.6.3 端口子句,6.5.7 关联列表)。
标签: casting vhdl xilinx-ise