Hi araj380,
If we want to write an illegal address which is not there in the Register model. It will not be possible and will throw an error. Because the register definition itself has to present in the register model. If you want to write an illegal address, you can simply follow usual process.
Or else define a junk register in the register file with an offset of 0x70 and the checking of valid address logic has to present in the monitor and has to give a warning saying invalid register access. Then you can write to that address using RAL model to DUT. DUT wont give any data wrt that register, and we will get error response from the Design. You can then compare the Test bench write/read with DUT response which should be always ended up with error only because of invalid address.
Thanks,
Furry_Panda