forked from github/verilator
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:
parent
b7485bfc0b
commit
c78254503c
@ -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.
|
||||
|
||||
|
@ -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};
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user