Idan Rahamim
Idan Rahamim

Reputation: 607

Array declaration difference verilog

What is the difference in writing with this two methods?

Is there any significant difference?

logic array[32];
logic array[0:31];

Thanks alot

Upvotes: 0

Views: 132

Answers (2)

RAVI KANT VERMA
RAVI KANT VERMA

Reputation: 73

Technically there is not difference, but lower one looks more informative

Upvotes: 0

dave_59
dave_59

Reputation: 42698

There is no difference. For unpacked array declarations, [N] is equivalent to [0:N-1].

Upvotes: 2

Related Questions