How do i access registers in scoreboard immediately

Hi

Could you let me know what are the possible ways that I can instantly access registers in scoreboard:
something like below:

bit [31:0] flag;

run phase()

fork
forever begin
#1 flag = dut.regblock.regA
end
join_none

endtask

I am using ral for programming the registers. The instant value of the registers are required to validate if the DUT is working properly or not.

If you need to check that a register changes to an expected value, my recommendation would be to add code to your test to poll the register as required. Add the register map to your scoreboard and verify that the register map value receives the required value.

In reply to cgales:

If you need to check that a register changes to an expected value, my recommendation would be to add code to your test to poll the register as required. Add the register map to your scoreboard and verify that the register map value receives the required value.

Thanks, Cgales, Could you please elaborate with a pseudo codeā€¦