2025-06-07 03:13:31 +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: 2025 Wilson Snyder
|
2025-06-07 03:13:31 +02:00
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
|
|
|
|
|
module t;
|
|
|
|
|
|
2026-03-08 23:26:40 +01:00
|
|
|
logic [7:0] smaller;
|
|
|
|
|
logic [15:0] bigger;
|
|
|
|
|
typedef logic [15:0] bigger_t;
|
2025-06-07 03:13:31 +02:00
|
|
|
|
2026-03-08 23:26:40 +01:00
|
|
|
initial begin
|
|
|
|
|
smaller = 8'hfa;
|
|
|
|
|
bigger = bigger_t'(signed'(smaller));
|
|
|
|
|
if (bigger != 16'hfffa) $stop;
|
2025-06-07 03:13:31 +02:00
|
|
|
|
2026-03-08 23:26:40 +01:00
|
|
|
$write("*-* All Finished *-*\n");
|
|
|
|
|
$finish;
|
|
|
|
|
end
|
2025-06-07 03:13:31 +02:00
|
|
|
|
|
|
|
|
endmodule
|