# AXI BFM and AXILITE BFM usage error at the same time

**URL:** <https://forum.uvvm.org/t/axi-bfm-and-axilite-bfm-usage-error-at-the-same-time/265>\
**Category:** Bitvis VIP AXI\
**Created:** [January 8, 2022, 6:59am UTC](https://forum.uvvm.org/t/axi-bfm-and-axilite-bfm-usage-error-at-the-same-time/265 "2022-01-08T06:59:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aykenar](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@aykenar](https://forum.uvvm.org/u/aykenar)\
**Post date:** [January 8, 2022, 6:59am UTC](https://forum.uvvm.org/t/axi-bfm-and-axilite-bfm-usage-error-at-the-same-time/265/1 "2022-01-08T06:59:34Z")

</div>

I tried simulating a custom IP, having 1 AXI-Full and 1 AXI-Lite interface. Naturally I include both AXI BFM and AXILITE BFM packages, I overload “axi\_write” procedure inside a process of the testbench file and used the template given in axi\_bfm\_QuickRef document.

Modelsim gave an error saying for the line:

variable v\_bresp\_value : t\_xresp;

Error: (vcom-1078) Identifier “t\_xresp” is not directly visible.  
Potentially visible declerations are:  
uvvm\_util\_axi\_bfm\_pkg.t\_xresp at … axi\_bfm\_pkg.vhd(37) (type decleration)  
uvvm\_util\_axilite\_bfm\_pkg.t\_xresp at … axilite\_bfm\_pkg.vhd(36) (type decleration)

This error is due to having the same type declerations in two different packages.

I intended to use t\_xresp type of AXI BFM, so I used full package name to the type t\_xresp such as:

variable v\_bresp\_value : uvvm\_util\_axi\_bfm\_pkg.t\_xresp;

That solved the problem. So I think, in general, if there are multiple declerations of procedures, functions or types in different packages, this is the method to overcome the issue.

Regards,

Burak
