verilator/test_regress/t/t_runflag_seed.v

18 lines
547 B
Systemverilog
Raw Normal View History

2019-02-05 01:28:17 +00:00
// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed into the Public Domain, for any use,
// without warranty, 2019 by Wilson Snyder.
`define checkh(gotv,expv) do if ((gotv) !== (expv)) begin $write("%%Error: %s:%0d: got='h%x exp='h%x\n", `__FILE__,`__LINE__, (gotv), (expv)); $stop; end while(0);
module t;
initial begin
integer r = $random;
integer ex;
if ($value$plusargs("SEED=%x", ex) !== 1) $stop;
`checkh(r, ex);
$write("*-* All Finished *-*\n");
$finish;
end
endmodule