2010-01-21 11:11:30 +00:00
|
|
|
// DESCRIPTION: Verilator: Verilog Test module
|
|
|
|
//
|
2020-03-21 15:24:24 +00:00
|
|
|
// This file ONLY is placed under the Creative Commons Public Domain, for
|
|
|
|
// any use, without warranty, 2010 by Wilson Snyder.
|
|
|
|
// SPDX-License-Identifier: CC0-1.0
|
2010-01-21 11:11:30 +00:00
|
|
|
|
|
|
|
// Try inline config
|
|
|
|
`ifdef verilator
|
|
|
|
`verilator_config
|
2019-12-30 18:15:43 +00:00
|
|
|
lint_off -rule CASEX -file "t/t_vlt_warn.v"
|
2010-01-21 11:11:30 +00:00
|
|
|
`verilog
|
|
|
|
`endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module t;
|
|
|
|
reg width_warn_var_line18 = 2'b11; // Width warning - must be line 18
|
|
|
|
reg width_warn2_var_line19 = 2'b11; // Width warning - must be line 19
|
2010-12-30 11:58:02 +00:00
|
|
|
reg width_warn3_var_line20 = 2'b11; // Width warning - must be line 20
|
2010-01-21 11:11:30 +00:00
|
|
|
|
|
|
|
initial begin
|
|
|
|
casex (1'b1)
|
2018-10-27 14:03:28 +00:00
|
|
|
1'b0: $stop;
|
2010-01-21 11:11:30 +00:00
|
|
|
endcase
|
|
|
|
|
|
|
|
$write("*-* All Finished *-*\n");
|
|
|
|
$finish;
|
|
|
|
end
|
|
|
|
endmodule
|