verilator/test_regress/t/t_constraint_dist_randc_bad.v

15 lines
365 B
Systemverilog
Raw Normal View History

2024-11-09 17:45:55 +00:00
// 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;
2024-12-14 16:47:46 +00:00
constraint c_bad { rc dist {3 := 0, 10 := 5}; } // Bad, no dist on randc
2024-11-09 17:45:55 +00:00
endclass
module t (/*AUTOARG*/);
endmodule