shaiko
Advanced Member level 5
Hello,
I have a Verilog array defined as :
logic [0:num_elements-1] [element_width] some_array ;
I want to assign every array element with a vector that is all ones: "11...1".
I tried this but I get an error:
What's the correct syntax ?
I have a Verilog array defined as :
logic [0:num_elements-1] [element_width] some_array ;
I want to assign every array element with a vector that is all ones: "11...1".
I tried this but I get an error:
Code:
some_array <= { num_elements { element_width { 1'b1 } } } ;