verilator/test_regress/t/t_lint_latch_1.v
2023-09-15 18:12:11 -04:00

18 lines
381 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module for issue #1609
//
// This file ONLY is placed into the Public Domain, for any use,
// without warranty, 2020 by Julien Margetts.
// SPDX-License-Identifier: Unlicense
module t (/*AUTOARG*/ a, b, o);
input a;
input b;
output reg o;
// verilator lint_off LATCH
always @(a or b)
if (a)
o <= b;
endmodule