2025-12-17 14:08:44 +01:00
// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed into the Public Domain, for any use,
// without warranty.
// SPDX-License-Identifier: CC0-1.0
2025-12-21 03:46:43 +01:00
// verilog_format: off
2025-12-17 14:08:44 +01:00
`define stop $stop
2025-12-21 03:46:43 +01:00
`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);
// verilog_format: on
2025-12-17 14:08:44 +01:00
2025-12-21 03:46:43 +01:00
class Class_A # (
parameter int myparam = 32
) ;
2025-12-17 14:08:44 +01:00
endclass
module tb_top ;
2025-12-21 03:46:43 +01:00
localparam int WIDTH_A = 32 ;
localparam int WIDTH_B = 2 * 16 ;
2025-12-17 14:08:44 +01:00
2025-12-21 03:46:43 +01:00
Class_A # ( 32 ) a ;
Class_A # ( WIDTH_A ) b ;
Class_A # ( WIDTH_B ) c ;
2025-12-17 14:08:44 +01:00
initial begin
# 1 ;
a = b ;
$write ( " *-* All Finished *-* \n " ) ;
$finish ;
end
endmodule