I have defined
reg bricks[0:3][0:7]
in Verilog Module. How can I assign this 2d array as
{{1,1,1,0,1,1,1},{1,1,1,0,1,1,1},{1,1,1,0,1,1,1},{1,1,1,0,1,1,1}}.
Please help
I have defined
reg bricks[0:3][0:7]
in Verilog Module. How can I assign this 2d array as
{{1,1,1,0,1,1,1},{1,1,1,0,1,1,1},{1,1,1,0,1,1,1},{1,1,1,0,1,1,1}}.
Please help
reg bricks [0:3][0:7]; //creates an unpacked array
// It means you can access individual bits
bricks[1][0] = 0 ; // Assigns 0 to the bit referenced by 1 and 0
bricks [2] = 0 ; // Illegal Syntax
bricks [1][0:3] = 0 ; //Illegal Syntax
System verilog provides much more flexibility