mashhur
Member level 5
Hello everybody,
could somebody explain me this situation please?
/* Module */
/* Testbench */
here my question goes. in initial statement we used $finish before getting instance of my_module, does it stop program? for ex. in C++ if u use exit(), a program stops to execute.
And does $monitor() display if the variable changes its value after $monitor() statement?
thanks in advance.
could somebody explain me this situation please?
/* Module */
HTML:
module my_module(I/Os);
// some statements
end my_module;
HTML:
module tsbnch();
initial
begin
$monitor();
$finish;
end
//instance my_module
my_module utt(args);
end tsbnch;
here my question goes. in initial statement we used $finish before getting instance of my_module, does it stop program? for ex. in C++ if u use exit(), a program stops to execute.
And does $monitor() display if the variable changes its value after $monitor() statement?
thanks in advance.