$display and $time statements
Documentation in the online manual (p. 56)
Doesn�t synthesize to anything!
Formats similar to printf() in C
- %h Hex, %d Decimal, %o Octal, %b Binary, %% Display a �%� sign
Examples of $display()
- $display(�output %d is %h", i, vec[i]);
- $display("%d%% completed", (count * 100) / max_count);
The $time function returns system simulation time as a 32-bit integer
- $display("Got an event at time %d", $time);