logic signed [WIDTH : 0] rg [I] [J] ;
WIDTH, I, J are parameters. How can I initialise the above array to all zeroes. I know I can do it using nested for loops. But I would like to know the shortest version in System Verilog to achieve it.
logic signed [WIDTH : 0] rg [I] [J] ;
WIDTH, I, J are parameters. How can I initialise the above array to all zeroes. I know I can do it using nested for loops. But I would like to know the shortest version in System Verilog to achieve it.
In reply to Mitu Raj:
logic signed [WIDTH : 0] rg [I] [J] = '{default:0};