2018-09-23 19:09:47 +00:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
//
|
2020-03-21 15:24:24 +00:00
|
|
|
// 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
|