How to add constraints for RAL registers

Hi All,
In ral model, I want to add constraints by using the override method.

  1. Can we add constraints for ral model?
  2. The constraint for uvm_reg_field we use as register_name.value

Ex : control register (high_s[31:16],low_s[15:0])–> register format
constraint control_con {
low_s.value inside{[1:10]};
}
Code is getting compiled , but constraints are not getting affected .

Thanks
Babu

In reply to bsubash66:

I do not understand, what your intention is. The registers of the register model can be considered as componenets which can store certain values. Filling in different data to your registers or field will be done using sequences and seq_items. Whane generating the sequence items you cann add the constraints to the randomization process. This is how you can restrict values in your registers.