Changing Register Model Field behavior for an access code

How do I change the behavior for a register model field that consists of a 2 bit value? I want the values to be cleared if either value is a 1.