2025-05-10 19:59:56 +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-05-10 19:59:56 +02:00
// SPDX-License-Identifier: CC0-1.0
2025-12-21 03:46:43 +01:00
// verilog_format: off
2025-05-10 19:59:56 +02:00
`define stop $stop
`define checkd(gotv, expv) do if ((gotv) !== (expv)) begin $write("%%Error: %s:%0d: got=%0d exp=%0d\n", `__FILE__, `__LINE__, (gotv), (expv)); `stop; end while(0);
2025-12-21 03:46:43 +01:00
// verilog_format: on
2025-05-10 19:59:56 +02:00
2026-03-10 02:38:29 +01:00
module top (
out35
) ;
output wire [ 2 : 0 ] out35 ;
wire signed [ 2 : 0 ] wire_4 ;
assign wire_4 = 3 'b011 ;
assign out35 = ( wire_4 > > > 36 'hffff _ffff_f ) ;
2025-05-10 19:59:56 +02:00
2026-03-10 02:38:29 +01:00
initial begin
# 10 ;
`checkd ( out35 , '0 ) ;
$write ( " *-* All Finished *-* \n " ) ;
$finish ;
end
2025-05-10 19:59:56 +02:00
endmodule