You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Verilog: fix array index direction for descending and ascending ranges
Arrays declared with descending ranges (e.g., [4:0]) or ascending ranges
with non-zero offsets were not correctly mapping Verilog indices to
internal array indices. This affected both packed and unpacked arrays.
For unpacked arrays, the Verilog index is now adjusted to the internal
index based on the range direction and offset. For packed arrays, the
assignment pattern operands are reversed for descending ranges so that
internal index 0 corresponds to Verilog index 0, and the bitvector
lowering is updated to match.
Per IEEE 1800-2017 section 10.9.1, assignment patterns assign elements
left-to-right starting from the left index of the range.
0 commit comments