verilator/test_regress/t/t_constraint_dist_randc_bad.v
2024-12-14 11:47:46 -05:00

15 lines
365 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2024 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
class Cls1;
randc int rc;
constraint c_bad { rc dist {3 := 0, 10 := 5}; } // Bad, no dist on randc
endclass
module t (/*AUTOARG*/);
endmodule