aboutsummaryrefslogtreecommitdiffstats
path: root/tests/simple
diff options
context:
space:
mode:
authorUdi Finkelstein <github@udifink.com>2017-09-26 09:11:25 +0300
committerUdi Finkelstein <github@udifink.com>2017-09-26 09:11:25 +0300
commit2dea42e9039cdf47ca4927f62c69c6ae7ac2e399 (patch)
tree1de04112c5a6bc2ae8ecd626fe6d9483f0113c72 /tests/simple
parent17f8b4160574d34c446782952f09f940cd66c290 (diff)
downloadyosys-2dea42e9039cdf47ca4927f62c69c6ae7ac2e399.tar.gz
yosys-2dea42e9039cdf47ca4927f62c69c6ae7ac2e399.tar.bz2
yosys-2dea42e9039cdf47ca4927f62c69c6ae7ac2e399.zip
Added $bits() for memories as well.
Diffstat (limited to 'tests/simple')
-rw-r--r--tests/simple/functions01.sv11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/simple/functions01.sv b/tests/simple/functions01.sv
index cd87a49b7..d6cd53e07 100644
--- a/tests/simple/functions01.sv
+++ b/tests/simple/functions01.sv
@@ -1,4 +1,5 @@
module functions01;
+
wire [3:0]x;
wire [$size(x)-1:0]x_size;
wire [$size({x, x})-1:0]xx_size;
@@ -7,11 +8,9 @@ wire [$size(y)-1:0]y_size;
wire [3:0]z[0:5][0:7];
wire [$size(z)-1:0]z_size;
-//
-// The following are not supported yet:
-//
-
-//wire [$bits(x)-1:0]x_bits;
-//wire [$bits({x, x})-1:0]xx_bits;
+wire [$bits(x)-1:0]x_bits;
+wire [$bits({x, x})-1:0]xx_bits;
+wire [$bits(y)-1:0]y_bits;
+wire [$bits(z)-1:0]z_bits;
endmodule