How to use register inside the DUT in scoreboard

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

In reply to Harsha vardhan:
If you have a UVM Testbench please read here
https://verificationacademy.com/cookbook/registers

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.