Output Tasks
initial begin
// $display - print with newline
$display("Hello World");
$display("Value = %d (decimal)", 42);
$display("Value = %h (hex)", 8'hAB);
$display("Value = %b (binary)", 4'b1010);
// $write - print without newline
$write("Part 1 ");
$write("Part 2\n");
// $strobe - print at end of time step (after all assignments)
$strobe("Strobed value = %d", count);
// Format specifiers
// %d - decimal %h - hex %b - binary
// %o - octal %s - string %t - time
// %0d - no leading zeros
end