verilator/test_regress/t/t_param_default.v
Mike Popoloski cb5887b376 Support module port parameters without defaults, bug 1213.
Signed-off-by: Wilson Snyder <wsnyder@wsnyder.org>
2017-09-14 21:20:20 -04:00

20 lines
362 B
Verilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed into the Public Domain, for any use,
// without warranty, 2003 by Wilson Snyder.
module m #(parameter int Foo);
endmodule
module t (/*AUTOARG*/);
m #(10) foo();
initial begin
if (foo.Foo != 10) $stop;
$write("*-* All Finished *-*\n");
$finish;
end
endmodule