# How to use register inside the DUT in scoreboard

**URL:** <https://verificationacademy.com/forums/t/how-to-use-register-inside-the-dut-in-scoreboard/41577>\
**Category:** UVM\
**Tags:** model-uvm-reference\_model, UVM, uvm-scorebaord, DMA\
**Created:** [April 26, 2023, 6:11am UTC](https://verificationacademy.com/forums/t/how-to-use-register-inside-the-dut-in-scoreboard/41577 "2023-04-26T06:11:49Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Harsha\_vardhan](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/h/dbc845/32.png) [@Harsha\_vardhan](https://verificationacademy.com/forums/u/Harsha_vardhan)\
**Post date:** [April 26, 2023, 6:11am UTC](https://verificationacademy.com/forums/t/how-to-use-register-inside-the-dut-in-scoreboard/41577/1 "2023-04-26T06:11:49Z")

</div>

Hi,

I wrote the code the DMA and I implemented all the UVM test bench components and objects and for scoreboard, I need to check the contents in registers which are present in DUT.

Example:  
reg [DATA\_WIDTH-1:0] intr;  
reg [DATA\_WIDTH-1:0] control;  
reg [DATA\_WIDTH-1:0] io\_address;  
reg [DATA\_WIDTH-1:0] mem\_address;  
These registers are present inside the DUT  
can anyone please help me how to use these registers in my scoreboard  
I tried using DUT top instance and register name(DUT.intr) I am facing an issue.  
Please help me

Thanks in advance  
Harsha

---

<div class="post-metadata">

**Author:** ![chr\_sue](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/chr_sue/32/1199_2.png) [@chr\_sue](https://verificationacademy.com/forums/u/chr_sue)\
**Post date:** [April 26, 2023, 7:12am UTC](https://verificationacademy.com/forums/t/how-to-use-register-inside-the-dut-in-scoreboard/41577/2 "2023-04-26T07:12:44Z")

</div>

_In reply to [Harsha vardhan](https://verificationacademy.com/forums/t/how-to-use-register-inside-the-dut-in-scoreboard/41577):_  
If you have a UVM Testbench please read here  
[https://verificationacademy.com/cookbook/registers](https://verificationacademy.com/cookbook/registers)

---

<div class="post-metadata">

**Author:** ![SharonBeaulah](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/s/7bcc69/32.png) [@SharonBeaulah](https://verificationacademy.com/forums/u/SharonBeaulah)\
**Post date:** [May 5, 2023, 9:16am UTC](https://verificationacademy.com/forums/t/how-to-use-register-inside-the-dut-in-scoreboard/41577/3 "2023-05-05T09:16:01Z")

</div>

You can create a register model that will be a replica of DUT register space and this model is connected to DUT register space. Then, you can instantiate this register space in your environment and read it from there. You can create a register package using “vreguvm” command.
