2006-08-26 13:35:28 +02:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
|
//
|
2026-01-27 02:24:34 +01:00
|
|
|
// This file ONLY is placed under the Creative Commons Public Domain.
|
|
|
|
|
// SPDX-FileCopyrightText: 2003 Wilson Snyder
|
2020-03-21 16:24:24 +01:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
2006-08-26 13:35:28 +02:00
|
|
|
|
|
|
|
|
module t;
|
2026-03-08 23:26:40 +01:00
|
|
|
reg [40:0] disp;
|
|
|
|
|
initial disp = 41'ha_bbbb_cccc;
|
|
|
|
|
initial begin
|
|
|
|
|
// Display formatting
|
|
|
|
|
$display("%x"); // Too few
|
|
|
|
|
$display("%x", disp, disp); // Too many
|
|
|
|
|
$display("%q"); // Bad escape
|
|
|
|
|
$write("*-* All Finished *-*\n");
|
|
|
|
|
$finish;
|
|
|
|
|
end
|
2006-08-26 13:35:28 +02:00
|
|
|
endmodule
|