register_file [3:0] = 0;Error (10673): SystemVerilog error at simpleprocessor.v(27): assignments to unpackedarrays must be aggregate expressions
首先,我使用的是Verilog,而不是SystemVerilog,那么为什么它给了我一个SystemVerilog错误?这样,我的寄存器就可以直接从指令中获得。
因此,为了将内存加载到FPGA上的“文件”中,我使用了概述的here过程。例如,在我的一本指南中就有这样的内容 Sometimes it can be useful to have structures with more than one dimension – for exampleVerilog allows you to define multiple sets of indexes for a variable:
reg [7:0] string [15:0];注意,在readmemb示例中<
我试图打包一个2D未打包的数组,将其通过Verilog包装器,然后在另一个模块(或testbench)中进行解包。#10; $display("%p", A_2); end我在Vivado2018.2模拟器中得到以下错误:
ERROR: [VRFC 10-1571] wrong element type in un