verilator/test_regress/t/t_interface_param_acc_bits.v
2019-11-07 18:15:55 -05:00

21 lines
481 B
Systemverilog

// DESCRIPTION: Verilator: Verilog Test module
//
// This file ONLY is placed into the Public Domain, for any use,
// without warranty, 2017 by Johan Bjork.
// bug1593
interface simple_bus #(PARAMETER = 0);
parameter [6:0] dummy = 22;
endinterface
module t ();
simple_bus sb_intf();
simple_bus #(.PARAMETER($bits(sb_intf.dummy))) simple();
initial begin
if (simple.PARAMETER != 7) $stop;
$write("*-* All Finished *-*\n");
$finish;
end
endmodule