verilator/test_regress/t/t_past_unsup_bad.v

21 lines
534 B
Systemverilog
Raw Normal View History

2018-09-23 19:09:47 +00:00
// 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
2018-09-23 19:09:47 +00:00
module t (d, clk);
input d;
input clk;
always @ (posedge clk) begin
// Unsupported
2020-08-23 15:34:19 +00:00
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;
2018-09-23 19:09:47 +00:00
end
endmodule