verilator/test_regress/t/t_runflag_seed.v
2019-02-04 20:28:17 -05:00

18 lines
547 B
Systemverilog

// 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