Hi,
Even though I have declared pif, it is showing as undefined variable. Not sure what’s the issue.
//declaring clk & reset
reg clk,rst;
//logic to get user input
initial begin
$value$plusargs(“testname=%s”,cfg_axi::testname);
cfg_axi::vif=pif;
end
//instantiate interface
intf pif(clk,rst);
//testbench instantiate
tb tb();
Error
** Error: ** while parsing file included at axi_header.svh(11)