mirror of
https://github.com/YosysHQ/yosys
synced 2025-08-08 12:11:24 +00:00
verilog: allow null gen-if then block
This commit is contained in:
parent
584780d776
commit
8f9bba1bbf
3 changed files with 23 additions and 1 deletions
13
tests/various/gen_if_null.v
Normal file
13
tests/various/gen_if_null.v
Normal file
|
@ -0,0 +1,13 @@
|
|||
module test(x, y, z);
|
||||
localparam OFF = 0;
|
||||
generate
|
||||
if (OFF) ;
|
||||
else input x;
|
||||
if (!OFF) input y;
|
||||
else ;
|
||||
if (OFF) ;
|
||||
else ;
|
||||
if (OFF) ;
|
||||
input z;
|
||||
endgenerate
|
||||
endmodule
|
Loading…
Add table
Add a link
Reference in a new issue