verilator/test_regress/t/t_flag_xinitial_0.v

25 lines
512 B
Systemverilog
Raw Normal View History

2017-10-02 03:31:40 +02:00
// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain.
// SPDX-FileCopyrightText: 2017 Wilson Snyder
// SPDX-License-Identifier: CC0-1.0
2017-10-02 03:31:40 +02:00
2026-03-08 23:26:40 +01:00
module t ( /*AUTOARG*/
// Outputs
value
);
2017-10-02 03:31:40 +02:00
2026-03-08 23:26:40 +01:00
output reg [63:0] value;
2017-10-02 03:31:40 +02:00
2026-03-08 23:26:40 +01:00
initial begin
2017-10-02 03:31:40 +02:00
`ifdef VERILATOR
2026-03-08 23:26:40 +01:00
// Default is all ones, so we assume that here
if (value != '0) $stop;
2017-10-02 03:31:40 +02:00
`else
2026-03-08 23:26:40 +01:00
if (value != {64{1'bx}}) $stop;
2017-10-02 03:31:40 +02:00
`endif
2026-03-08 23:26:40 +01:00
$write("*-* All Finished *-*\n");
$finish;
end
2017-10-02 03:31:40 +02:00
endmodule