Updating only selective fields of a register

I have an 8-bit register with 2 different bit-field.


| 7 : 4 | 3 : 0 |
| ENA_2 | ENA_1 |
|___________|__________|

I need a mechanism where I can update only one field at a time without modifying the value of others, how can I achieve this?

In reply to nid_8486:

How are you accessing the register? Are you using the UVM RAL?

The simplest solution is to read the register, update the desired bits, and then write the register.