Reputation: 607
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
Reputation: 73
Technically there is not difference, but lower one looks more informative
Upvotes: 0
Reputation: 42698
There is no difference. For unpacked array declarations, [N]
is equivalent to [0:N-1]
.
Upvotes: 2