mirror of
https://github.com/verilator/verilator.git
synced 2025-01-08 23:57:35 +00:00
c78254503c
git-svn-id: file://localhost/svn/verilator/trunk/verilator@769 77ca24e4-aefa-0310-84f0-b9a241c72d87
26 lines
493 B
Verilog
26 lines
493 B
Verilog
// $Id$
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
//
|
|
// This file ONLY is placed into the Public Domain, for any use,
|
|
// without warranty, 2006 by Wilson Snyder.
|
|
|
|
module t (clk);
|
|
|
|
sub sub ();
|
|
|
|
input clk;
|
|
integer cyc=1;
|
|
|
|
always @ (posedge clk) begin
|
|
cyc <= cyc + 1;
|
|
if (cyc==2) begin
|
|
// Not $finish; as we don't want a message to scroll by
|
|
$c("Verilated::gotFinish(true);");
|
|
end
|
|
end
|
|
endmodule
|
|
|
|
module sub;
|
|
/* verilator public_module */
|
|
endmodule
|