in my verification environment we work with vr_ad
UVM
package, where there is a general struct for a register vr_ad_reg
which has been extended with different type for every register in the environment, etc:
reg_def TIMER_LOAD_0 TIMER 20'h00010 {
reg_fld timer_load : uint : RW : 0xffff;
}:
The vr_ad_reg
has predefined function post_access()
, which I would like to extend for every register type that starts with the word 'TIMER
'. Is there a way to do it? For example:
extend TIMER_* vr_ad_reg { //The intention here to extend the vr_ad_reg for all types that starts with the word TIMER
post_access() is also {
var some_var : uint;
};
}
Thank you for your help