Struct in System verilog

In reply to dave_59:

I have got the exact output

Thanks a lot for your timely support @dave

As I am new to SV,can you suggest me some ideas to improve my programming skills?