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

22 lines
517 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.
// SPDX-License-Identifier: CC0-1.0
// 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