verilator/test_regress/t/t_past_unsup_bad.v
2020-08-23 11:34:19 -04:00

21 lines
534 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2018 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module t (d, clk);
input d;
input clk;
always @ (posedge clk) begin
// Unsupported
if ($past(d, 0, 0)) $stop;
if ($past(d, 0, 0, clk)) $stop;
if ($fell(d, clk)) $stop;
if ($rose(d, clk)) $stop;
if ($stable(d, clk)) $stop;
if ($changed(d, clk)) $stop;
end
endmodule