Commit e50d810
committed
sail_sv_backend: use packed array
In SystemVerilog, unpacked arrays are typically in the form of
`[0:LEN-1]` instead of `[LEN-1:0]` (which is the convention for packed
arrays). In fact, commonly people just use `[LEN]` and this is a
shorthand for `[0:LEN-1]`.
Currently sail_sv_backend always use `[LEN-1:0]` even for unpacked
arrays; this causes the whole array to be flipped even the user passed
in an array declared with `[LEN]`.1 parent 0fdd5d3 commit e50d810
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| |||
0 commit comments