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:
parent
c23bbc4291
commit
8b8af10f5e
3 changed files with 13 additions and 1 deletions
4
tests/various/unpacked_arrays.sv
Normal file
4
tests/various/unpacked_arrays.sv
Normal file
|
@ -0,0 +1,4 @@
|
|||
module unpacked_arrays;
|
||||
reg array_range [0:7];
|
||||
reg array_size [8];
|
||||
endmodule
|
2
tests/various/unpacked_arrays.ys
Normal file
2
tests/various/unpacked_arrays.ys
Normal file
|
@ -0,0 +1,2 @@
|
|||
read_verilog -sv unpacked_arrays.sv
|
||||
stat
|
Loading…
Add table
Add a link
Reference in a new issue