projects
/
yosys.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add $size() function. At the moment it works only on expressions, not on memories.
[yosys.git]
/
tests
/
simple
/
functions01.sv
1
module functions01;
2
wire [3:0]x;
3
wire [$size(x)-1:0]x_size;
4
wire [$size({x, x})-1:0]xx_size;
5
wire [3:0]w[0:5];
6
7
//
8
// The following are not supported yet:
9
//
10
11
//wire [$size(w)-1:0]w_s;
12
//wire [$bits(x)-1:0]x_bits;
13
//wire [$bits({x, x})-1:0]xx_bits;
14
15
endmodule