# Set sub register block from the top register block to below component hierarchy

**URL:** <https://verificationacademy.com/forums/t/set-sub-register-block-from-the-top-register-block-to-below-component-hierarchy/40136>\
**Category:** UVM\
**Tags:** UVM, uvm\_reg\_block, uvm\_reg\_block-multiple-reg-blocks\
**Created:** [March 9, 2022, 10:10am UTC](https://verificationacademy.com/forums/t/set-sub-register-block-from-the-top-register-block-to-below-component-hierarchy/40136 "2022-03-09T10:10:09Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jj\_bukhari](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/j/43a26b/32.png) [@jj\_bukhari](https://verificationacademy.com/forums/u/jj_bukhari)\
**Post date:** [March 9, 2022, 10:10am UTC](https://verificationacademy.com/forums/t/set-sub-register-block-from-the-top-register-block-to-below-component-hierarchy/40136/1 "2022-03-09T10:10:09Z")

</div>

Hi Team,

I have these kind of uvm\_reg\_block.

```verilog
class system_reg_block extends uvm_reg_block;
    subsytem_reg_block_1 ss_rb_1;
    subsytem_reg_block_2 ss_rb_2;
    ...
    ...

endclass

class top_reg_block extends uvm_reg_block;
     system_reg_block s_rb;
    
    ...
    ...

endclass

```

my intention is to set(uvm\_config\_db) **subsystem\_reg\_block\_1** from class **top\_reg\_block** via reg\_block instance **system\_reg\_block** (without instantiating subsystem\_reg\_block\_1 in top\_reg\_block class).

Is it possible to achieve??  
if yes, kindly show me the way…

Thanks,  
jj\_bukhari

---

<div class="post-metadata">

**Author:** ![dave\_59](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/dave_59/32/4499_2.png) [@dave\_59](https://verificationacademy.com/forums/u/dave_59)\
**Post date:** [March 9, 2022, 11:03pm UTC](https://verificationacademy.com/forums/t/set-sub-register-block-from-the-top-register-block-to-below-component-hierarchy/40136/2 "2022-03-09T23:03:11Z")

</div>

_In reply to [jj\_bukhari](https://verificationacademy.com/forums/t/set-sub-register-block-from-the-top-register-block-to-below-component-hierarchy/40136):_

This is an [XY problem](https://xyproblem.info). Please explain what led you to come up with this request.

---

<div class="post-metadata">

**Author:** ![jj\_bukhari](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/j/43a26b/32.png) [@jj\_bukhari](https://verificationacademy.com/forums/u/jj_bukhari)\
**Post date:** [March 10, 2022, 7:00am UTC](https://verificationacademy.com/forums/t/set-sub-register-block-from-the-top-register-block-to-below-component-hierarchy/40136/3 "2022-03-10T07:00:38Z")

</div>

_In reply to [dave\_59](https://verificationacademy.com/forums/t/set-sub-register-block-from-the-top-register-block-to-below-component-hierarchy/40136/2):_

Hi dave,

Thanks for the reply.

Actually, I am working on SOC level Testbench. which consist of separate sub-system within it  
and respective RAL model. also I have SOC level RAL model which consist all present sub-system RAL model in it.

I have a TestBench structure where I can verify the separate sub-system RAL model individualy. and SOC level RAL model as well.

Now, I want to verify perticular sub-system RAL model via SOC RAL model(to check if it takes lesser run time than the individual sub-system).

I hope, I could make it clear.

Thank you.
