Bit Bash Sequence for Read Only Registers

In reply to yuvraj khare:

The function ‘get_rights’ returns the actual access. You can check like this

 if (data_regs[i].get_rights() != "RO")

where data_regs is the list of all registers.