mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #2553 from zachjs/rand-const-modifiers
Allow combination of rand and const modifiers
This commit is contained in:
commit
1f88a3de74
|
@ -651,8 +651,16 @@ wire_type_signedness:
|
|||
%empty;
|
||||
|
||||
wire_type_const_rand:
|
||||
TOK_CONST { current_wire_const = true; } |
|
||||
TOK_RAND { current_wire_rand = true; } |
|
||||
TOK_RAND TOK_CONST {
|
||||
current_wire_rand = true;
|
||||
current_wire_const = true;
|
||||
} |
|
||||
TOK_CONST {
|
||||
current_wire_const = true;
|
||||
} |
|
||||
TOK_RAND {
|
||||
current_wire_rand = true;
|
||||
} |
|
||||
%empty;
|
||||
|
||||
opt_wire_type_token:
|
||||
|
|
|
@ -0,0 +1,8 @@
|
|||
module top;
|
||||
rand const reg rx;
|
||||
const reg ry;
|
||||
rand reg rz;
|
||||
rand const integer ix;
|
||||
const integer iy;
|
||||
rand integer iz;
|
||||
endmodule
|
|
@ -0,0 +1 @@
|
|||
read_verilog -sv rand_const.sv
|
Loading…
Reference in New Issue