Hi All,
In below example, my intention to control DUT inputs from testbench using interface handle.
Plan is to avoid individual port mapping, and to leverage implicit port connection.
But I see that without “assign reset = intf.reset;” reset port updates are not visible at DUT.
My assumption is implicit port connection establishes below path : dut_intf.reset → reset → DUT.reset.
Please correct me if wrong.
//***************************
interface dut_itf;
logic clock,reset;
endinterface
//***************************
module DUT(input clock, reset);
initial $monitor("Value reset = %0h",reset);
endmodule
//***************************
module testTop;
logic clock, reset;
DUT d1(.*);
dut_itf intf(.*);
//assign reset = intf.reset;
initial begin // Eventually will be a UVM TB, which uses vif handle of intf to control DUT signals
intf.reset = 1;
#100 intf.reset = 0;
end
endmodule