2017-10-03 00:25:10 +00:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
//
|
2020-03-21 15:24:24 +00:00
|
|
|
// This file ONLY is placed under the Creative Commons Public Domain, for
|
|
|
|
// any use, without warranty, 2017 by Wilson Snyder.
|
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
2017-10-03 00:25:10 +00:00
|
|
|
|
|
|
|
module t (/*AUTOARG*/);
|
2020-12-19 16:12:46 +00:00
|
|
|
int one =
|
|
|
|
`ifdef verilator
|
|
|
|
$c32(1)
|
|
|
|
`else
|
|
|
|
1
|
|
|
|
`endif
|
|
|
|
;
|
|
|
|
|
2017-10-03 00:25:10 +00:00
|
|
|
initial begin
|
|
|
|
$display("Merge:");
|
|
|
|
$write("This ");
|
|
|
|
$write("should ");
|
|
|
|
$display("merge");
|
2017-10-21 17:50:31 +00:00
|
|
|
|
2022-07-09 12:30:57 +00:00
|
|
|
$display("Merge:");
|
|
|
|
$write("This ", "", "should ", "", "also ");
|
|
|
|
$display("merge");
|
|
|
|
|
2017-10-21 17:50:31 +00:00
|
|
|
$display("f");
|
2020-12-19 16:12:46 +00:00
|
|
|
$write(" 1=%0d a=%m 1=%0d", one, one);
|
|
|
|
$display(" 1=%0d b=%m 1=%0d", one, one);
|
2017-10-21 17:50:31 +00:00
|
|
|
$display(" pre");
|
2021-11-13 15:46:25 +00:00
|
|
|
$display(" t=%0d", $time);
|
|
|
|
$display(" t2=%0d", $time);
|
2017-10-21 17:50:31 +00:00
|
|
|
$display(" post");
|
2021-11-13 15:46:25 +00:00
|
|
|
$display(" t3=%0d", $time);
|
|
|
|
$display(" t4=%0d t5=%0d", $time,$time,$time);
|
2017-10-21 17:50:31 +00:00
|
|
|
$display("m");
|
2021-11-13 15:46:25 +00:00
|
|
|
$display(" t=%0d t2=%0d t3=%0d t4=%0d t5=%0d", $time,$time,$time,$time,$time);
|
|
|
|
$display(" t=%0d t2=%0d t3=%0d t4=%0d t5=%0d", $time,$time,$time,$time,$time);
|
2017-10-21 17:50:31 +00:00
|
|
|
$display("mm");
|
|
|
|
$display("");
|
|
|
|
|
|
|
|
$write("f");
|
|
|
|
$write(" a=%m");
|
|
|
|
$write(" b=%m");
|
|
|
|
$write(" pre");
|
2021-11-13 15:46:25 +00:00
|
|
|
$write(" t=%0d", $time);
|
|
|
|
$write(" t2=%0d", $time);
|
2017-10-21 17:50:31 +00:00
|
|
|
$write(" post");
|
2021-11-13 15:46:25 +00:00
|
|
|
$write(" t3=%0d", $time);
|
|
|
|
$write(" t4=%0d t5=%0d", $time,$time,$time);
|
2017-10-21 17:50:31 +00:00
|
|
|
$write("m");
|
2021-11-13 15:46:25 +00:00
|
|
|
$write(" t=%0d t2=%0d t3=%0d t4=%0d t5=%0d", $time,$time,$time,$time,$time);
|
|
|
|
$write(" t=%0d t2=%0d t3=%0d t4=%0d t5=%0d", $time,$time,$time,$time,$time);
|
2017-10-21 17:50:31 +00:00
|
|
|
$display("mm");
|
|
|
|
|
2020-12-19 16:12:46 +00:00
|
|
|
$display("very very very very very very very very very very very very very very very very very very very very very very");
|
|
|
|
$display("very very very very very very very very very very very very very very very very very very very very very very");
|
|
|
|
$display("very very very very very very very very very very very very very very very very very very very very very very");
|
|
|
|
$display("very very very very very very very very very very very very very very very very very very very very very very");
|
|
|
|
$display("very very very very very very very very very very very very very very very very very very very very very very");
|
|
|
|
$display("very very very very very very very very very very very very very very very very very very very very very very");
|
|
|
|
$display("very very very very very very very very very very very very very very very very very very very very very very");
|
|
|
|
$display("%0d%0d%0d%0d%0d %0d%0d%0d%0d%0d",
|
|
|
|
one, one, one, one, one,
|
|
|
|
one, one, one, one, one);
|
|
|
|
$display("%0d%0d%0d%0d%0d %0d%0d%0d%0d%0d",
|
|
|
|
one, one, one, one, one,
|
|
|
|
one, one, one, one, one);
|
2017-10-21 17:50:31 +00:00
|
|
|
$write("\n*-* All Finished *-*\n");
|
2017-10-03 00:25:10 +00:00
|
|
|
$finish;
|
|
|
|
end
|
|
|
|
endmodule
|