verilator/test_regress/t/t_dfg_4943.v
2024-03-05 18:51:46 +00:00

21 lines
450 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2024 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module top(input wire i, output wire o);
// Partially driven, and drives other var with non-DFG refs
wire logic [1:0] x;
assign x[0] = i;
assign o = |x;
wire logic [1:0] alt = x;
always @(alt) $display(alt);
endmodule