verilator/test_regress/t/t_flag_topmodule_inline.v

35 lines
559 B
Systemverilog
Raw Normal View History

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain.
// SPDX-FileCopyrightText: 2008 Wilson Snyder
// SPDX-License-Identifier: CC0-1.0
module a;
2026-03-10 02:38:29 +01:00
a2 a2 (.tmp(1'b0));
initial begin
$write("Bad top modules\n");
$stop;
end
endmodule
2026-03-10 02:38:29 +01:00
module a2 (
input tmp
);
l3 l3 (.tmp(tmp));
endmodule
module b;
2026-03-10 02:38:29 +01:00
l3 l3 (.tmp(1'b1));
endmodule
2026-03-10 02:38:29 +01:00
module l3 (
input tmp
);
initial begin
if (tmp) begin
$write("*-* All Finished *-*\n");
$finish;
end
end
endmodule