Altera_Forum
Honored Contributor
10 years agofinal procedure block does not work in ModelSim
SystemVerilog LRM (1800-2012):
--- Quote Start --- A final procedure executes when simulation ends due to an explicit or implicit call to $finish. --- Quote End --- But the final block does not execute in ModelSim Altera Starter Edition 10.1e:cry: I used the following code:
module test();
initial begin
# 1 $display("Simulation has been started");
# 1 $finish;
end
final
$display("This should be shown at the end");
endmodule
and this is the output: # Simulation has been started# ** Note: $finish : C:/.../final_bug.sv(4)# Time: 2 ns Iteration: 0 Instance: /test