Can I assign something like this in Verilog:
reg [4:0] synd[0:4]={s0,s1,s2,s3,s4};//s0,s1,s2....s4 are 5 bit values.
Also, while accessing this array from inside the 'always' block, should I just reference it as say synd[0] for s0 and so on?
Can I assign something like this in Verilog:
reg [4:0] synd[0:4]={s0,s1,s2,s3,s4};//s0,s1,s2....s4 are 5 bit values.
Also, while accessing this array from inside the 'always' block, should I just reference it as say synd[0] for s0 and so on?
Verilog does not allow for more than 1-D array. However systemverilog allows such construct and it is syntactically correct according to systemverilog.