From 17f8b4160574d34c446782952f09f940cd66c290 Mon Sep 17 00:00:00 2001 From: Udi Finkelstein Date: Tue, 26 Sep 2017 08:36:45 +0300 Subject: $size() now works with memories as well! --- tests/simple/functions01.sv | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/simple/functions01.sv b/tests/simple/functions01.sv index 0fa1da6bd..cd87a49b7 100644 --- a/tests/simple/functions01.sv +++ b/tests/simple/functions01.sv @@ -2,13 +2,15 @@ module functions01; wire [3:0]x; wire [$size(x)-1:0]x_size; wire [$size({x, x})-1:0]xx_size; -wire [3:0]w[0:5]; +wire [3:0]y[0:5]; +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 [$size(w)-1:0]w_s; //wire [$bits(x)-1:0]x_bits; //wire [$bits({x, x})-1:0]xx_bits; -- cgit v1.2.3