# How to handle complex bus sequences using the Register Layer

**URL:** <https://verificationacademy.com/forums/t/how-to-handle-complex-bus-sequences-using-the-register-layer/36806>\
**Category:** UVM\
**Tags:** UVM, sequence, register-layer, adapter\
**Created:** [November 15, 2019, 7:51am UTC](https://verificationacademy.com/forums/t/how-to-handle-complex-bus-sequences-using-the-register-layer/36806 "2019-11-15T07:51:42Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![warnerrs](https://verificationacademy.com/forums/letter_avatar_proxy/v4/letter/w/858c86/32.png) [@warnerrs](https://verificationacademy.com/forums/u/warnerrs)\
**Post date:** [November 16, 2019, 7:37pm UTC](https://verificationacademy.com/forums/t/how-to-handle-complex-bus-sequences-using-the-register-layer/36806/2 "2019-11-16T19:37:29Z")

</div>

Although it is possible to avoid creating a fully specified AXI item, I recommend against it. But first, I’ll address your question.

uvm\_reg\_adapter only supports converting to/from sequence items that fully specify register transactions.

The alternative is to use a translation sequence. It’s poorly documented and not used as much, so it’s hard to find examples. The following article, which is focused on using a translation sequence to implement support for register bursts, covers the topic pretty well.

> **[Accessing Multiple Registers at Once](https://blog.verificationgentleman.com/2015/11/accessing-multiple-registers-at-once.html)**
>
> As I already mentioned, I gave a talk at DVCon Europe this year on how to implement burst accesses to memories modeled using UVM\_REG. The motivation for that was that the register package can already handle bus protocols that don't support burst...

Back to my advice against doing this. Using this approach effectively makes uvm\_reg\_item your fully defined sequence item. AXI has order dependencies between the various channels, and that is why I recommend against this approach for AXI.

If you think only of the simplest case, where you issue a series of register reads and writes from a single sequence ( using a single value of AWID/ARID ), then it’s straight forward. However, once you account for multiple sequences running concurrently with different IDs, each arbitrating to get access to the proper channels in the proper order, going through a fabric where different slaves respond at different rates, it quickly get’s much more complicated.

You will need to embed all of this coordination logic into your register translation sequence, which is possible. The problem is, this logic is not unique to register sequences. You also need to enforce these ordering rules when directly issues transactions on the AXI without using the register model.

You might think, well I’ll just directly use uvm\_reg\_item as my transaction type when I want these ordering rules enforced. The problem is, uvm\_reg\_item does not expose all of the AXI features, so you won’t have full freedom to model any possible AXI transaction. For these reasons, it’s best to define a fully defined axi\_item.

---

_[View the full topic](https://verificationacademy.com/forums/t/how-to-handle-complex-bus-sequences-using-the-register-layer/36806)._
