Hi
Wanted to confirm –
1.Can we use mailbox.get or mailbox.put inside function.
virtual function BitChk_status_e putDrvData (string name, int data);
if (bcDrvPoints.exists(name)) begin
bcDrvPoints[name].dp.mailbox.put(data);
end else
return FAIL;
return PASS;
endfunction
The above gives me error that I cannot use delay.
If i replace the above function with task, it runs but gives me syntax error.
Can task be used to return enum data type (BitChk_status_e is enum type)
Please advise.
thanks
Ruchi