mirror of
https://github.com/verilator/verilator.git
synced 2025-01-26 08:14:06 +00:00
21 lines
450 B
Systemverilog
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
|