I found when trying to declare a parameter as a packed array (note that issue Support multidimensional parameters #846 refers to unpacked arrays). A suggestion/request to improve the error message displayed on unsupported features. I was trying to simulate this code (well, not this code exactly...
packed array用于引用在变量名称之前声明的维度。 bit[3:0]data;// Packed array or vectorlogicqueue[9:0];// unpacked array packed array保证表示为一组连续的位。它们只能用于单位数据类型(如、和其他递归packed array)组成。bitlogic Single Dimensional Packed Arrays 一维压缩数组也成为向量。 moduletb;bit[7...
Packed and UnPacked Arrays. Solved by kurts1 in post #2 When you declare an array, there are two types of dimensions: packed and unpacked. For example, imagine you have a variable that is 12 bits wide: bit[11:0] avar; Now, say that you want to treat these 12 bits as 3 groups ...
Here's my SV packed array // dut.sv module dut (...); ... logic [8-1:0][16-1:0] mem_a; After verilator compilation I can see that it was flattened into 1 dimensional array // obj_dir/dut.h VL_SIGW(dut__DOT__mem_a,127,0,4); And the same ...