Altera_Forum
Honored Contributor
11 years agoSystemVerilog error 10748
Hi all,
I am using SystemVerilog to handle a 3-dimensional array. My code is as follows.
module sub_bytes();
reg word_stream_reg = '{'{8'hFF,8'hA4},'{8'h50,8'hC6}};
reg test = word_stream_reg;
endmodule
I get this error: Error (10748): Verilog HDL error at sub_bytes.v(6): expression in variable declaration assignment to test must be constant I spent about 4 hours but could not find the reason for this error. I would be grateful if anyone could assist me in this.