2017-06-20 23:33:58 +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, 2013 by Wilson Snyder.
|
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
2017-06-20 23:33:58 +00:00
|
|
|
|
2020-04-15 23:39:03 +00:00
|
|
|
`timescale 1ms/1ms
|
|
|
|
|
|
|
|
// See also t_time_sc_*.v/pl
|
|
|
|
|
2017-06-20 23:33:58 +00:00
|
|
|
module t
|
2020-04-15 23:39:03 +00:00
|
|
|
(/*AUTOARG*/
|
|
|
|
// Inputs
|
|
|
|
clk
|
2017-06-20 23:33:58 +00:00
|
|
|
);
|
|
|
|
|
2020-04-15 23:39:03 +00:00
|
|
|
input clk;
|
|
|
|
|
2017-06-20 23:33:58 +00:00
|
|
|
integer cyc; initial cyc = 0;
|
|
|
|
|
|
|
|
always @ (posedge clk) begin
|
|
|
|
cyc <= cyc + 1;
|
2020-04-15 23:39:03 +00:00
|
|
|
if (cyc == 10) begin
|
|
|
|
$write("*-* All Finished *-*\n");
|
|
|
|
$finish;
|
|
|
|
end
|
2017-06-20 23:33:58 +00:00
|
|
|
end
|
|
|
|
endmodule
|