26 lines
439 B
Systemverilog
26 lines
439 B
Systemverilog
// DESCRIPTION: Verilator: Verilog Test module
|
|
//
|
|
// This file ONLY is placed under the Creative Commons Public Domain.
|
|
// SPDX-FileCopyrightText: 2022 Wilson Snyder
|
|
// SPDX-License-Identifier: CC0-1.0
|
|
|
|
typedef class ClsB;
|
|
|
|
class ClsA #(
|
|
parameter PARAM = 12
|
|
);
|
|
ClsB #(PARAM + 1) b;
|
|
endclass
|
|
|
|
class ClsB #(
|
|
parameter PARAM = 12
|
|
);
|
|
ClsA #(PARAM + 1) a;
|
|
endclass
|
|
|
|
module t;
|
|
|
|
ClsA #(.PARAM(15)) c; // Bad param name
|
|
|
|
endmodule
|