I have a task defined in a virtual interface which should poll on some signals combination assertion . Those signals is arranged in arrays so the arguments intend to point to the desired signal in array to poll on :
Thanks a lot Orimitsu and Dave , in SV classes the automatic declaration is not the mandatory as the tasks defined as automatic by default and this requirement is special for sv interfaces when tasks are by default not automatic , right ?
Summarizing this to get the bottom line explanation for this behaviour .
Class methods I have automatic lifetimes —you cannot declare them with static lifetimes. Everywhere else tasks and function declarations have static lifetimes as their default.