I have a function in the driver class (driver.sv) as the following:
function void set_data(input integer input_1 ,output integer output_1);
endfunction : set_data
where `PATH_TO_RTL_MODEL_FUNCTION is defined as a hierarchical path to a block in the RTL model.
when I compile the environment it gives "illegal location for a hierarchical name in a package"
I think the package the error means is agent_pkg.sv as it contains driver.sv
So how can I solve this ?