In reply to dave_59:
Thanks Dave. But wondering if there is any better way of formatting allowed in SV? Because this is a very basic example, but the complexity of the struct might be even more with multiple sub-structs, strings, arrays etc.
Thinking if we can write some functions which takes in a struct as input and print all the fields of the struct recursively [and for sub-structs re-call the function] or any such ideal flow which you will follow if you have to write something like this. :-)
Any comments is highly appreciated. Thanks !