【发布时间】:2015-05-25 04:22:51
【问题描述】:
我想使用数组的动态范围,因此使用“N”将传入的矢量信号转换为整数。使用特定的传入端口“Size”会给我一个错误,而固定向量会产生完美的输出。
architecture EXAMPLE of Computation is
signal size :std_logic_vector (7 downto 0);
process (ACLK, SLAVE_ARESETN) is
variable N: integer:=conv_integer ("00000111") ; ---WORKING
--variable N: integer:=conv_integer (size) ; -- Not working
type memory is array (N downto 0 ) of std_logic_vector (31 downto 0 );
variable RAM :memory;
进行此类编码的唯一原因是向 FPGA 发送尽可能多的数据。因为我需要在 vivado 中通过 DMA 将数据从 DDR 发送到自定义 IP 可能超过 100 MB。如果我试图以上述错误的方式实施,请指导我。
【问题讨论】: