$display

In reply to dave_59:

In reply to SHRI12326:
No, $display is a procedural statement that does not consume simulated time. If you meant to say CPU time on the host running the simulation, then yes $display can consume CPU time depending on how complex the arguments to $display are.

Hi Dave,

When I ran below code I got the below result.

Code:
initial begin
for(i=0;i<10;i++) begin
fork
$display(“value in fork join none = %d”,i);
join_none
end
end

Result :
value in fork join none = 10
value in fork join none = 10
value in fork join none = 10
value in fork join none = 10
value in fork join none = 10
value in fork join none = 10
value in fork join none = 10
value in fork join none = 10
value in fork join none = 10
value in fork join none = 10

Is this is because the display statement consuming the CPU time.

Thanks & Regards,
Shriramvaraprasad B.