verilator/test_regress/t/t_param_mintypmax.v

31 lines
782 B
Systemverilog
Raw Normal View History

2023-03-02 05:11:48 +01:00
// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed into the Public Domain, for any use,
// without warranty, 2023 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module t;
2023-03-02 05:11:48 +01:00
parameter MTM = (1:2:3);
2023-03-05 22:45:07 +01:00
sub sub ();
//UNSUP sub #(.MTM(10:20:30)) sub20name ();
//UNSUP sub #(.MTM(100:200)) sub200name ();
//UNSUP sub #(10:20:30) sub20pos ();
//UNSUP sub #(100:200) sub200pos ();
2023-03-02 05:11:48 +01:00
initial begin
if (MTM != 2) $stop;
2023-03-05 22:45:07 +01:00
//UNSUP if (sub20pos.MTM != 20) $stop;
//UNSUP if (sub200pos.MTM != 200) $stop;
//UNSUP if (sub20name.MTM != 20) $stop;
//UNSUP if (sub200name.MTM != 200) $stop;
2023-03-02 05:11:48 +01:00
$write("*-* All Finished *-*\n");
$finish;
end
endmodule
2023-03-05 22:45:07 +01:00
module sub #(parameter MTM = (1:2:3)) ();
endmodule