In reply to seabeam:
Sorry for late reply…
I tried to implement your suggestions in the existing code. I am facing issue when I declare constructor function as local. i.e
local function new();
endfunction
The simulator gives error as “Lifetime or qualifier(s)‘local’ not allowed before function new declaration”. Can you help me to resolve this issue? Thanking you.