diff options
author | Tobias Wölfel <tobias.woelfel@mailbox.org> | 2019-06-19 12:47:48 +0200 |
---|---|---|
committer | Tobias Wölfel <tobias.woelfel@mailbox.org> | 2019-06-19 12:47:48 +0200 |
commit | 8b8af10f5e612eb1a39320e20b2d1d6f1e7d45df (patch) | |
tree | 088235847c6b08188423a802dc9e20c74149cdad /tests/various | |
parent | c23bbc429103ca84cb8a9cfb674aacf7d14109c6 (diff) | |
download | yosys-8b8af10f5e612eb1a39320e20b2d1d6f1e7d45df.tar.gz yosys-8b8af10f5e612eb1a39320e20b2d1d6f1e7d45df.tar.bz2 yosys-8b8af10f5e612eb1a39320e20b2d1d6f1e7d45df.zip |
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.
Diffstat (limited to 'tests/various')
-rw-r--r-- | tests/various/unpacked_arrays.sv | 4 | ||||
-rw-r--r-- | tests/various/unpacked_arrays.ys | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/tests/various/unpacked_arrays.sv b/tests/various/unpacked_arrays.sv new file mode 100644 index 000000000..2f4ed0d3f --- /dev/null +++ b/tests/various/unpacked_arrays.sv @@ -0,0 +1,4 @@ +module unpacked_arrays; + reg array_range [0:7]; + reg array_size [8]; +endmodule diff --git a/tests/various/unpacked_arrays.ys b/tests/various/unpacked_arrays.ys new file mode 100644 index 000000000..419152d9c --- /dev/null +++ b/tests/various/unpacked_arrays.ys @@ -0,0 +1,2 @@ +read_verilog -sv unpacked_arrays.sv +stat |