# RAL access stuck and not executed

**URL:** <https://verificationacademy.com/forums/t/ral-access-stuck-and-not-executed/35854>\
**Category:** UVM\
**Tags:** UVM, RAL-stuck\
**Created:** [March 12, 2019, 12:48pm UTC](https://verificationacademy.com/forums/t/ral-access-stuck-and-not-executed/35854 "2019-03-12T12:48:23Z")\
**Posts on this page:** 8\
**Page:** 2

<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:** [June 21, 2019, 12:15pm UTC](https://verificationacademy.com/forums/t/ral-access-stuck-and-not-executed/35854/21 "2019-06-21T12:15:27Z")

</div>

_In reply to [v-markovic](https://verificationacademy.com/forums/t/ral-access-stuck-and-not-executed/35854/20):_

I believe this will not help.  
Please check the access rights of the corresponding fields and the register it belongs to.

And try

```verilog
regmodel.reg.some_field.update();

```

---

<div class="post-metadata">

**Author:** ![v-markovic](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/v-markovic/32/1412_2.png) [@v-markovic](https://verificationacademy.com/forums/u/v-markovic)\
**Post date:** [June 21, 2019, 6:32pm UTC](https://verificationacademy.com/forums/t/ral-access-stuck-and-not-executed/35854/22 "2019-06-21T18:32:09Z")

</div>

I had one process started at the beginning of the test with fork-join\_none and it was running in background. This process was something like:

fork  
begin  
forever begin  
wait(regmodel.cfg0.is\_busy() == 1’b0);  
regmodel.cfg0.enable.set(N); // N can be 0 or 1  
regmodel.cfg0.update(status);  
// Wait some delay  
end // forever  
end  
join\_none

When I removed this process, then everything works ok, not sure what exactly is the reason, but if I find out I will post it.  
Thank you very much for your time and suggestions.

---

<div class="post-metadata">

**Author:** ![v-markovic](https://verificationacademy.com/forums/user_avatar/verificationacademy.com/v-markovic/32/1412_2.png) [@v-markovic](https://verificationacademy.com/forums/u/v-markovic)\
**Post date:** [June 22, 2019, 10:07pm UTC](https://verificationacademy.com/forums/t/ral-access-stuck-and-not-executed/35854/23 "2019-06-22T22:07:15Z")

</div>

I found the real reason for RAL model getting stuck.  
Beside using regmodel.reg\_name.write() or read(), I was also sending transactions from another process using start\_item()-wait\_some\_delay-randomize-finish\_item().

Of course, the problem was the delay between start\_item() and finish\_item(), which should never be used! After removing the delay, everything worked.

---

<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:** [June 23, 2019, 10:52am UTC](https://verificationacademy.com/forums/t/ral-access-stuck-and-not-executed/35854/24 "2019-06-23T10:52:28Z")

</div>

_In reply to [v-markovic](https://verificationacademy.com/forums/t/ral-access-stuck-and-not-executed/35854/23):_

Great to hear this and one of the very important findings with delay on the transaction level!

---

<div class="post-metadata">

**Author:** ![tinku\_mistry](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/t/919ad9/32.png) [@tinku\_mistry](https://verificationacademy.com/forums/u/tinku_mistry)\
**Post date:** [February 9, 2023, 1:32pm UTC](https://verificationacademy.com/forums/t/ral-access-stuck-and-not-executed/35854/25 "2023-02-09T13:32:53Z")

</div>

i am stuck on RAL integration, i dont know where i did mistake my error is :[UVM\_FATAL @ 15: uvm\_test\_top.uenv.apb\_agnt.apb\_sqr [apb\_sqr] send\_request failed to cast sequence item.  
and one more thing i have given display statement inside reg2bus of adapter class its display is coming but if i am putting display statement inside bus2reg into adapter class then display is not appear.  
please help me.

---

<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:** [February 9, 2023, 3:34pm UTC](https://verificationacademy.com/forums/t/ral-access-stuck-and-not-executed/35854/26 "2023-02-09T15:34:38Z")

</div>

_In reply to [tinku\_mistry](https://verificationacademy.com/forums/t/ral-access-stuck-and-not-executed/35854/25):_

How does your register sequence look like?  
reg2bus isd called when you are doing a write and bus2reg when doing a read.

---

<div class="post-metadata">

**Author:** ![tinku\_mistry](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/t/919ad9/32.png) [@tinku\_mistry](https://verificationacademy.com/forums/u/tinku_mistry)\
**Post date:** [February 9, 2023, 3:56pm UTC](https://verificationacademy.com/forums/t/ral-access-stuck-and-not-executed/35854/27 "2023-02-09T15:56:46Z")

</div>

_In reply to [chr\_sue](https://verificationacademy.com/forums/t/ral-access-stuck-and-not-executed/35854/26):_

yes, But still i am facing error .

---

<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:** [February 9, 2023, 4:24pm UTC](https://verificationacademy.com/forums/t/ral-access-stuck-and-not-executed/35854/28 "2023-02-09T16:24:04Z")

</div>

_In reply to [tinku\_mistry](https://verificationacademy.com/forums/t/ral-access-stuck-and-not-executed/35854/27):_

It might not be connected correctly.

[Previous page](https://verificationacademy.com/forums/t/ral-access-stuck-and-not-executed/35854.md?page=1)
