verilator/test_regress/t/t_interface_asvar_bad.v
2019-09-25 21:53:01 -04:00

33 lines
537 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.
module t (/*AUTOARG*/);
counter_if iface();
source source (
.itf (iface)
);
endmodule
interface counter_if;
logic [3:0] value;
endinterface
module source
(
counter_if itf
);
logic [3:0] getter;
initial begin
getter = itf; // Intended to write itf.value
getter = 4'd3 + itf; // Intended to write itf.value
end
endmodule