Fix leak check - cant build verilated.o differently

git-svn-id: file://localhost/svn/verilator/trunk/verilator@769 77ca24e4-aefa-0310-84f0-b9a241c72d87
This commit is contained in:
Wilson Snyder 2006-08-30 21:07:33 +00:00
parent b7485bfc0b
commit c78254503c
3 changed files with 2 additions and 8 deletions

View File

@ -15,12 +15,6 @@ double sc_time_stamp () {
return main_time;
}
void vl_finish (const char* filename, int linenum, const char* hier) {
// Define it to not print a message
if (0 && filename && linenum && hier) {}
Verilated::gotFinish(true);
}
long long get_memory_usage() {
// Return memory usage. Return 0 if the system doesn't look quite right.

View File

@ -10,7 +10,6 @@ if (!$::Driver) { use FindBin; exec("./driver.pl", @ARGV, $0); die; }
compile (
make_top_shell => 0,
make_main => 0,
make_flags => "OPT_FAST=-DVL_USER_FINISH",
v_flags2 => ["--exe t/$Last_Self->{name}.cpp"],
) if $Last_Self->{v3};

View File

@ -14,7 +14,8 @@ module t (clk);
always @ (posedge clk) begin
cyc <= cyc + 1;
if (cyc==2) begin
$finish;
// Not $finish; as we don't want a message to scroll by
$c("Verilated::gotFinish(true);");
end
end
endmodule