3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-23 00:55:32 +00:00

Unpacked array declaration using size

Allows fixed-sized array dimension specified by a single number.

This commit is based on the work from PeterCrozier
https://github.com/YosysHQ/yosys/pull/560.
But is split out of the original work.
This commit is contained in:
Tobias Wölfel 2019-06-19 12:47:48 +02:00
parent c23bbc4291
commit 8b8af10f5e
3 changed files with 13 additions and 1 deletions

View file

@ -0,0 +1,4 @@
module unpacked_arrays;
reg array_range [0:7];
reg array_size [8];
endmodule

View file

@ -0,0 +1,2 @@
read_verilog -sv unpacked_arrays.sv
stat