我对SystemVerilog非常陌生,我发现自己需要从一个未打包的数组(至少我假设它是这样)参数中获得一个字节值,索引是内存地址的低4位。h55,8'h00,8'hFF,8'hFF,8'hFF,8'hFF,8'hFF,8'hFF,8'hFF,8'hFF,8'hFF,8'hFF}; // The data to return 这只是一个16
因此,为了将内存加载到FPGA上的“文件”中,我使用了概述的here过程。粗略的公式如下 reg [7:0] ex2_memory [0:15];
$readmemh("ex2.mem", ex2_memory); 这对我来说很奇怪,因为许多指南建议它应该略有不同。例如,在我的一本指南中就有这样的内容 Sometimes it can be useful to have structures with more than one dimension – for exa