verilator/test_regress/t/t_sys_plusargs_bad.v
2020-03-21 11:24:24 -04:00

25 lines
580 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed under the Creative Commons Public Domain, for
// any use, without warranty, 2009 by Wilson Snyder.
// SPDX-License-Identifier: CC0-1.0
module t;
integer p_i;
initial begin
// BAD: Missing argument
if ($value$plusargs("NOTTHERE", p_i)!==0) $stop;
// BAD: Bad letter
if ($value$plusargs("INT=%z", p_i)!==0) $stop;
// BAD: Multi letter
if ($value$plusargs("INT=%x%x", p_i)!==0) $stop;
$write("*-* All Finished *-*\n");
$finish;
end
endmodule