verilator/test_regress/t/t_gen_ifelse.v
2021-11-01 08:59:00 -04:00

36 lines
682 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2021 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module s;
parameter A = 0;
generate
if (A == 1)
int i;
else if (A == 2)
int i;
else
int i;
endgenerate
generate
if (A == 1)
int i;
else if (A == 2)
int i;
else
int i;
endgenerate
endmodule
module t;
s #(0) s0();
s #(1) s1();
s #(2) s2();
initial begin
$write("*-* All Finished *-*\n");
$finish;
end
endmodule