Altera_Forum
Honored Contributor
11 years agoThe simplest "hello" that works with Quartus and ModelSim
I wanted to make a step-by step tutorial, which really works with Quartus and ModelSim.
By trial-and-error method, I came to the result, of making the files Hello_tb.vmodule Hello_tb; reg clock,reset;
initial
begin
$display("Hello world!");
$finish;
end
Hello dummy(clock, reset);
endmodule and Hello.v module Hello(input clk, input rst);endmodule My questions are: 1./ Is this the possible minimum for the Hello, which works for Quartus+ModelSim combination? 2./ The "$finish" produced warning "ignoring unsupported system task in the "Analyzis and Elaboration" phase ; and a note "Note $finish" in ModelSim simulation. So, obviously it is not ignored. What is really the case here? (I mean: what is ignored and what is not? And, why this misleading message? And, why a standard task is said to be not supported?) 3./ During simulation, when "$finish" is reached, in a popup window I am asked if I really want to finish. If I say yes, the simulator window closes. As I just want to see the result in the "Transcript" window, I say "No" and I can browse the messages in the window, but also the simulation continues. Is it the intended behaviour? Thanks for your opinion in advance.