Skip to content

Commit fdaa397

Browse files
committed
Reverse indexing direction for arrays (#197)
1 parent 3e0ae37 commit fdaa397

2 files changed

Lines changed: 69 additions & 69 deletions

File tree

src/codegen/system_verilog.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1199,7 +1199,7 @@ impl ConcreteType {
11991199
{
12001200
return format!("[{sz}:0] {name}{array_string}");
12011201
}
1202-
write!(array_string, "[{sz}:0]").unwrap();
1202+
write!(array_string, "[0:{sz}]").unwrap();
12031203
typ = content_typ;
12041204
}
12051205
}

0 commit comments

Comments
 (0)